RE: [PHP] a user_auth script. The Script
was hoping someone else would see the errors I can't. I'll re-post the script. Matt. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 07:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] a user_auth script. The Script On Tuesday 12 February 2002 07:11, Matthew Darcy wrote: spotted 1 error already missing the starting after the printf statment. Any more ? -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 23:09 To: Roy Cabaniss; php Subject: RE: [PHP] a user_auth script. The Script ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); [snip] In cases like these, it is always a good idea to point out which is the line in question. Earlier posts mentioned line 55, but without manually counting, how are we going to know which is line 55? Plus, after going through the mail system, what was originally line 55, may not be line 55 anymore. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* George Orwell 1984. Northwestern 0. -- Chicago Reader 10/15/82 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] a user_auth script.- Anyone see the problem ?
?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); while ($row=mysql_fetch_array($admin_string_auth)) { if($row[account_password]==$login_name { $query = insert into account_details (account_type, account_name, account_address, account_address1, account_address2, account_address3, account_address4, account_address5, account_contact, account_phone, account_fax, account_email, account_start_date, account_authorised_credit, account_pin, account_disabled_flag, metered_jobs, unmetered_jobs, account_pin_activate) values ('$account_type', '$account_name', '$account_house', '$account_street', '$account_street1', '$account_town', '$account_city', '$account_postcode', '$account_contact', '$account_phone', '$account_fax', '$account_email', '$account_start', '$account_credit_authorised', '$account_pin', '$account_disabled_flag', '$metered_job_count', '$unmetered_job_count', '$account_pin_activated'); mysql_query($query) or die (mysql_error()); } else {printf(could not update); } } else {printf(Error wrong PAssword); } ? H2 Data Submitted /H2 H2 A HREF=view_test_records.php View the records /A/H2 ?php } else { include(insert_test_data.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a user_auth script. The Script
You have the ending } for the if statement? Nate - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:57 AM Subject: RE: [PHP] a user_auth script. The Script was hoping someone else would see the errors I can't. I'll re-post the script. Matt. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 07:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] a user_auth script. The Script On Tuesday 12 February 2002 07:11, Matthew Darcy wrote: spotted 1 error already missing the starting after the printf statment. Any more ? -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 23:09 To: Roy Cabaniss; php Subject: RE: [PHP] a user_auth script. The Script ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); [snip] In cases like these, it is always a good idea to point out which is the line in question. Earlier posts mentioned line 55, but without manually counting, how are we going to know which is line 55? Plus, after going through the mail system, what was originally line 55, may not be line 55 anymore. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* George Orwell 1984. Northwestern 0. -- Chicago Reader 10/15/82 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] a user_auth script. The Script
according to what I can see all the if/else statments are {} ended. But this is why I am mailing the list, I can't see a problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 09:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] a user_auth script. The Script You have the ending } for the if statement? Nate - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:57 AM Subject: RE: [PHP] a user_auth script. The Script was hoping someone else would see the errors I can't. I'll re-post the script. Matt. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 07:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] a user_auth script. The Script On Tuesday 12 February 2002 07:11, Matthew Darcy wrote: spotted 1 error already missing the starting after the printf statment. Any more ? -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 23:09 To: Roy Cabaniss; php Subject: RE: [PHP] a user_auth script. The Script ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); [snip] In cases like these, it is always a good idea to point out which is the line in question. Earlier posts mentioned line 55, but without manually counting, how are we going to know which is line 55? Plus, after going through the mail system, what was originally line 55, may not be line 55 anymore. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* George Orwell 1984. Northwestern 0. -- Chicago Reader 10/15/82 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Data History
Analysis and Solutions([EMAIL PROTECTED])@2002.02.11 23:19:57 +: back'... but upon going back in history, all the data that was in the form is lost. This did not occur on my regular not-secure web server. Page caching. You can alter that through the header() function. But, a No, you can't. At least mozilla does not honour Cache-Control for SSL connections. I haven't checked if thats because Cache-Control is not part of HTTPS (?) or if its for security reasons. SSL connections are treated like Cache-Control: no-store. cleaner way handle user validation problems is to reprint the form and data on the present page. I like to have both the initiating form and the form yep. /B. -- Sebastian Benoit [EMAIL PROTECTED] GnuPG 0x5BA22F00 2001-07-31 2999 9839 6C9E E4BF B540 C44B 4EC4 E1BE 5BA2 2F00 Life is Xerox , you are only a copy msg49620/pgp0.pgp Description: PGP signature
RE: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!
On Mon, 2002-02-11 at 06:46, Jerry Verhoef (UGBI) wrote: I think you all are missing the point that *RzE is making. The software you use/create should be bugfree and free from undocumented features. Otherwise security risks could occur. And ofcourse all other In a perfect world, yes. However, no software is ever bug-free, and when software is constantly evolving, it will always have features which are not documented, bugs which are not listed, and so on. That's reality, and it's reality for every software project out there. Otherwise we'd just release v1.0 and be done with it. :) Anyone is welcome to apply for a cvs account and help out, of course. safe-guard (like checking input, correct rights on the FileSystem) should be placed too. It is bugs like these who create life for Hackers and viruses (like nimda). Of course you can say that is the users own fault. But it is the developers duty to inform and advise users, and not to look the other way in the hope that it goes away. Jerry I don't recall saying that this shouldn't be documented. -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and hyperfile database...
Hello I hope this question is not a silly one but I am really lost on this question. One of our customer has all his product database on a hyperfile database. Does anyone know anything about the compatibility of PHP and those hyperfile databases? (We would like to create a link between our MySQL databases and the hyperfile databases.) Thanks in advance. Eric -- ) b-tween ( web design e-communication e-education http://www.b-tween.com Geneva Switzerland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!
IMHO escribed feature is not a bug. most probably this 'bug' is a special hole just in case. Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: Lars Torben Wilson [EMAIL PROTECTED] To: Jerry Verhoef (UGBI) [EMAIL PROTECTED] Cc: PHP General Mailinglist [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:20 PM Subject: RE: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!! On Mon, 2002-02-11 at 06:46, Jerry Verhoef (UGBI) wrote: I think you all are missing the point that *RzE is making. The software you use/create should be bugfree and free from undocumented features. Otherwise security risks could occur. And ofcourse all other In a perfect world, yes. However, no software is ever bug-free, and when software is constantly evolving, it will always have features which are not documented, bugs which are not listed, and so on. That's reality, and it's reality for every software project out there. Otherwise we'd just release v1.0 and be done with it. :) Anyone is welcome to apply for a cvs account and help out, of course. safe-guard (like checking input, correct rights on the FileSystem) should be placed too. It is bugs like these who create life for Hackers and viruses (like nimda). Of course you can say that is the users own fault. But it is the developers duty to inform and advise users, and not to look the other way in the hope that it goes away. Jerry I don't recall saying that this shouldn't be documented. -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] file reading and array's
Hi Scott, In my constant effort to improve my perl conversion project, I have a question regarding file reading. I am taking two files and combining them in an array and then writing out a new file. Is there a way to: a)strip out the first line of the second file b)test for conditions based on what is on the next line on the file An example, I start the array on file one, then mid-way I start another array on the second file (this array within in the first). I need to check the next line in the file for a condition to exist. I have tried this, but run into the pointer resetting on each pass. Any thoughts would be appreciated. Thanks in advance. Use explicitly array pointers instead of the 'built-in' ones, then: your need to look-ahead becomes array[$ptr + 1] avoiding the first record becomes for ( $i=1; $i$last; $i ++ ) //instead of $i=0 Does that cover things? =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ereg-digits only...
How do I check a string for it to only contain numbers? if(!ereg(([0-9]+),$string)){ print It contains characters other than numbers; }else{ print Only numbers; } Can anyone give some feedback... regards, Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ereg-digits only...
if ((int($string)==($string)) ($string0)) {then positive integer} not sure exactly, but try Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: B. Verbeek [EMAIL PROTECTED] To: Php-Db-Help (E-mail) [EMAIL PROTECTED]; Php-General (E-mail) [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 1:04 PM Subject: [PHP] ereg-digits only... How do I check a string for it to only contain numbers? if(!ereg(([0-9]+),$string)){ print It contains characters other than numbers; }else{ print Only numbers; } Can anyone give some feedback... regards, Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Decode binhex files?
Anyone know of any scripts/functions available to decode binhex 4.0 encoded files? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ereg-digits only...
if ((int($string)==($string)) ($string0)) {then positive integer} not sure exactly, but try Why not use the RE's? I usually use preg_* so I'll give the example using these... if (preg_match (/^\d+$/, $string)) { print (Yep... Only digits.); } else { prnt (Noop! There are non-digit characters...); } -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MsSQL PASSWORD()
At 09:26 AM 2/12/2002 +0200, val petruchek wrote: My current project runs on Win2k, MsSQL 2k, and PHP 4.0.6 My problem is that i can not enable md5 extension because of Unable to load dynamic library 'c:\windows\php\extensions/php_mcrypt.dll' - The specified procedure could not be found. in Unknown on line 0 You don't have to load the mcrypt extension to use md5(), they are two seperate things. m5() is a function built in to PHP. Mcrypt is used when you want to encrypt something and then later decrypt it, where md5() is a one-way crypt...once you have hashed something with md5() it is impossible to retrieve the original string from the hash... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] My php goes poof.
I am certainly not an apologist for M$ but the response you sent is a bit off the mark. Although Apache, PHP and My SQL are not developed specifically for M$ systems they now are available and I have found them to be stable on both winnt and win2k. I have never had PHP, MySQL or Apache go down. Anyway back to the original questionhow long have you had your configuration installed and has it always been funky? If so I would say go back and reinstall (being sure to back up your data and config files for apache and mysql) I have tried multiple installations on win2k and found that abria merlin (free from www.abriasoft.com) was the easiest to get up and running with a minimum of configuration issues. Hope that helps, Frederic Liam MacKenzie wrote: I'd be willing to bet that it's a M$ thing! As it says in all the documentation, neither apache, mysql nor php were designed for M$ systems. Other than bag M$, I can't help you, sorry! ;-) - Original Message - From: Floyd Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 2:16 PM Subject: [PHP] My php goes poof. Hi phpeople. Can anyone tell me why my php just stops working periodically? I have a win32/apache/php4.1/mysql set up. I can do things here for about an hour or so and then all of a sudden I get nothing but html remains. I need to take down apache and restart it for the php parsing to kick back in. Floyd -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ereg-digits only...
That wouldn't work! 1) You meant to write: if (((int)$string==$string) ($string0)) 2) (int)'5a' == 5, so this formula would result is 5a == 5! --Daniel -Original Message- From: val petruchek [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 6:22 AM To: [EMAIL PROTECTED] Cc: PHP Subject: Re: [PHP] ereg-digits only... if ((int($string)==($string)) ($string0)) {then positive integer} not sure exactly, but try Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: B. Verbeek [EMAIL PROTECTED] To: Php-Db-Help (E-mail) [EMAIL PROTECTED]; Php-General (E-mail) [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 1:04 PM Subject: [PHP] ereg-digits only... How do I check a string for it to only contain numbers? if(!ereg(([0-9]+),$string)){ print It contains characters other than numbers; }else{ print Only numbers; } Can anyone give some feedback... regards, Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ereg-digits only...
as a said before i'm not sure; my idea was to use type casting instead of eregi; anyone can develop it into smart solution; i am out of time now for this developing so can suggest idea only Valentin Petruchek (aki Zliy Pes) *** cUT THE BEGINNING *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: Daniel Kushner [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: PHP [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 4:00 PM Subject: RE: [PHP] ereg-digits only... That wouldn't work! 1) You meant to write: if (((int)$string==$string) ($string0)) 2) (int)'5a' == 5, so this formula would result is 5a == 5! --Daniel -Original Message- From: val petruchek [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 6:22 AM To: [EMAIL PROTECTED] Cc: PHP Subject: Re: [PHP] ereg-digits only... if ((int($string)==($string)) ($string0)) {then positive integer} not sure exactly, but try Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: B. Verbeek [EMAIL PROTECTED] To: Php-Db-Help (E-mail) [EMAIL PROTECTED]; Php-General (E-mail) [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 1:04 PM Subject: [PHP] ereg-digits only... How do I check a string for it to only contain numbers? if(!ereg(([0-9]+),$string)){ print It contains characters other than numbers; }else{ print Only numbers; } Can anyone give some feedback... regards, Bart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] A MYSQL COUNTER
The question you must answer first: what do you intend to do with the data once it's collected? Will you simply review the data without sorting it or performing data manipulation? If so, why incur the overhead of MYSQL? If all you need to do is log the user page hits, use a text file; then use grep/awk/sed/perl/php to search for specific users with their page hits, etc. Define your requirements more explicitly, then choose a solution. -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 6:39 PM To: Georgie Casey; [EMAIL PROTECTED] Subject: RE: [PHP] A MYSQL COUNTER This is too much for a text file. You should definitely use MySQL for this. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP] A MYSQL COUNTER I need a way of tracking what user was logged in when vieweing a particular member page, so I'm thinking of having EVERY unique page view of each member page added to a MySQL database, which just the ip, time and date, server name and browser, stuff like that. Is this too much for a MySQL DB??? Should I just write all the info to a textfile??? TANX -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv Ireland's Online Film Production Directory *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Massive amounts of data to SQL
Liam Mackenzie wrote: Hi everyone, I know this is a relatively simple question, but what would be the most efficient way of entering the contents of a large form (nearly 400 fields) into a MySQL database? Every day the form must be able Please provide an example script that I can use to refer to if you have time. Or show me a page that has a tutorial for a similar task. Thankyou very much for your help! Liam Didn't I reply to this already with a suitable example for you? Can you give specifics of what you're still having trouble with? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can i count the number of users logged in my system
I'm developing a site where many users can log in. I want to know how many users are using the system simoultaneously, and display it in a document so the users can see it. ¿How can i do that? Thanks Salu2, ___ Powered by Sambar Webmail - http://www.sambar.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: function? variable?
OK,... For each page on my site there will be a different title. Example: title ?php echo ?witakr home? ? /title or title ?php echo ?witakr News? ? /title What I want to know how to take the word that is currently in the place of News or home.. Wait.. I think I may have figured it out... What if I set a variable in the body of the page that looks like this: $pagetitle1 = Home //Changeing the word Home with the title of what ever page the User is on. //EI: Users on the Homepage, variable is set to Home, or user is on News //page, variable is set to News. //Where as the code would look like this if the user was on the News page. $pagetitle = News Then I use the variable($pagetitle) in the title pags, like so: title ?php echo ?witakr $pagetitle? ? /title And that way I can use that same variable anywhere else in the page. And when I edit the code and need to change the page title I change it where I set the variable. EI: $pagetitle1 = Home //For the Home page $pagetitle = News //For the news page $pagetitle1 = Link //For the Links page Now, assuming you all understood what Ijust said... Is it possible? -- Jason Whitaker Steven Walker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : Jason, : : If I understand your question, you want to display the contents of a : variable to screen? Try this: : : html : head : title/title : /head : body : ? : $test_variable = this is a test; : echo Here is what it says: $test_variable; : ? : /body : /html : : Also note that you do not need to use the PHP tags twice: : echo ?witakr home? //incorrect : echo wtakr home; //correct : : Steven J. Walker : Walker Effects : www.walkereffects.com : [EMAIL PROTECTED] : : On Monday, February 11, 2002, at 09:34 PM, Jason Whitaker wrote: : : I just saw something with my code there.. i have my link tag inside the : title tag.. i will have to fix that :) : : -- : : Jason Whitaker : : : Jason Whitaker [EMAIL PROTECTED] wrote in message : [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : : Is there a way to set a variable or is there a function that takes the : : information between the title tags and prints to the screen where you : : command? : : : : ei: : : : : //head : : //title : : // ?php : : // echo ?witakr home? : : // ? : : // : : //LINK REL=stylesheet HREF=css/sCSS.css TYPE=text/css : : ///title : : ///head : : : : where as i would want the word home from the echo ?witakr home? : (or : : what ever word that may be in place of the word home) to print to : say.. a : : certain place in the body of the page? : : : : : : Jason Whitaker : : : : : : : : -- : PHP General Mailing List (http://www.php.net/) : To unsubscribe, visit: http://www.php.net/unsub.php : : : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How can i count the number of users logged in my system
Store the user count to a database or file. Increment when new user enters; decrement when user logs out. If user does not log out and simply types a new URL into the address line, then you have another problem. -Original Message- From: V [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP] How can i count the number of users logged in my system I'm developing a site where many users can log in. I want to know how many users are using the system simoultaneously, and display it in a document so the users can see it. ¿How can i do that? Thanks Salu2, ___ Powered by Sambar Webmail - http://www.sambar.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: function? variable?
I'm sure i confused someone... The $pagetitle1 and $pagetitle are supposed to be the same... I made a couple typos -- Jason Whitaker Jason Whitaker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : OK,... : : For each page on my site there will be a different title. : : Example: : title : ?php : echo ?witakr home? : ? : /title : : or : : title : ?php : echo ?witakr News? : ? : /title : : What I want to know how to take the word that is currently in the place of : News or home.. Wait.. I think I may have figured it out... : : What if I set a variable in the body of the page that looks like this: : : $pagetitle1 = Home : : //Changeing the word Home with the title of what ever page the User is on. : //EI: Users on the Homepage, variable is set to Home, or user is on News : //page, variable is set to News. : //Where as the code would look like this if the user was on the News page. : : $pagetitle = News : : Then I use the variable($pagetitle) in the title pags, like so: : : : title : ?php : echo ?witakr $pagetitle? : ? : /title : : And that way I can use that same variable anywhere else in the page. : : And when I edit the code and need to change the page title I change it where : I set the variable. EI: : : $pagetitle1 = Home //For the Home page : $pagetitle = News //For the news page : $pagetitle1 = Link //For the Links page : : Now, assuming you all understood what Ijust said... Is it possible? : -- : : Jason Whitaker : Steven Walker [EMAIL PROTECTED] wrote in message : [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : : Jason, : : : : If I understand your question, you want to display the contents of a : : variable to screen? Try this: : : : : html : : head : : title/title : : /head : : body : : ? : : $test_variable = this is a test; : : echo Here is what it says: $test_variable; : : ? : : /body : : /html : : : : Also note that you do not need to use the PHP tags twice: : : echo ?witakr home? //incorrect : : echo wtakr home; //correct : : : : Steven J. Walker : : Walker Effects : : www.walkereffects.com : : [EMAIL PROTECTED] : : : : On Monday, February 11, 2002, at 09:34 PM, Jason Whitaker wrote: : : : : I just saw something with my code there.. i have my link tag inside the : : title tag.. i will have to fix that :) : : : : -- : : : : Jason Whitaker : : : : : : Jason Whitaker [EMAIL PROTECTED] wrote in message : : [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : : : Is there a way to set a variable or is there a function that takes the : : : information between the title tags and prints to the screen where you : : : command? : : : : : : ei: : : : : : : //head : : : //title : : : // ?php : : : // echo ?witakr home? : : : // ? : : : // : : : //LINK REL=stylesheet HREF=css/sCSS.css TYPE=text/css : : : ///title : : : ///head : : : : : : where as i would want the word home from the echo ?witakr home? : : (or : : : what ever word that may be in place of the word home) to print to : : say.. a : : : certain place in the body of the page? : : : : : : : : : Jason Whitaker : : : : : : : : : : : : : : -- : : PHP General Mailing List (http://www.php.net/) : : To unsubscribe, visit: http://www.php.net/unsub.php : : : : : : : : -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MsSQL PASSWORD()
Zliy Pes, (I have no idea what this name means - trust it doesn't mean that you'll be coming after me with a sharp knife!) My current project runs on Win2k, MsSQL 2k, and PHP 4.0.6 My problem is that i can not enable md5 extension because of Unable to load dynamic library 'c:\windows\php\extensions/php_mcrypt.dll' - The specified procedure could not be found. in Unknown on line 0 So,... Noted that someone else has replied otherwise - possibly the question has now 'gone away', but... with the Windows-ification of PHP come a few problems, not the least of which is the \ or / issue. If you notice above, there is a mixture of slash directions. In php.ini check out the extensions directory definition, and then the php_mcrypt.dll line. Ensure that the slash direction is consistent. Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How can i count the number of users logged in my system
Create a user activity table which stores the time when the user does anything. Then query it with a GROUP BY user syntax and constrain the records to only those after, say, an hour ago if you think that users doing something during the last hour means they are in there doing something. This is only a start, but is how I do it. On Tue, 12 Feb 2002, V wrote: -I'm developing a site where many users can log in. -I want to know how many users are using the system simoultaneously, and display it in a document so the users can see it. -¿How can i do that? -Thanks - -Salu2, - - -___ -Powered by Sambar Webmail - http://www.sambar.com) - - - - - --- -PHP General Mailing List (http://www.php.net/) -To unsubscribe, visit: http://www.php.net/unsub.php - ** John Huggins VANet [EMAIL PROTECTED] http://www.va.net/ ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a user_auth script.- Anyone see the problem ?
Check for a closing bracket on this statement if($row[account_password]==$login_name // line 14 or 15 needs ) Hope this helps Hugh - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:59 AM Subject: [PHP] a user_auth script.- Anyone see the problem ? ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); while ($row=mysql_fetch_array($admin_string_auth)) { if($row[account_password]==$login_name { $query = insert into account_details (account_type, account_name, account_address, account_address1, account_address2, account_address3, account_address4, account_address5, account_contact, account_phone, account_fax, account_email, account_start_date, account_authorised_credit, account_pin, account_disabled_flag, metered_jobs, unmetered_jobs, account_pin_activate) values ('$account_type', '$account_name', '$account_house', '$account_street', '$account_street1', '$account_town', '$account_city', '$account_postcode', '$account_contact', '$account_phone', '$account_fax', '$account_email', '$account_start', '$account_credit_authorised', '$account_pin', '$account_disabled_flag', '$metered_job_count', '$unmetered_job_count', '$account_pin_activated'); mysql_query($query) or die (mysql_error()); } else {printf(could not update); } } else {printf(Error wrong PAssword); } ? H2 Data Submitted /H2 H2 A HREF=view_test_records.php View the records /A/H2 ?php } else { include(insert_test_data.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] function not returning TRUE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all Can anyone see any reason why this function does not appear to be returning true? It appears to be returning 1 though? [snip snip] if(!$this-_db_connect()) { return FALSE; } if(!($result=mysql_query($qry))) { return FALSE; } else { /* Set properties */ $this-set_content_table($content_table); $this-set_tip_section($section); $this-set_auth_id($auth_id); $this-set_tip_id(mysql_insert_id()); $this-set_tip_title($title); $this-set_tip_description($desc); $this-set_tip_keywords($keywords); $this-set_tip_text($text); return TRUE; } return TRUE; } the way I'm testing the condition is like: $test=myfunction(); if($test) { do x } else do y Many thanks... - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8aUGuHpvrrTa6L5oRAjT3AKCUfDRR8MjBCYYiA9OEJ7IAgllIsQCeNzbR EJi04WVqO9bnfa29TWhuOso= =MDAk -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Implement @-domains with PHP?
Hello Again! Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd like to retrieve the http://someReallyWeirdAtDomain-part. http://php.net/parse-url I think you misunderstood my question, my problem is not how to parse the URI, I discovered the the parse_url-function before... My problem is much more trivial, how to retrieve the string the user type into the address bar of his/her browser??? -- Christian _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the .nospam from address. _ do you want to know more? web:http://www.blichmann.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Exchange substitute
I'm doing a project to move my company off of microsloth exchange. I have dont qmail with courier imap, now I was looking for suggestions for the rest of exchange features, calendaring, scheduling and so on and so forth. Is there one good package? Suggestions. thanks, dan __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A MYSQL COUNTER
whenever they're is a new unique visitor, I want a script to email the member about who visited. And have a permanent record for each member of who viewed their pages, accesible when they login. Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The question you must answer first: what do you intend to do with the data once it's collected? Will you simply review the data without sorting it or performing data manipulation? If so, why incur the overhead of MYSQL? If all you need to do is log the user page hits, use a text file; then use grep/awk/sed/perl/php to search for specific users with their page hits, etc. Define your requirements more explicitly, then choose a solution. -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 6:39 PM To: Georgie Casey; [EMAIL PROTECTED] Subject: RE: [PHP] A MYSQL COUNTER This is too much for a text file. You should definitely use MySQL for this. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP] A MYSQL COUNTER I need a way of tracking what user was logged in when vieweing a particular member page, so I'm thinking of having EVERY unique page view of each member page added to a MySQL database, which just the ip, time and date, server name and browser, stuff like that. Is this too much for a MySQL DB??? Should I just write all the info to a textfile??? TANX -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv Ireland's Online Film Production Directory *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML issues
Hi ! I'm writing some code, and I have questions : #1 : it is possible to use xslt_process($xml, $xsl,$result) with a string $xml comtaining XML instead of pointing to an .xml file ? #2 : I have to copy a XML node from a XML file to another (both on server) and then transform it with XSLT and produce HTML. How make it simply ? I have a solution using xml2tree, but I'd prefer a DOM-XML solution (it exists in java with xalan ...) I use PHP 4.1.1 on windows 2000 and MS IIS 5.0. Thanks for any help. Eric Tonicello -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] function not returning TRUE
On Tuesday, February 12, 2002, at 11:24 AM, Nick Wilson wrote: Hi all Can anyone see any reason why this function does not appear to be returning true? It appears to be returning 1 though? [snip snip] if(!$this-_db_connect()) { return FALSE; } if(!($result=mysql_query($qry))) { return FALSE; } else { snipped/ Hm. I can't answer your question, but I'd like to ask you one. I've been using 'return 1' or 'return 0' in my function calls -- is there an advantage to using 'TRUE' or 'FALSE' rather than numbers? In other words, why did you choose to do it the way you did? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Exchange substitute
I'm doing a project to move my company off of microsloth exchange. I have dont qmail with courier imap, now I was looking for suggestions for the rest of exchange features, calendaring, scheduling and so on and so forth. Is there one good package? Try TWIG. I've played with an older version and it does all of that pretty well. It could only have gotten better since then. Don't know the address off the top of my head. Do a search on Freshmeat to find it. Have fun! - Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] A MYSQL COUNTER
I just looked at your website (http://www.filmfind.tv) to get a better feeling for what you might be after. Based upon your comments below and the purpose of filmfind.tv, it appears a mysql solution might be required. At the least, you need to store the email address of your members. I assume you already have that stored elsewhere. Second, the requirement for new unique visitor is the phrase that pays here. You will need to maintain a list of visitors and search that list to determine uniqueness. A database would be the fastest to develop. As to whether your application is too much for MYSQLworry not. There are MYSQL DBs out there with millions of rows and very complex relational structures. -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] A MYSQL COUNTER whenever they're is a new unique visitor, I want a script to email the member about who visited. And have a permanent record for each member of who viewed their pages, accesible when they login. Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The question you must answer first: what do you intend to do with the data once it's collected? Will you simply review the data without sorting it or performing data manipulation? If so, why incur the overhead of MYSQL? If all you need to do is log the user page hits, use a text file; then use grep/awk/sed/perl/php to search for specific users with their page hits, etc. Define your requirements more explicitly, then choose a solution. -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 6:39 PM To: Georgie Casey; [EMAIL PROTECTED] Subject: RE: [PHP] A MYSQL COUNTER This is too much for a text file. You should definitely use MySQL for this. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP] A MYSQL COUNTER I need a way of tracking what user was logged in when vieweing a particular member page, so I'm thinking of having EVERY unique page view of each member page added to a MySQL database, which just the ip, time and date, server name and browser, stuff like that. Is this too much for a MySQL DB??? Should I just write all the info to a textfile??? TANX -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv Ireland's Online Film Production Directory *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Exchange substitute
http://twig.screwdriver.net/ -Original Message- From: Erik H. Mathy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:23 AM To: PHP General List Subject: RE: [PHP] Exchange substitute I'm doing a project to move my company off of microsloth exchange. I have dont qmail with courier imap, now I was looking for suggestions for the rest of exchange features, calendaring, scheduling and so on and so forth. Is there one good package? Try TWIG. I've played with an older version and it does all of that pretty well. It could only have gotten better since then. Don't know the address off the top of my head. Do a search on Freshmeat to find it. Have fun! - Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Implement @-domains with PHP?
I don't think that string actually gets sent unless the browser receives a 401 Auth Required (I think that's it) header. Even if you have that setup and put a page with phpinfo() in it you'll notice that none of the environment variables will look like the url you've got below. The browser pulls that out first and sends them as separate headers... I think anyway... On Tue, 12 Feb 2002, Christian Blichmann wrote: Hello Again! Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd like to retrieve the http://someReallyWeirdAtDomain-part. http://php.net/parse-url I think you misunderstood my question, my problem is not how to parse the URI, I discovered the the parse_url-function before... My problem is much more trivial, how to retrieve the string the user type into the address bar of his/her browser??? -- Christian _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the .nospam from address. _ do you want to know more? web:http://www.blichmann.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re-Importing .CSV file into Database
Glory! I have a bunch of .CSV (Microsoft Excel Comma Seperated Values) Files with me, whose data i want to put back into my mySQL database tables. How can i do that through php? or otherwise... thanks, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Implement @-domains with PHP?
$what_you_want = $HTTP_HOST . $REQUEST_URI; Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Solaris (UNIX) accounts - PHP 4.0.6, mod_perl/1.25, Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43 PostgreSQL coming soon! http://www.newmediaone.net [EMAIL PROTECTED] (303)828-9882 - Original Message - From: Philip Hallstrom [EMAIL PROTECTED] To: Christian Blichmann [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 10:54 AM Subject: [PHP] Re: Implement @-domains with PHP? I don't think that string actually gets sent unless the browser receives a 401 Auth Required (I think that's it) header. Even if you have that setup and put a page with phpinfo() in it you'll notice that none of the environment variables will look like the url you've got below. The browser pulls that out first and sends them as separate headers... I think anyway... On Tue, 12 Feb 2002, Christian Blichmann wrote: Hello Again! Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd like to retrieve the http://someReallyWeirdAtDomain-part. http://php.net/parse-url I think you misunderstood my question, my problem is not how to parse the URI, I discovered the the parse_url-function before... My problem is much more trivial, how to retrieve the string the user type into the address bar of his/her browser??? -- Christian _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the .nospam from address. _ do you want to know more? web:http://www.blichmann.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re-Importing .CSV file into Database
look at MYSQL's LOAD DATA INFILE command: LOAD DATA INFILE datafile.csv INTO mytable FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Re-Importing .CSV file into Database Glory! I have a bunch of .CSV (Microsoft Excel Comma Seperated Values) Files with me, whose data i want to put back into my mySQL database tables. How can i do that through php? or otherwise... thanks, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] function not returning TRUE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Erik Price declared Hm. I can't answer your question, but I'd like to ask you one. I've been using 'return 1' or 'return 0' in my function calls -- is there an advantage to using 'TRUE' or 'FALSE' rather than numbers? In other words, why did you choose to do it the way you did? The only advantage I see is being able to do something like if($myfunc()) { print(true); } else print(false); Which is quite tidy. I think I've caught the problem BTW, I switched from testing with if/else to a switch statement. Which says I was testing incorrectly (not that I ever worked out why) Cheers... - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8aVuKHpvrrTa6L5oRAtnOAKCJTNquM8PgSB/87BKNWkhrYrOd7QCfaGO3 XUyTl7rVOYf9cYMbdbptm6I= =yv7c -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] a user_auth script. 1 down any more ?
Massive Help Hugh, I missed that one and learnt the lesson make sure statements are closed. I am now getting complaint of an error on line 68. I still can't see anymore. More help is appriciated. Thanks, Matt. -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 16:20 To: [EMAIL PROTECTED]; php Subject: Re: [PHP] a user_auth script.- Anyone see the problem ? Check for a closing bracket on this statement if($row[account_password]==$login_name // line 14 or 15 needs ) Hope this helps Hugh - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:59 AM Subject: [PHP] a user_auth script.- Anyone see the problem ? ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); while ($row=mysql_fetch_array($admin_string_auth)) { if($row[account_password]==$login_name { $query = insert into account_details (account_type, account_name, account_address, account_address1, account_address2, account_address3, account_address4, account_address5, account_contact, account_phone, account_fax, account_email, account_start_date, account_authorised_credit, account_pin, account_disabled_flag, metered_jobs, unmetered_jobs, account_pin_activate) values ('$account_type', '$account_name', '$account_house', '$account_street', '$account_street1', '$account_town', '$account_city', '$account_postcode', '$account_contact', '$account_phone', '$account_fax', '$account_email', '$account_start', '$account_credit_authorised', '$account_pin', '$account_disabled_flag', '$metered_job_count', '$unmetered_job_count', '$account_pin_activated'); mysql_query($query) or die (mysql_error()); } else {printf(could not update); } } else {printf(Error wrong PAssword); } ? H2 Data Submitted /H2 H2 A HREF=view_test_records.php View the records /A/H2 ?php } else { include(insert_test_data.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re-Importing .CSV file into Database
Glory! I have a bunch of .CSV (Microsoft Excel Comma Seperated Values) Files with me, whose data i want to put back into my mySQL database tables. How can i do that through php? or otherwise... Take a look at MySQL-Front - its menu system talks about CSV (I've not had an excuse to use it). MySQL offers LOAD DATA INFILE, etc. Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] My php goes poof.
I've had this set up on a win98 Pentium II 350 machine for a year and a half. It seems the problem goes way back a long time but can't be sure. It doesn't happen on the isp where things go when done, so I lived with it on this machine. I always expected it was some needed garbage collection, an overflow or other limited thing that was happening. Like maybe the ini's weren't optimal..? Actually I expected to hear it was a common problem but that it could be fixed. :-/ Because it's been there through upgrades, etc. Maybe it does relate to an old 98 problem. So no one else ever had this happen? Are there any ideas on 'potential' trouble spots or 'switches' to throw? If I can't just edit an ini, I'll have to give the re-installs another try... Bummer. ;- Floyd On Tue, 12 Feb 2002 08:25:32 -0500, you wrote: I am certainly not an apologist for M$ but the response you sent is a bit off the mark. Although Apache, PHP and My SQL are not developed specifically for M$ systems they now are available and I have found them to be stable on both winnt and win2k. I have never had PHP, MySQL or Apache go down. Anyway back to the original questionhow long have you had your configuration installed and has it always been funky? If so I would say go back and reinstall (being sure to back up your data and config files for apache and mysql) I have tried multiple installations on win2k and found that abria merlin (free from www.abriasoft.com) was the easiest to get up and running with a minimum of configuration issues. Hope that helps, Frederic Liam MacKenzie wrote: I'd be willing to bet that it's a M$ thing! As it says in all the documentation, neither apache, mysql nor php were designed for M$ systems. Other than bag M$, I can't help you, sorry! ;-) - Original Message - From: Floyd Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 2:16 PM Subject: [PHP] My php goes poof. Hi phpeople. Can anyone tell me why my php just stops working periodically? I have a win32/apache/php4.1/mysql set up. I can do things here for about an hour or so and then all of a sudden I get nothing but html remains. I need to take down apache and restart it for the php parsing to kick back in. Floyd -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connecting to a Sybase server?
Anyone successfully using Sybase with PHP? I have looked at the archives and the online notes to the manual, but still have not been successful connecting to a sybase server. We are trying with the CT drivers. In particular I don't see how to specify the database and port. sybase_connect is: int sybase_connect ( string servername, string username, string password [, string charset]) For instance I have been given the database server IP address, the database name and the Port (3000). How would I specify the database on sybase_connect? I can connect to the machine from a windows machine using ODBC. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Problems with MySQL-Link [3:14370:14592] (Solved)
Hi all, Do not use || instead of or !!! Example: $result = mysql_query(select now()) OR die (mysql_error()); -- Berthold -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a user_auth script. 1 down any more ?
Try closing all your { }. count them up, you are missing the closing bracket on your while statment.. Jim Lucas - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 10:25 AM Subject: RE: [PHP] a user_auth script. 1 down any more ? Massive Help Hugh, I missed that one and learnt the lesson make sure statements are closed. I am now getting complaint of an error on line 68. I still can't see anymore. More help is appriciated. Thanks, Matt. -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 16:20 To: [EMAIL PROTECTED]; php Subject: Re: [PHP] a user_auth script.- Anyone see the problem ? Check for a closing bracket on this statement if($row[account_password]==$login_name // line 14 or 15 needs ) Hope this helps Hugh - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:59 AM Subject: [PHP] a user_auth script.- Anyone see the problem ? ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); while ($row=mysql_fetch_array($admin_string_auth)) { if($row[account_password]==$login_name { $query = insert into account_details (account_type, account_name, account_address, account_address1, account_address2, account_address3, account_address4, account_address5, account_contact, account_phone, account_fax, account_email, account_start_date, account_authorised_credit, account_pin, account_disabled_flag, metered_jobs, unmetered_jobs, account_pin_activate) values ('$account_type', '$account_name', '$account_house', '$account_street', '$account_street1', '$account_town', '$account_city', '$account_postcode', '$account_contact', '$account_phone', '$account_fax', '$account_email', '$account_start', '$account_credit_authorised', '$account_pin', '$account_disabled_flag', '$metered_job_count', '$unmetered_job_count', '$account_pin_activated'); mysql_query($query) or die (mysql_error()); } else {printf(could not update); } } else {printf(Error wrong PAssword); } ? H2 Data Submitted /H2 H2 A HREF=view_test_records.php View the records /A/H2 ?php } else { include(insert_test_data.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] a user_auth script. 1 down any more ?
you surprise me I counted { + } and got six of each. I'll double check. Thanks for the input. Matt. -Original Message- From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 18:55 To: [EMAIL PROTECTED]; hugh danaher; php Subject: Re: [PHP] a user_auth script. 1 down any more ? Try closing all your { }. count them up, you are missing the closing bracket on your while statment.. Jim Lucas - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 10:25 AM Subject: RE: [PHP] a user_auth script. 1 down any more ? Massive Help Hugh, I missed that one and learnt the lesson make sure statements are closed. I am now getting complaint of an error on line 68. I still can't see anymore. More help is appriciated. Thanks, Matt. -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 16:20 To: [EMAIL PROTECTED]; php Subject: Re: [PHP] a user_auth script.- Anyone see the problem ? Check for a closing bracket on this statement if($row[account_password]==$login_name // line 14 or 15 needs ) Hope this helps Hugh - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:59 AM Subject: [PHP] a user_auth script.- Anyone see the problem ? ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); while ($row=mysql_fetch_array($admin_string_auth)) { if($row[account_password]==$login_name { $query = insert into account_details (account_type, account_name, account_address, account_address1, account_address2, account_address3, account_address4, account_address5, account_contact, account_phone, account_fax, account_email, account_start_date, account_authorised_credit, account_pin, account_disabled_flag, metered_jobs, unmetered_jobs, account_pin_activate) values ('$account_type', '$account_name', '$account_house', '$account_street', '$account_street1', '$account_town', '$account_city', '$account_postcode', '$account_contact', '$account_phone', '$account_fax', '$account_email', '$account_start', '$account_credit_authorised', '$account_pin', '$account_disabled_flag', '$metered_job_count', '$unmetered_job_count', '$account_pin_activated'); mysql_query($query) or die (mysql_error()); } else {printf(could not update); } } else {printf(Error wrong PAssword); } ? H2 Data Submitted /H2 H2 A HREF=view_test_records.php View the records /A/H2 ?php } else { include(insert_test_data.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a user_auth script. 1 down any more ?
forgive me, I did count wrong, the problem happens to be that you are using an ELSE on the end of a while loop. :P Jim Lucas - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: Jim Lucas [php] [EMAIL PROTECTED]; hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:04 AM Subject: RE: [PHP] a user_auth script. 1 down any more ? you surprise me I counted { + } and got six of each. I'll double check. Thanks for the input. Matt. -Original Message- From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 18:55 To: [EMAIL PROTECTED]; hugh danaher; php Subject: Re: [PHP] a user_auth script. 1 down any more ? Try closing all your { }. count them up, you are missing the closing bracket on your while statment.. Jim Lucas - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 10:25 AM Subject: RE: [PHP] a user_auth script. 1 down any more ? Massive Help Hugh, I missed that one and learnt the lesson make sure statements are closed. I am now getting complaint of an error on line 68. I still can't see anymore. More help is appriciated. Thanks, Matt. -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 12 February 2002 16:20 To: [EMAIL PROTECTED]; php Subject: Re: [PHP] a user_auth script.- Anyone see the problem ? Check for a closing bracket on this statement if($row[account_password]==$login_name // line 14 or 15 needs ) Hope this helps Hugh - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:59 AM Subject: [PHP] a user_auth script.- Anyone see the problem ? ?php include(../dbconnect.php); if ($submit == sign!) { $admin_string_auth=(select account_name, account_password, account_admin_level from account_details where account_name='$login_name') or die (Cant run auth string); while ($row=mysql_fetch_array($admin_string_auth)) { if($row[account_password]==$login_name { $query = insert into account_details (account_type, account_name, account_address, account_address1, account_address2, account_address3, account_address4, account_address5, account_contact, account_phone, account_fax, account_email, account_start_date, account_authorised_credit, account_pin, account_disabled_flag, metered_jobs, unmetered_jobs, account_pin_activate) values ('$account_type', '$account_name', '$account_house', '$account_street', '$account_street1', '$account_town', '$account_city', '$account_postcode', '$account_contact', '$account_phone', '$account_fax', '$account_email', '$account_start', '$account_credit_authorised', '$account_pin', '$account_disabled_flag', '$metered_job_count', '$unmetered_job_count', '$account_pin_activated'); mysql_query($query) or die (mysql_error()); } else {printf(could not update); } } else {printf(Error wrong PAssword); } ? H2 Data Submitted /H2 H2 A HREF=view_test_records.php View the records /A/H2 ?php } else { include(insert_test_data.php); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP with gd support
I had php working with the RPMs in RedHat, but I followed the instructions from this site: http://www.e-gineer.com/instructions/index.phtml (BTW;excellent site) and now I'm working with php-4.1.1 and apache_1.3.14. But now when browse the my PHP webpage with pics on it, I get: Sorry, but this script requires that your copy of PHP has been compiled with support for images. configure --with-gd ... My question is: if i configure with gd support, do i have to do the 'make' and 'make install'(I think do) and will it mess up the other arguements i put in from the instruction site? or do I do the configure with all the other arguements AND --with-gd and then do the 'make' and 'make install'? Thanks for the help Gary __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re-Importing .CSV file into Database
I have space on a server on the internet. I have mySQL PHP4 support. And i can easily upload the .CSV files on the server itself. Could you kindly help me out with the php code that would make this possible.. Thanks, T. Edison jr. --- Rick Emery [EMAIL PROTECTED] wrote: The file is located on the server and you have access to it, yes. If the file is on the client, then no -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:21 PM To: Rick Emery Subject: RE: [PHP] Re-Importing .CSV file into Database HI, Thanks.. i will try this. But tell me, can this same be executed through a php page rather than the mySQL command line? T. Edison Jr. --- Rick Emery [EMAIL PROTECTED] wrote: look at MYSQL's LOAD DATA INFILE command: LOAD DATA INFILE datafile.csv INTO mytable FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Re-Importing .CSV file into Database Glory! I have a bunch of .CSV (Microsoft Excel Comma Seperated Values) Files with me, whose data i want to put back into my mySQL database tables. How can i do that through php? or otherwise... thanks, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How do I send a POST request?
I'm currently sending an HTTP request for clientlogin.php?date=2002-02-12type=nl and doing this by opening a socket connection with fsockopen, fwriting GET /clientlogin.php?date=2002-02-12type=nl.. to the socket and then using fgets to read the response. How do I send a POST request using a similar method? I'm doing this in PHP-GTK so I cant write an HTML form and submit it with Javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] A MYSQL COUNTER
yea, I'm going to use MySQL for it. Tanx Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I just looked at your website (http://www.filmfind.tv) to get a better feeling for what you might be after. Based upon your comments below and the purpose of filmfind.tv, it appears a mysql solution might be required. At the least, you need to store the email address of your members. I assume you already have that stored elsewhere. Second, the requirement for new unique visitor is the phrase that pays here. You will need to maintain a list of visitors and search that list to determine uniqueness. A database would be the fastest to develop. As to whether your application is too much for MYSQLworry not. There are MYSQL DBs out there with millions of rows and very complex relational structures. -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] A MYSQL COUNTER whenever they're is a new unique visitor, I want a script to email the member about who visited. And have a permanent record for each member of who viewed their pages, accesible when they login. Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The question you must answer first: what do you intend to do with the data once it's collected? Will you simply review the data without sorting it or performing data manipulation? If so, why incur the overhead of MYSQL? If all you need to do is log the user page hits, use a text file; then use grep/awk/sed/perl/php to search for specific users with their page hits, etc. Define your requirements more explicitly, then choose a solution. -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 6:39 PM To: Georgie Casey; [EMAIL PROTECTED] Subject: RE: [PHP] A MYSQL COUNTER This is too much for a text file. You should definitely use MySQL for this. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP] A MYSQL COUNTER I need a way of tracking what user was logged in when vieweing a particular member page, so I'm thinking of having EVERY unique page view of each member page added to a MySQL database, which just the ip, time and date, server name and browser, stuff like that. Is this too much for a MySQL DB??? Should I just write all the info to a textfile??? TANX -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv Ireland's Online Film Production Directory *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do I send a POST request?
See PostToHost in the archives: http://marc.theaimsgroup.com/?l=php-generalm=92353052714384w=2 Kirk -Original Message- From: LaserJetter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:15 PM To: [EMAIL PROTECTED] Subject: [PHP] How do I send a POST request? I'm currently sending an HTTP request for clientlogin.php?date=2002-02-12type=nl and doing this by opening a socket connection with fsockopen, fwriting GET /clientlogin.php?date=2002-02-12type=nl.. to the socket and then using fgets to read the response. How do I send a POST request using a similar method? I'm doing this in PHP-GTK so I cant write an HTML form and submit it with Javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Implement @-domains with PHP?
Peter Janett [EMAIL PROTECTED] wrote in message 022101c1b3ef$809cf450$4de70142@peters">news:022101c1b3ef$809cf450$4de70142@peters... $what_you_want = $HTTP_HOST . $REQUEST_URI; Well, thanks - but it didn't work for me (don't have the $REQUEST_URI variable set)... btw, my setup is: PHP 4.0.1 with IIS 5.0 running as ISAPI on Win2k. And: doesn't work with PHP installed as a CGI module, too. -- Christian _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the .nospam from address. _ do you want to know more? web:http://www.blichmann.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Implement @-domains with PHP?
Philip Hallstrom [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't think that string actually gets sent unless the browser receives a 401 Auth Required (I think that's it) header. Any idea how this could be done without popping up the login dialog??? - btw, I know how to do this whole thing in JavaScript (using the location object), but that won't work for text browsers or oldtimers like NN 2.x. Can I use a blank password like in http://someUserText:@myDomainName.dom; ? -- THX, Christian Blichmann _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the .nospam from address. _ do you want to know more? web:http://www.blichmann.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re-Importing .CSV file into Database
connect to your mysql server select the mysql database $query = LOAD DATA INFILE datafile.csv INTO mytable . FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\' . LINES TERMINATED BY '\n' ; mysql_query($query) or die(error:. mysql_error()); -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:11 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re-Importing .CSV file into Database I have space on a server on the internet. I have mySQL PHP4 support. And i can easily upload the .CSV files on the server itself. Could you kindly help me out with the php code that would make this possible.. Thanks, T. Edison jr. --- Rick Emery [EMAIL PROTECTED] wrote: The file is located on the server and you have access to it, yes. If the file is on the client, then no -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:21 PM To: Rick Emery Subject: RE: [PHP] Re-Importing .CSV file into Database HI, Thanks.. i will try this. But tell me, can this same be executed through a php page rather than the mySQL command line? T. Edison Jr. --- Rick Emery [EMAIL PROTECTED] wrote: look at MYSQL's LOAD DATA INFILE command: LOAD DATA INFILE datafile.csv INTO mytable FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Re-Importing .CSV file into Database Glory! I have a bunch of .CSV (Microsoft Excel Comma Seperated Values) Files with me, whose data i want to put back into my mySQL database tables. How can i do that through php? or otherwise... thanks, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do I send a POST request?
Perhaps use a form? On 12/Feb/2002 19:14:48, LaserJetter wrote: I'm currently sending an HTTP request for clientlogin.php?date=2002-02-12type=nl and doing this by opening a socket connection with fsockopen, fwriting GET /clientlogin.php?date=2002-02-12type=nl.. to the socket and then using fgets to read the response. How do I send a POST request using a similar method? I'm doing this in PHP-GTK so I cant write an HTML form and submit it with Javascript. -- PHP General Mailing List (A HREF=http://www.php.net/;http://www.php.net//A) To unsubscribe, visit: A HREF=http://www.php.net/unsub.php;http://www.php.net/unsub.php/A ___ Philip J. Newman ___ Powered by http://www.philipsdomain.com/ Newman Online. Verified account: newmanpj at nospam.philipsdomain.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and CGI
I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] libmcrypt problem
Hello, I am experiencing a weird problem, hopefully someone can help me with it: Environment: HP-UX 11.11 PhP ver.4.1.1 libmcrypt 2.4.19 I have successfully built libmcrypt: /opt/mcrypt/configure --disable-posix-threads make ; make install Library is created in /usr/local/lib I have successfuly built PhP DSO module: CC=cc ./configure --prefix=/home/bpia \ --with-apxs=/home/bpia/bin/apxs \ --with-php-config \ --with-ldap=/home/bpia/ldapsdk \ --with-mcrypt=/opt/mcrypt \ --with-openssl \ --with-db \ --with-gdbm \ --with-zlib \ --with-bz2 \ --with-regex=php \ --enable-inline-optimization \ --enable-debugger \ --enable-magic-quotes \ --enable-track-vars \ --enable-yp \ --without-mysql \ --with-xml \ --with-gmp \ --with-mhash \ --enable-bcmath \ --with-config-file=/home/bpia/php.ini make make install When I try to restart apache server I get the following errors: [Tue Feb 12 14:04:57 2002] [warn] VeriSign CVM 2.02: VeriSign Certificate Validation Module, Version 2.02 starting up! /usr/lib/dld.sl: Unresolved symbol: end_mcrypt_cfb (code) from /opt/apache/modules/libphp4.so /usr/lib/dld.sl: Unresolved symbol: mcrypt_cfb (code) from /opt/apache/modules/libphp4.so /usr/lib/dld.sl: Unresolved symbol: mcrypt_cbc (code) from //opt/apache/modules/libphp4.so /usr/lib/dld.sl: Unresolved symbol: end_mcrypt_ofb (code) from //opt/apache/modules/libphp4.so /usr/lib/dld.sl: Unresolved symbol: mcrypt_ecb (code) from /opt/apache/modules/libphp4.so etc. I checked and the above symbols are defined in libmcrypt.2.2.5 which is in php/ext/mcrypt directory. Why does PhP configure script go to ext/mcrypt directory even when I specifically specify to go to mcrypt directory? # nm -p libmcrypt.sl // doesn't defined the above unresolved symbols # cd /opt/php/ext/mcrypt ; nm -p libmcrypt.2.5.sl // defines the above mentioned symbols. P.S. If I used libmcrypt.2.2.5, everything works fine. I *have to* use libmcrypt.2.4.2. Any ideas? Thank you in advance! Leon --- Leon Zilber HP Internet Operation RD Lab phone: 973.443.78.82 email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re-Importing .CSV file into Database
Hi Rick, I tries your code but i'm constantly getting some errors. I modified the line to try and correct the error, and this is the code i'm using : ?php $db = mysql_connect(localhost,mydb,pwd); mysql_select_db(mydb,$db); $query = LOAD DATA INFILE list.csv INTO list_try FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\' LINES TERMINATED BY '\n'; mysql_query($query) or die(error:. mysql_error()); echo Thank you! Your information has been entered.\n; ? And i'm still getting errors on the mail $query line. Can you say what is wrong? T. Edison Jr. --- Rick Emery [EMAIL PROTECTED] wrote: connect to your mysql server select the mysql database $query = LOAD DATA INFILE datafile.csv INTO mytable . FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\' . LINES TERMINATED BY '\n' ; mysql_query($query) or die(error:. mysql_error()); -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:11 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Re-Importing .CSV file into Database I have space on a server on the internet. I have mySQL PHP4 support. And i can easily upload the .CSV files on the server itself. Could you kindly help me out with the php code that would make this possible.. Thanks, T. Edison jr. --- Rick Emery [EMAIL PROTECTED] wrote: The file is located on the server and you have access to it, yes. If the file is on the client, then no -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:21 PM To: Rick Emery Subject: RE: [PHP] Re-Importing .CSV file into Database HI, Thanks.. i will try this. But tell me, can this same be executed through a php page rather than the mySQL command line? T. Edison Jr. --- Rick Emery [EMAIL PROTECTED] wrote: look at MYSQL's LOAD DATA INFILE command: LOAD DATA INFILE datafile.csv INTO mytable FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Re-Importing .CSV file into Database Glory! I have a bunch of .CSV (Microsoft Excel Comma Seperated Values) Files with me, whose data i want to put back into my mySQL database tables. How can i do that through php? or otherwise... thanks, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and CGI
is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] a user_auth script.- Anyone see the problem ?
In this line: if($row[account_password]==$login_name you are missing a parenthesis character ) to end the condition with. Richard. [EMAIL PROTECTED] http://www.dreamriver.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and CGI
No, it is in a CGI script. And I can't recompile PHP for cgi extensions. :( -Mike -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:43 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] IE vertical scrollbars changing color
I know this is probably a HTML question and not a PHP question but... I just upgraded to Internet Explorer 6.0 and I noticed that some websites have the ability to change the vertical scrollbar's colors. Anybody know how to do this?? Thanks!!
Re: [PHP] IE vertical scrollbars changing color
CSS... here's an example: BODY { font-size : 10pt; font-family : Arial, Helvetica, sans-serif; scrollbar-face-color: MidnightBlue; scrollbar-highlight-color: MidnightBlue; scrollbar-shadow-color: Gray; scrollbar-3dlight-color: #f3f3f3; scrollbar-arrow-color: #f3f3f3; scrollbar-track-color: #E3E3E3; scrollbar-darkshadow-color: MidnightBlue; } At 02:57 PM 2/12/2002 -0500, Phil Schwarzmann wrote: I know this is probably a HTML question and not a PHP question but... I just upgraded to Internet Explorer 6.0 and I noticed that some websites have the ability to change the vertical scrollbar's colors. Anybody know how to do this?? Thanks!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ereg-digits only...
On Tue, 2002-02-12 at 03:04, B. Verbeek wrote: How do I check a string for it to only contain numbers? if(!ereg(([0-9]+),$string)){ print It contains characters other than numbers; }else{ print Only numbers; } Can anyone give some feedback... regards, Bart Sure, try is_numeric(): http://www.php.net/is_numeric Hope this helps, Torben -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Require File on Another Computer with UNC Reference
I'm using IIS 5.0 on Windows 2000. I installed PHP 4.1.1 configured to be a CGI interpreter. I'm trying to require a file located on another W2K computer on our LAN with this code: require 'computername\\sharename\\functions.php'; However, when I try to execute this PHP script, I get this error: Fatal error: Failed opening required 'computername\\sharename\\functions.php' (include_path='..') in c:\inetput\wwwroot\keygen\index.php on line 3 Does anyone have advice on how to make this UNC reference work correctly? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and CGI
That I know, the file with the php code needs to have the extension of .php I absolutely don't know anything about CGI, but could you somehow include a .php file in your script? - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:07 PM Subject: RE: [PHP] PHP and CGI No, it is in a CGI script. And I can't recompile PHP for cgi extensions. :( -Mike -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:43 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do I send a POST request?
On Tuesday, February 12, 2002, at 02:14 PM, LaserJetter wrote: I'm currently sending an HTTP request for clientlogin.php?date=2002-02-12type=nl and doing this by opening a socket connection with fsockopen, fwriting GET /clientlogin.php?date=2002-02-12type=nl.. to the socket and then using fgets to read the response. How do I send a POST request using a similar method? I'm doing this in PHP-GTK so I cant write an HTML form and submit it with Javascript. In theory, you can just send all of the headers followed by an extra newline and then the connection followed by the POST variables. In theory. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and CGI
I don't know. I was thinking about breaking it off and just doing an include like in html. I'll try it out by tomorrow morning unless someone else has a definitive solution. :) Thanks for the suggestion! -Mike -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:20 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI That I know, the file with the php code needs to have the extension of .php I absolutely don't know anything about CGI, but could you somehow include a .php file in your script? - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:07 PM Subject: RE: [PHP] PHP and CGI No, it is in a CGI script. And I can't recompile PHP for cgi extensions. :( -Mike -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:43 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do I send a POST request?
http://phpclasses.upperdesign.com/browse.html/package/375/ -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:21 PM To: LaserJetter Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How do I send a POST request? On Tuesday, February 12, 2002, at 02:14 PM, LaserJetter wrote: I'm currently sending an HTTP request for clientlogin.php?date=2002-02-12type=nl and doing this by opening a socket connection with fsockopen, fwriting GET /clientlogin.php?date=2002-02-12type=nl.. to the socket and then using fgets to read the response. How do I send a POST request using a similar method? I'm doing this in PHP-GTK so I cant write an HTML form and submit it with Javascript. In theory, you can just send all of the headers followed by an extra newline and then the connection followed by the POST variables. In theory. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and CGI
Good day, The php file can have whichever extension that you want, provided that the webserver understands which application is associated with which extension. If you want to run a PHP script as a CGI or without the webserver , just install the PHP standalone executable. This is done by default with many RPM packages, and can easily be done with a tarball. To run the script, just put: #!/usr/local/bin/php (or whatever location it's installed into) as the first line of your php script. Your CGI program can run this program like any other shell command and get the results. Also, if the extension is .cgi , your web server should understand that it's a cgi program and exec it appropriately. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:20 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI That I know, the file with the php code needs to have the extension of .php I absolutely don't know anything about CGI, but could you somehow include a .php file in your script? - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:07 PM Subject: RE: [PHP] PHP and CGI No, it is in a CGI script. And I can't recompile PHP for cgi extensions. :( -Mike -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:43 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not parsed in HTML
Hhere's another humdinger of a question: I am with a hosting company that doesn't want to parse PHP in HTML files because they are afraid it will slow down their server(s) too much. So. I really like them and don't want to move the site if I don't really *have* to. There are some neat things I would love to be doing in the HTML on it, though. I was thinking; could I make some sort of little javacript calling on, or including the PHP file I want to run on the HTML page? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not parsed in HTML
On Tue, 2002-02-12 at 12:36, SpyProductions Support Team wrote: Hhere's another humdinger of a question: I am with a hosting company that doesn't want to parse PHP in HTML files because they are afraid it will slow down their server(s) too much. So. I really like them and don't want to move the site if I don't really *have* to. There are some neat things I would love to be doing in the HTML on it, though. I was thinking; could I make some sort of little javacript calling on, or including the PHP file I want to run on the HTML page? Thanks, -Mike Can't think of a way to do it in JS off the top of my head--JS is client-side, which PHP is server-side. You could try putting this in your .htaccess file and see what happens: IfModule mod_php4.c AddType application/x-httpd-php .html .inc .php /IfModule ...which, if the PHP module is available in the server, will tell the server to run these file types through PHP. Alternately, you could compile PHP as a CGI and just install it in your home dir and use that. Hope this helps, Torben -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Implement @-domains with PHP?
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Christian Blichmann) wrote: My problem is much more trivial, how to retrieve the string the user type into the address bar of his/her browser??? You can look over the environment vars available to you with a quick call to phpinfo() http://php.net/phpinfo. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHPUG in Montreal
Hello, As an American working in Montreal, Canada, I am very much interested in finding out if there are any english-speaking PHP or Linux User Groups in the area, or if fellow Montreal PHP users would like to form one. Lets get together and spread the knowledge =) Jason Lotito Programmer Developer Clockmedia Inc. Designing Tomorrow's Games, Today! 1-877-625-6256 514-908-2800 Fax: 514-908-2803 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session_id()
I am newbie here.. I am curious has session_id() the same implementation is SID constant? Do they produce the same result? I have page let's say login.php that where SID is not being parsed by PHP and I am trying to find the cause behind (using PHP4) $sid_value= .SID; header(location:index.php?error_message=$message$sid_value I get the following url: http://localhost/index.php?error_message=message+goes+here.SID I actually get .SID and the end and not SID value? any thoughts? I am sorry for asking but I am completely new to PHP.. Thanks Pax -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP not parsed in HTML
Hostrocket.com, one of the ISPs we host our clients web sites on, allows us to do this by simply adding the following lines into the .htaccess file in account's home directory.. AddType application/x-httpd-php .html AddType application/x-httpd-php .htm I do not know if this is a general solution or one specific to their servers. But it works well and is search engine friendly. I don't see any degradation in speed as a result of it. -- Kevin Stone [EMAIL PROTECTED] www.helpelf.com -Original Message- From: SpyProductions Support Team [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:37 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP not parsed in HTML Hhere's another humdinger of a question: I am with a hosting company that doesn't want to parse PHP in HTML files because they are afraid it will slow down their server(s) too much. So. I really like them and don't want to move the site if I don't really *have* to. There are some neat things I would love to be doing in the HTML on it, though. I was thinking; could I make some sort of little javacript calling on, or including the PHP file I want to run on the HTML page? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP not parsed in HTML
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Spyproductions Support Team) wrote: I am with a hosting company that doesn't want to parse PHP in HTML files because they are afraid it will slow down their server(s) too much. So. I really like them and don't want to move the site if I don't really *have* to. There are some neat things I would love to be doing in the HTML on it, though. I was thinking; could I make some sort of little javacript calling on, or including the PHP file I want to run on the HTML page? Does the hosting company support server side includes (SSIs)? If so, using !--#include virtual...-- syntax may be an option. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session_id()
On Tuesday, February 12, 2002, at 03:53 PM, Pax wrote: Try get_defined_constants() to see what's in your constants array. $sid_value= .SID; header(location:index.php?error_message=$message$sid_value I get the following url: http://localhost/index.php?error_message=message+goes+here.SID I actually get .SID and the end and not SID value? any thoughts? Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] session_id()
SID is defined on the *first* page request. It is only defined on later requests *if* cookies are disabled in the browser. Kirk -Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP] session_id() I am newbie here.. I am curious has session_id() the same implementation is SID constant? Do they produce the same result? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Refreshing a page.
Hi, I got a page, which uses frames. When a user logges in I would like to refresh a frame, but I don't know how to do that. Can anybody help me? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Implement @-domains with PHP?
Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can look over the environment vars available to you with a quick call to phpinfo() http://php.net/phpinfo. Thanks for replying, but as Philip stated in his reply to my question its that the actual location doesn't appear in the environment block. Regards, -- Christian _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the .nospam from address. _ do you want to know more? web:http://www.blichmann.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Refreshing a page.
did you try: meta http-equiv=refresh content=0; URL=http://my.site.com//thispage.html; -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Refreshing a page. Hi, I got a page, which uses frames. When a user logges in I would like to refresh a frame, but I don't know how to do that. Can anybody help me? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Refreshing a page.
If the login form is processed by a PHP script, just do header(Location: newpage.html); This will either redirect the page in the fram or redirect the whole document in the browser window. LJ Morten Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I got a page, which uses frames. When a user logges in I would like to refresh a frame, but I don't know how to do that. Can anybody help me? Thanks, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getting $PHP_SELF's basename
Is there already a built-in function that gets the basename of the current file? I wrote this: function get_current_page_name() { $current_page_name = explode(/, $_SERVER['PHP_SELF']); $current_page_name = array_slice($current_page_name, -1); return $current_page_name; } but I'm wondering if someone already did it for me. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Work in New York
Hi PHPers, I just moved to NYC from Germany and I'm looking for a job here. Where would be a good place to look? George __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP not parsed in HTML
Thanks for the suggestions - I'll see what I can do with them! :) -Mike -Original Message- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 4:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP not parsed in HTML In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Spyproductions Support Team) wrote: I am with a hosting company that doesn't want to parse PHP in HTML files because they are afraid it will slow down their server(s) too much. So. I really like them and don't want to move the site if I don't really *have* to. There are some neat things I would love to be doing in the HTML on it, though. I was thinking; could I make some sort of little javacript calling on, or including the PHP file I want to run on the HTML page? Does the hosting company support server side includes (SSIs)? If so, using !--#include virtual...-- syntax may be an option. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and CGI
I made some time to test, and no dice. The comment doesn't seem to matter. :( Thanks, -Mike -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:26 PM To: 'hugh danaher'; [EMAIL PROTECTED]; php Subject: RE: [PHP] PHP and CGI Good day, The php file can have whichever extension that you want, provided that the webserver understands which application is associated with which extension. If you want to run a PHP script as a CGI or without the webserver , just install the PHP standalone executable. This is done by default with many RPM packages, and can easily be done with a tarball. To run the script, just put: #!/usr/local/bin/php (or whatever location it's installed into) as the first line of your php script. Your CGI program can run this program like any other shell command and get the results. Also, if the extension is .cgi , your web server should understand that it's a cgi program and exec it appropriately. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:20 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI That I know, the file with the php code needs to have the extension of .php I absolutely don't know anything about CGI, but could you somehow include a .php file in your script? - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:07 PM Subject: RE: [PHP] PHP and CGI No, it is in a CGI script. And I can't recompile PHP for cgi extensions. :( -Mike -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:43 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Work in New York
George, I don't have any job sources for. However, I wondered where you lived in Germany. Ich habe fur drei Jahre in Kaiserlautern gewohnt. Von 1985 bis 1988. Sind Sie Deutscher oder Amerikaner im militar? rick -Original Message- From: George PHP [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:21 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Work in New York Hi PHPers, I just moved to NYC from Germany and I'm looking for a job here. Where would be a good place to look? George __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Work in New York
On Tuesday, February 12, 2002, at 04:21 PM, George PHP wrote: Hi PHPers, I just moved to NYC from Germany and I'm looking for a job here. Where would be a good place to look? Probably in Germany. The economy sucks in the States, I'm lucky to be temping (luckier to be using PHP). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting $PHP_SELF's basename
On Tue, 2002-02-12 at 13:16, Erik Price wrote: Is there already a built-in function that gets the basename of the current file? I wrote this: function get_current_page_name() { $current_page_name = explode(/, $_SERVER['PHP_SELF']); $current_page_name = array_slice($current_page_name, -1); return $current_page_name; } but I'm wondering if someone already did it for me. Erik echo basename($_SERVER['PHP_SELF']); http://www.php.net/basename Hope this helps, Torben -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP and CGI
Good day. That's not a comment. The #! at the start tells the shell to execute that as the interpreter for the script. Are you sure that you typed it in correctly? Did you install the PHP standalone application? Is it installed in that location? Did you set the file as executable? Did you try to run the script? What error did you receive? Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Michael R @ Spy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:28 PM To: Darren Gamble; php Subject: RE: [PHP] PHP and CGI I made some time to test, and no dice. The comment doesn't seem to matter. :( Thanks, -Mike -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:26 PM To: 'hugh danaher'; [EMAIL PROTECTED]; php Subject: RE: [PHP] PHP and CGI Good day, The php file can have whichever extension that you want, provided that the webserver understands which application is associated with which extension. If you want to run a PHP script as a CGI or without the webserver , just install the PHP standalone executable. This is done by default with many RPM packages, and can easily be done with a tarball. To run the script, just put: #!/usr/local/bin/php (or whatever location it's installed into) as the first line of your php script. Your CGI program can run this program like any other shell command and get the results. Also, if the extension is .cgi , your web server should understand that it's a cgi program and exec it appropriately. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:20 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI That I know, the file with the php code needs to have the extension of .php I absolutely don't know anything about CGI, but could you somehow include a .php file in your script? - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 12:07 PM Subject: RE: [PHP] PHP and CGI No, it is in a CGI script. And I can't recompile PHP for cgi extensions. :( -Mike -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 2:43 PM To: [EMAIL PROTECTED]; php Subject: Re: [PHP] PHP and CGI is your file extension .php? hugh - Original Message - From: SpyProductions Support Team [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 11:25 AM Subject: [PHP] PHP and CGI I did some research in the archives on this, but couldn't come up with a straight answer. I have a CGI script that uses and HTML template/form. I would like to embed a PHP script in the template to take some of the values of the CGI and put them in a database. I set up the database, wrote the PHP, but now find that the CGI script apparently won't recognize my PHP. Anyone have any ideas as to what I need to do? The CGI is a preset thing I can't re-write in PHP (at least for now). And I don't know much CGI myself. Thanks! -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Work in New York
So you want to say that PHP is going nowhere in the States? Maybe we should be doing ASP! On Tuesday, February 12, 2002, at 04:21 PM, George PHP wrote: Hi PHPers, I just moved to NYC from Germany and I'm looking for a job here. Where would be a good place to look? Probably in Germany. The economy sucks in the States, I'm lucky to be temping (luckier to be using PHP). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting $PHP_SELF's basename
On Tuesday, February 12, 2002, at 04:26 PM, Lars Torben Wilson wrote: echo basename($_SERVER['PHP_SELF']); http://www.php.net/basename Thank you Torben. Reading through the annotations on this manual entry, it looks like I'd be safer using the home-built function after all! Well, not really. But it seems that the optional 2nd parameter corrupts the 1st parameter even if it is a predefined variable (which is what I'm doing) -- which could have repercussions for $_SERVER['PHP_SELF'] down the road, right? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: IE vertical scrollbars changing color
Phil Schwarzmann wrote: I know this is probably a HTML question and not a PHP question but... I just upgraded to Internet Explorer 6.0 and I noticed that some websites have the ability to change the vertical scrollbar's colors. Anybody know how to do this?? Thanks!! body{ scrollbar-base-color:black; scrollbar-arrow-color:black; scrollbar-highlight-color:#FF8000; scrollbar-3dlight-color:silver; scrollbar-shadow-color:silver; scrollbar-darkshadow-color:black; scrollbar-face-color:#FF8000; } HTH Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Work in New York
On Tuesday, February 12, 2002, at 04:30 PM, George PHP wrote: So you want to say that PHP is going nowhere in the States? Maybe we should be doing ASP! I suppose that's a matter of opinion. One thing's for sure: where I work, ASP is the official scripting language. If my boss really knew the difference, I'd have to use ASP instead. I get around it by not bringing the subject up and by keeping my head down. I was talking with John Maddog Hall last week and he shared another story of some guys he knew (back in the mid-90s) who had the same situation as me -- they basically were told to set up a server. No other instructions. So they set up a Linux box, recognizing its virtues and technical prowess. When Maddog asked them what their boss thought about that, they sheepishly replied that he didn't know -- they figured they'd wait a YEAR before telling him so that they'd have a good point if it came down to an argument. Much as I'd love to evangelize my open source philosophy and the merits of my Linux/MySQL/PHP installation, it's going to have to wait until I'm done with this project. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to obtain the script's path?
Hi, I have a script need to be launched from terminal, and I want it to report the script's path. Because this script is required to be launched from command line, so those Apache env vars have not effect work, even $PHP_SELF don't work. Can anybody has a solution for this? Thanks in advance for any answers! Regards, Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] why AddType not working for me as expected?
Hi, Given that it doesn't seem I can use PHP as a wrapper, I tried the following: AddType application/x-httpd-php .htm .html And oddly that did not work (seems to become an unknown type, gives me the option to download). This worked AddType application/x-httpd-php .ghtm .ghtml And of course phtml is set as an option in my httpd.conf file. I want to control just one directory. I'm sure this is not a PHP question as much an Apache question. Anyone have some clues? Thanks Peter --- Reality is that which, when you stop believing in it, doesn't go away. -- Philip K. Dick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting $PHP_SELF's basename
On Tue, 2002-02-12 at 13:32, Erik Price wrote: On Tuesday, February 12, 2002, at 04:26 PM, Lars Torben Wilson wrote: echo basename($_SERVER['PHP_SELF']); http://www.php.net/basename Thank you Torben. Reading through the annotations on this manual entry, it looks like I'd be safer using the home-built function after all! Well, not really. But it seems that the optional 2nd parameter corrupts the 1st parameter even if it is a predefined variable (which is what I'm doing) -- which could have repercussions for $_SERVER['PHP_SELF'] down the road, right? Erik This was fixed on Jan 03 2002--the fix will be in 4.2.0. Until then you're fine unless you need that second param. :) http://bugs.php.net/bug.php?id=14832 Torben -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php