byron3
Members-
Posts
7 -
Joined
-
Last visited
Everything posted by byron3
-
Bruce, The following is from googles sitemap generator instructions. In order to create a configuration file for your site, you must have the following information: * The base URL for your site (such as http://www.example.com/). Only URLs that begin with this base URL can be included in the Sitemap. Ensure that you include the protocol (such as http://). For instance, http://www.google.com is a valid base url, but www.google.com is not. * The web server path to the location where you want to store the Sitemap. Generally, this is the path to the base URL as the Sitemap cannot contain URLs that are in a higher-level directory from the location of the Sitemap. When you run the Google Sitemap Generator, it creates the Sitemap and places it in the location you specify. * The methods you want the Sitemap Generator to use to create your Sitemap. You can use any combination of methods. The following methods are available: * URL —list individual URLs in this section of the configuration file, along with information about each URL. You would generally use this method in conjunction with another method to manually include additional URLs that other methods wouldn't pick up. * URL list —point the configuration file to a text file that contains a list of URLs. You might want to use this method if this text file already exists or if you use a script to generate a list of URLs. * Directory paths —specify the directory paths for your site and corresponding URLs to those paths. The Sitemap Generator will create a list of URLs based on the contents of those directories. You might want to use this method if your site consists of static HTML files. * Access logs —point to the path to your log files. The Sitemap Generator will create a list of URLs based on the URLs included in the logs. You might want to use this method if your site consists of dynamic pages. * Sitemap —point to existing Sitemaps that you have created with the Sitemap Generator. The Sitemap Generator will create a single Sitemap that includes the URLs contained in each Sitemap. You could use this method if you have already created several smaller Sitemaps that you want to combine into one larger Sitemap. I would like to use the Access logs option here because my pages are dynamically generated. Any other suggestions? Byron Thomas
-
Brian, I believe what you are looking for is the SQL limit function : SELECT * FROM `foo` LIMIT 0, 10 The limit statement allows you to define a starting record and the number of proceeding records, the above statement returns 10 records from the foo table starting @ 0. You will also need a session variable that contains the maximum number of rows returned by the query with no limit function, the current starting record and a pre determined number of records to display per page. Byron Thomas
-
Hello all, I have a working web site that uses php script to generate all of my pages. My page ranking is non-existent, from info I have read and from stats in my google analysis very little info is gathered by the robot web crawler from my script files. According to google's site masters tools I need a sitemap and should reference my site log files. Where are my site log files stored and what path do I use? Any tips for a higher ranking with script generated pages? Byron Thomas
-
Hello Fellow programmers; I came up with the following code with a little outside help. >session_start(); $user = $_SESSION['User']['Name'] ."%407thdistrictfd.org"; $pass = $_SESSION['User']['Password']; $params = "user=$user&password=$pass"; $curl = curl_init("http://7thdistrictfd.org:2095/login/"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS,$params); $response = curl_exec($curl); curl_close($curl); Works great for sending the post variables. Must be right about the script writing cookies back to my machine, my cookie files are modified @ the time the code is run. The only problem right now is the response page has one statement and that is "Connection: close The Document has moved here". "The Document has moved here" is a hpertext link to my domain. Any ideals of how to suppress this message? Byron Thomas 7thdistrictfd.org admin@7thdistrictfd.org
-
Hello again Andy; Examined your proposed solution, did not like the idea of having the password visible in the link. ( I constructed the anchor link as described in your post, showed both user name and password in the status bar of the browser. All our members have access to a common computer so if someone is looking over your shoulder then your password could be compromised. Guess I could use a webmail handler page to hide all the details. I cannot view the source code for the Authenticicate dialog box, but see that the action for the cpanel login form = "/login/" and the method is Post. The form fields are "user" & "pass". With PHP script I can use {header("Location:/login/")} to redirect, any idea of how to pass the POST data via code? The second part looks to be easy. The form name is "/dowebmailpasswd.cgi", the fields are "oldpass"( which I do not see where it ever gets a value!) and "newpass" the confiramtion password has no name tag so therefore on submission of the form this field is not sent. the form has no action tag so the default is GET. Easy enough to {header("Location:/dowebmailpasswd.cgi?newpass=[New Password]")}. Goes back to what we discussed on the phone, how is the user identified? Seems like the easiest way to accomplish all of this is to mimic / use your login / change password script via code.
-
Hello Andy, yes I plan to use horde or squirrel mail form tch. What part of my first post did I fail to communicate plainly enough. I neither want my end user to have to log into either e-mail client, as they will already be logged into my domain and a user object will already be created and stored in a session variable. Once logged into cpanel my admin user Id and password are not required to log into my mail box. The login dialog box for either is bypassed, there is a way to do this same proceedure for any/all of my members having mail boxes. I also do not want my end user to have to set a password twice, once for the purpose of logging in to my members section, and the second for access to their mail box. Would I do better to contact Horde or Squirrel mail directly?
-
Could one of the gurus please help? I am setting up a web site which will have a members only section. The members are required to log in to enter this section. The members are issued a generic password and then once logged in they have a link to allow them to change thier password. Each member has his/her own mailbox. I need to accomplish two things. The first would be direct login to a meil client without reentering login information. I notice while in cpanel that neither a user ID or password is required. Is this information stored in a session variable or a cookie? The second would be the ability to change the password for a mail client when a member changes his password for site access. It appears that the change password form for the email clients use a simple form that goes to a php page. Best guess would be the information is sent via POST, I know how to redirect the user to a page using the header(), but am not sure how to send the post information as if a form had been submitted! Any suggestions or comments would be greatly appreciated. Byron Thomas 7th District Fire Department www.7thdistrictfd.org
