[PHP] HTTP_POST_VARS truncated
Hello, To test the http/php setup on one of my computers I wrote a very simple html form, with two select fields, two text fields, and the submit field. Pushing submit the data are sent via POST method to an extremely simple PHP page which only contains something like: foreach (var, key) in HTTP_POST_VARS { print VAR: $var KEY = $key } It works, (meaning that php code is correct, html output is displayed, and no error are reported) but only prints three lines, i.e. the two select fields are missing. Both the php and the html code are syntactically correct: I double checked that on the books, just to be sure. It looks like the select fields, and them only, are not passed to the form by the server, or that in some other way they never make it into HTTP_POST_VARS. Any ideas? Setup is plain Red Hat 7.2 with its default apache/php packages. TIA, mweb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help with directory !
Hi there.Im cant just get to access a file in a directory form my localhost dir. The file : $loc = ./doos.txt i can access, but the following i can't : $loc = .\files\doos.txt What am i doibg wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTTP_POST_VARS truncated
I cannot compile this: try that : foreach ($HTTP_POST_VARS as $key = $var){ print VAR: $var KEY = $key; } Regards, Andrey Hristov - Original Message - From: mweb [EMAIL PROTECTED] To: phplist [EMAIL PROTECTED] Sent: Friday, November 30, 2001 10:03 AM Subject: [PHP] HTTP_POST_VARS truncated Hello, To test the http/php setup on one of my computers I wrote a very simple html form, with two select fields, two text fields, and the submit field. Pushing submit the data are sent via POST method to an extremely simple PHP page which only contains something like: foreach (var, key) in HTTP_POST_VARS { print VAR: $var KEY = $key } It works, (meaning that php code is correct, html output is displayed, and no error are reported) but only prints three lines, i.e. the two select fields are missing. Both the php and the html code are syntactically correct: I double checked that on the books, just to be sure. It looks like the select fields, and them only, are not passed to the form by the server, or that in some other way they never make it into HTTP_POST_VARS. Any ideas? Setup is plain Red Hat 7.2 with its default apache/php packages. TIA, mweb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] mail-help
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Help with directory !
The first one looks like a *nix directory and the second one looks like a windows direcrory. Perhaps it will work if you switch your slashes around. Fred De Necker Henri [EMAIL PROTECTED] wrote in message 3A8ED7A62794D311AA7700508B6164EC08DCA3F2@SCPTS01">news:3A8ED7A62794D311AA7700508B6164EC08DCA3F2@SCPTS01... Hi there.Im cant just get to access a file in a directory form my localhost dir. The file : $loc = ./doos.txt i can access, but the following i can't : $loc = .\files\doos.txt What am i doibg wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help - mail
Hi all, using mail() function to send a mail using php. I want to send that mail so that the receiver should not see the FROM address or the mail should go without any FROM address. Please write with an example !! Thanking You, Regards, Kumar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: Help with directory !
The first one works both ways!O and im working on windows This works fine : $loc = ./doos.txt This works fine : $loc = .\doos.txt The second one does work at all! Is it in the correct order/way? -Original Message- From: Fred [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 10:25 To: [EMAIL PROTECTED] Subject: [PHP] Re: Help with directory ! The first one looks like a *nix directory and the second one looks like a windows direcrory. Perhaps it will work if you switch your slashes around. Fred De Necker Henri [EMAIL PROTECTED] wrote in message 3A8ED7A62794D311AA7700508B6164EC08DCA3F2@SCPTS01">news:3A8ED7A62794D311AA7700508B6164EC08DCA3F2@SCPTS01... Hi there.Im cant just get to access a file in a directory form my localhost dir. The file : $loc = ./doos.txt i can access, but the following i can't : $loc = .\files\doos.txt What am i doibg wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTTP_POST_VARS truncated
try: reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key is $k - val is $v \n; } To test the http/php setup on one of my computers I wrote a very simple html form, with two select fields, two text fields, and the submit field. Pushing submit the data are sent via POST method to an extremely simple PHP page which only contains something like: foreach (var, key) in HTTP_POST_VARS { print VAR: $var KEY = $key } It works, (meaning that php code is correct, html output is displayed, and no error are reported) but only prints three lines, i.e. the two select fields are missing. Both the php and the html code are syntactically correct: I double checked that on the books, just to be sure. It looks like the select fields, and them only, are not passed to the form by the server, or that in some other way they never make it into HTTP_POST_VARS. Any ideas? Setup is plain Red Hat 7.2 with its default apache/php packages. TIA, mweb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help - mail
http://download.php.net/manual/en/ref.mail.php - Original Message - From: Chamarty Prasanna Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 1:28 AM Subject: [PHP] Help - mail Hi all, using mail() function to send a mail using php. I want to send that mail so that the receiver should not see the FROM address or the mail should go without any FROM address. Please write with an example !! Thanking You, Regards, Kumar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Session Help
I am trying to set my session data to be stored in MySQL so I am using session_set_save_handler() which sets the six user-level session storage functions (which I have already defined). Will session_set_save_handler automatically run the appropiate storage function when required (like when i say session_register(Variable)) --OR-- do I specifically have to run that function (mysql_sessions_write(SID,$Value)) from my script when I want to save info to the session table? I would appreciate any scripts anyone might have that would illustrate how this works, the PHP manual and online examples I have found just are not cutting it. Thank you. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] HTTP_POST_VARS truncated
Thanks Jason Jani!Both ur ways work! $loc = ..\files\poese.txt $loc = ..\\files\\poese.txt But another question that comes to mind is that why must i include the '..\' to move down to a sub-directory? I thought '..\' moves up a directory tree! This also works both ways : $loc = ../files/poese.txt $loc = ..//files//poese.txt -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 10:54 To: mweb; phplist Subject: Re: [PHP] HTTP_POST_VARS truncated try: reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key is $k - val is $v \n; } To test the http/php setup on one of my computers I wrote a very simple html form, with two select fields, two text fields, and the submit field. Pushing submit the data are sent via POST method to an extremely simple PHP page which only contains something like: foreach (var, key) in HTTP_POST_VARS { print VAR: $var KEY = $key } It works, (meaning that php code is correct, html output is displayed, and no error are reported) but only prints three lines, i.e. the two select fields are missing. Both the php and the html code are syntactically correct: I double checked that on the books, just to be sure. It looks like the select fields, and them only, are not passed to the form by the server, or that in some other way they never make it into HTTP_POST_VARS. Any ideas? Setup is plain Red Hat 7.2 with its default apache/php packages. TIA, mweb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] LDAP sorting
The LDAP sorting code I posted a couple of days ago was a bit lacking. Here's a function that should work: function myldap_sort($data, $attr) { // -1 because of the count entry echo #, $n = count($data) - 1; for ($i=0; $i$n; $i++) { $a[$i]=$data[$i][$attr][0]; } asort($a); reset($a); for ($j=0; list($i,) = each($a); $j++) { $sorted[$j] = $data[$i]; } return $sorted; } It's not fast, but should work. Example usage: $info = ldap_get_entries($ds, $sr); $sorted = myldap_sort($info, cn); It assumes that the attribute specified is present in all the entries, and only uses the first value of the attribute. Stig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Help with directory !
Thanks Jason Jani!Both ur ways work! $loc = ..\files\poese.txt $loc = ..\\files\\poese.txt But another question that comes to mind is that why must i include the '..\' to move down to a sub-directory? I thought '..\' moves up a directory tree! This also works both ways : $loc = ../files/poese.txt $loc = ..//files//poese.txt -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 10:54 To: mweb; phplist Subject: Re: [PHP] HTTP_POST_VARS truncated try: reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key is $k - val is $v \n; } To test the http/php setup on one of my computers I wrote a very simple html form, with two select fields, two text fields, and the submit field. Pushing submit the data are sent via POST method to an extremely simple PHP page which only contains something like: foreach (var, key) in HTTP_POST_VARS { print VAR: $var KEY = $key } It works, (meaning that php code is correct, html output is displayed, and no error are reported) but only prints three lines, i.e. the two select fields are missing. Both the php and the html code are syntactically correct: I double checked that on the books, just to be sure. It looks like the select fields, and them only, are not passed to the form by the server, or that in some other way they never make it into HTTP_POST_VARS. Any ideas? Setup is plain Red Hat 7.2 with its default apache/php packages. TIA, mweb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] database question
yeah good call on a type it should of been \s not \S -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Jim Musil [EMAIL PROTECTED] To: py [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 10:56 PM Subject: Re: [PHP] database question \S refers to a non whitespace character. In the following: select whatever from articles where textlines regexp ^\Sbingo\S$ what does \S means? py - Original Message - From: Jon Farmer [EMAIL PROTECTED] To: Warren Vail [EMAIL PROTECTED]; Michael Hall [EMAIL PROTECTED]; PHP List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 9:54 AM Subject: Re: [PHP] database question Actually the sql statement you want is select whatever from articles where textlines regexp ^\Sbingo\S$ regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Warren Vail [EMAIL PROTECTED] To: Michael Hall [EMAIL PROTECTED]; PHP List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 2:57 PM Subject: RE: [PHP] database question Try; SELECT whatever FROM articles WHERE textlines LIKE %searchword% Two warnings; 1) This will force a table scan (the contents of each row in the entire table because there can be no index to support faster searching of contents that float in the column) which will be very slow on a large database (even a medium size one). 2) This will also find words that exist inside other words. (ie the word ward exists inside toward) If you try to solve this by imbedding blanks between the wildcard (%) and the text, you will probably not be able to find the word at the end of a line, or just prior to a comma or period. I also believe there may be a way to make the search case insensitive, look for something like a WHERE tolower(textlines) LIKE ... to force the column values to be all lower case and make sure your search values are all lower case as well. Good luck, Warren Vail -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 2:21 PM To: PHP List Subject: [PHP] database question How can I search a MySQL database field that contains sentences (VARCHAR datatype) or entire texts (TEXT datatype) for single words? Let's say I want to search 100 articles stored in a database field as TEXT for the word bingo, is there any SQL or PHP way of doing that? Mick -- Michael Hall [EMAIL PROTECTED] [EMAIL PROTECTED] http://openlearningcommunity.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sending Form Result to File
just pico a file called myforms.csv or something. use the first line for you schema... name,date,comments,etc chmod the file to rw permissions or chown to nobody. $file = fopen(/home/myaccnt/public_html/protected/myforms.csv, w); fputs($file, \n\$form_name\,\$form_date\,\$form_comments\,\$form_etc\); fclose($file); - Original Message - From: Ben Clumeck [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 5:34 PM Subject: [PHP] Sending Form Result to File I am looking for a script to send my form results to a .txt file in CSV (to import into Excel) format. Does anyone have a simple code? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] payflow pro advice
Hi, I'm trying to get payflow pro working on my server (unfortunately a client took it upon themselves to get their gateway). I am on a freebsd box and I am having all sorts of problems getting this working. Either as an extension (pfpro.so) or just exec() externally. I've read that Verisign stopped distributing a FreeBSD of their SDK... which seems true since it is not offered on their site. So... first I downloaded the BSDi SDK. I thought I might be able to hack it up a bit... no such luck, as a module or just scripting to it. So, if all else fails go for the linux dist. I downloaded, gunziped, and proceeded to make a php extension. ./configure --with-pfpro=shared,/usr/local/verisign/payflowpro/linux Compiles fine... creates pfpro.so. I copy pfpro.so and libpfpro.so (which came with the SDK) to /usr/local/lib (this is the lib directory my ini file points to, which is where my other extensions are). i copy pfpro.h to usr/local/include. i add the following to my php script dl('pfpro.so'); It won't load... I get a error stating it cannot find libc.so.6. So I copy over the lib from the linux compat files to /usr/lib (not usr/local/lib). Refresh... apparently it found that, as it is now cannot locate ld-linux.so.2 (i think). Again, I copy this from the compat to /usr/lib. I am expecting an error, but it tells me it still cannot locate it. I do a bunch of steps probably unneccessary just to try everything. I copied this to my /usr/local/lib, i run ldconfig, i do a bunch of stuff to no avail. Can anyone give me some insight on setting payflow pro up on freebsd as a php module? Now, I know it can work. I dropped to my shell, ran /linux/bin/test.sh. Works... i run ./pfpro as is and it can't find libraries (the test.sh script defines their location). So, I decide I'll try to hack up something exec(pfpro)'ing from the script, despite i am no good at this. i found a snipet of code in the anotated php manual. I could not get it to work. I even exec() the same code that defines the libs in the shell script (test.sh) before exec() the pfpro call. the code is: function pfpro_shell($arFields) { $signio_cmd = /usr/local/verisign/payflowpro/linux/bin/pfpro test-payflow.verisign.com 443\; foreach($arFields as $key=$val) $signio_cmd .= $key . =. urlencode($val) . ; $signio_cmd .= \; $signio_result = exec($signio_cmd); parse_str($signio_result,$arResult); if (!isset($arResult[RESULT])) die (Exec command failed to return proper result); return($arResult); } I pass the following array just to test it $transaction = array(USER = 'mylogin', PWD = 'mypassword', TRXTYPE = 'S', TENDER = 'C', AMT = 1.50, ACCT = '4111', EXPDATE = '0904'); pfpro_shell($transaction); It just dies with the error message everytime (Exec command failed to return proper result). It does not pass anything back ($arResult is empty). If I could get the entension working, that would be ideal, but a work around through some shell scripting would suffice. I am not willing to recompile apache again right now, so a static --with-pfpro is not an option. Thanks in advance.
Re: [PHP] HTTP_POST_VARS truncated
reset($HTTP_POST_VARS); at the begining of the code. if that doesn't work verify your html again. make sure the select's are between the form tag. php doesn't ignore certain form fields. =) i'm the habit of reading arrays like... while(list($k,$v) = each($HTTP_POST_VARS)) { echo key is $k - val is $v \n; Thanks Jason I'll try it tonight, I'm not at my desk now. However, I would like to highlight that: 1) the select tags *are* inside the forms ones. I know php accepts all form fields, that's why I'm so puzzled... 2) I know that the code I posted here is wrong. In fact I said something like...; The code I put in the real PHP page however is correct, identical to what you write above, copied straight from a manual: the proof is that otherwise it would not have printed the other form fields as reported, right? Again, I'll try the reset instructino tonight and report. In the meantime any other hypothesis is welcome Thanks, mweb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URGENT-HELP !!!!!!
Want to send mail through PHP script such that the receiver of that mail should not contain FROM header. I used mail() function with empty FROM header and even without FROM header, but the receiver is still getting FROM address as [EMAIL PROTECTED] You can't. The mail specification have to get a FROM header, but to make a solution you can make a FROM header like this: FROM: Do Not Reply [EMAIL PROTECTED] regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Student need help
Hello everyone! sorry, but thing i'm asking for is interesting for Ru.Net users only so i'm gonna write it in Russian: çÏÓÐÏÄÁ ÄÅ×ÅÌÏÐÅÒÙ! ðÏÍÏÇÉÔÅ ÓÔÕÄÅÎÔÕ - ÐÒÉÍÉÔÅ ÕÞÁÓÔÉÅ × ÓÏÃÉÏÌÏÇÉÞÅÓËÏÍ ÏÐÒÏÓÅ, ËÏÔÏÒÙÊ Ñ ÐÒÏ×ÏÖÕ × ÒÁÍËÁÈ ÉÚÕÞÁÅÍÏÇÏ ËÕÒÓÁ ÓÏÃÉÏÌÏÇÉÉ. ïÐÒÏÓ ÐÒÏ×ÏÄÉÔÓÑ ÎÁ ÔÅÍÕ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÌÉÃÅÎÚÉÏÎÎÏÇÏ ðï. íÏÖÎÏ ÓËÁÚÁÔØ, ÞÔÏ Ë ÄÁÎÎÏÍÕ ÌÉÓÔÕ ÏÎ ÉÍÅÅÔ ÏÔÎÏÛÅÎÉÅ - ÉÎÓÔÒÕÍÅÎÔÁÒÉÊ ÒÁÚÒÁÂÏÔÁÎ ÎÁ PHP+MySQL. ïÐÒÏÓ ÐÒÏ×ÏÄÉÔÓÑ ÐÏ ÁÄÒÅÓÕ http://www.zsu.zp.ua/val/socio óÐÁÓÉÂÏ ×ÓÅÍ. ó Õ×ÁÖÅÎÉÅÍ, úÌÉÊ ðÅÓ: http://www.zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: Re: [PHP] URGENT-HELP !!!!!!
Thanks very much !! Smart solution !! yes, I don't want to get reply from that mail. Just looking for any solution..if u finds one please let me know. Regards, Kumar. On Fri, 30 Nov 2001 Johan Holst Nielsen wrote : Want to send mail through PHP script such that the receiver of that mail should not contain FROM header. I used mail() function with empty FROM header and even without FROM header, but the receiver is still getting FROM address as [EMAIL PROTECTED] You can't. The mail specification have to get a FROM header, but to make a solution you can make a FROM header like this: FROM: Do Not Reply [EMAIL PROTECTED] regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] p.net For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Student need help
Why does Russia have so much beautiful women? -Original Message- From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] Sent: 30 November 2001 12:45 To: [EMAIL PROTECTED] Subject: [PHP] Student need help Hello everyone! sorry, but thing i'm asking for is interesting for Ru.Net users only so i'm gonna write it in Russian: çÏÓÐÏÄÁ ÄÅ×ÅÌÏÐÅÒÙ! ðÏÍÏÇÉÔÅ ÓÔÕÄÅÎÔÕ - ÐÒÉÍÉÔÅ ÕÞÁÓÔÉÅ × ÓÏÃÉÏÌÏÇÉÞÅÓËÏÍ ÏÐÒÏÓÅ, ËÏÔÏÒÙÊ Ñ ÐÒÏ×ÏÖÕ × ÒÁÍËÁÈ ÉÚÕÞÁÅÍÏÇÏ ËÕÒÓÁ ÓÏÃÉÏÌÏÇÉÉ. ïÐÒÏÓ ÐÒÏ×ÏÄÉÔÓÑ ÎÁ ÔÅÍÕ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÌÉÃÅÎÚÉÏÎÎÏÇÏ ðï. íÏÖÎÏ ÓËÁÚÁÔØ, ÞÔÏ Ë ÄÁÎÎÏÍÕ ÌÉÓÔÕ ÏÎ ÉÍÅÅÔ ÏÔÎÏÛÅÎÉÅ - ÉÎÓÔÒÕÍÅÎÔÁÒÉÊ ÒÁÚÒÁÂÏÔÁÎ ÎÁ PHP+MySQL. ïÐÒÏÓ ÐÒÏ×ÏÄÉÔÓÑ ÐÏ ÁÄÒÅÓÕ http://www.zsu.zp.ua/val/socio óÐÁÓÉÂÏ ×ÓÅÍ. ó Õ×ÁÖÅÎÉÅÍ, úÌÉÊ ðÅÓ: http://www.zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] HELP URGENT VARS !!!
$name1=a; $name2=b; I want to do this for($i=0;$i$nbname;$i++) echo \$name$i; output : a b where \$name$i= $name1 , $name2 , $name3 .. I try to print tha value of the vars $name1,. not the string $name1, Is it possible REM : The vars $name1, com from a form where the number of name input are variable. Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: Re: [PHP] URGENT-HELP !!!!!!
Problem with that solution is some SMTP hosts will reject messages from domains that do not resolve to the sending SMTP host. I would recommend setting up a alias on sendmail and pipe all email to that address to /dev/null You would need to stress to your recipients that all replies to that email are ignored. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Chamarty Prasanna Kumar [EMAIL PROTECTED] To: Johan Holst Nielsen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 10:54 AM Subject: Re: Re: [PHP] URGENT-HELP !! Thanks very much !! Smart solution !! yes, I don't want to get reply from that mail. Just looking for any solution..if u finds one please let me know. Regards, Kumar. On Fri, 30 Nov 2001 Johan Holst Nielsen wrote : Want to send mail through PHP script such that the receiver of that mail should not contain FROM header. I used mail() function with empty FROM header and even without FROM header, but the receiver is still getting FROM address as [EMAIL PROTECTED] You can't. The mail specification have to get a FROM header, but to make a solution you can make a FROM header like this: FROM: Do Not Reply [EMAIL PROTECTED] regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] p.net For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Hoekom is jy so still??
Jy word net ryker om op jou ass te sit.n Rand kos nou R14,85. Wat se jy daar van? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] fresh install woes
I've insatlled mandrake 8.1 from the ISO's I downloaded frrom their site. Everything seems fine, but when I try to execute any software ie startx or even pico from the command line then I get a cannot be found message As I navigate through the directoires it seems that they have not been installed- despite electing to install pretty much every package in my install options. I have reinstalled several times to the same effect. I have a 3 gig partision on my hard drive for mandrake0 and have treid various format attempts on installation as well Any ideas anyone thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HELP URGENT VARS !!!
?php $name1 = 'value1'; $name2 = 'value2'; $name3 = 'value3'; for ($i=1;$i=3;$i++) { eval (\$val = \$name$i;); echo $val.'br'; } ? Zliy Pes, http://www.zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Excel and PHP in Unix
Hello, I am using the Unix version of PHP, and i would write some information from the HTML in a Excel file. I was made this using COM functions in a Windows version of PHP and it works. But COM functions are only available on the Windows version of PHP. I want to know how I can write a Excel file but using a Unix version of PHP. Thanks! Iván Toda Caraballo TB-Solutions. Java Factory Area [EMAIL PROTECTED] Tel: +34 976 701 600 Ext 2142 Fax: +34 976 701 601 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URGENT-HELP !!!!!!
hmm, youre right. You can use this header maybe FROM: Do Not Reply nonexists@localhost The SMTP should be able to resolve localhost? Regards, Johan Jon Farmer wrote: Problem with that solution is some SMTP hosts will reject messages from domains that do not resolve to the sending SMTP host. I would recommend setting up a alias on sendmail and pipe all email to that address to /dev/null You would need to stress to your recipients that all replies to that email are ignored. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Chamarty Prasanna Kumar [EMAIL PROTECTED] To: Johan Holst Nielsen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 10:54 AM Subject: Re: Re: [PHP] URGENT-HELP !! Thanks very much !! Smart solution !! yes, I don't want to get reply from that mail. Just looking for any solution..if u finds one please let me know. Regards, Kumar. On Fri, 30 Nov 2001 Johan Holst Nielsen wrote : Want to send mail through PHP script such that the receiver of that mail should not contain FROM header. I used mail() function with empty FROM header and even without FROM header, but the receiver is still getting FROM address as [EMAIL PROTECTED] You can't. The mail specification have to get a FROM header, but to make a solution you can make a FROM header like this: FROM: Do Not Reply [EMAIL PROTECTED] regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] p.net For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Verisign Payflow Pro? Freebsd... Any ideas?
On Friday 30 November 2001 00:56, you wrote: Hi, I'm trying to get payflow pro working on my server (unfortunately a client took it upon themselves to get their gateway). I am on a freebsd box and I am having all sorts of problems getting this working. Either as an extension (pfpro.so) or just exec() externally. I've read that Verisign stopped distributing a FreeBSD of their SDK... which seems true since it is not offered on their site. So... first I downloaded the BSDi SDK. I thought I might be able to hack it up a bit... no such luck, as a module or just scripting to it. They were having problems with the threading system. Most of FreeBSD is not threaded (most people do not build threaded apps by default) and their libraries require it...:( So, if all else fails go for the linux dist. I downloaded, gunziped, and proceeded to make a php extension. ./configure --with-pfpro=shared,/usr/local/verisign/payflowpro/linux You can not use Linux libs in a FreeBSD binary. You would have to compile a Linux binary of PHP. Compiles fine... creates pfpro.so. I copy pfpro.so and libpfpro.so (which came with the SDK) to /usr/local/lib (this is the lib directory my ini file points to, which is where my other extensions are). i copy pfpro.h to usr/local/include. i add the following to my php script dl('pfpro.so'); It won't load... I get a error stating it cannot find libc.so.6. So I copy over the lib from the linux compat files to /usr/lib (not usr/local/lib). Refresh... apparently it found that, as it is now cannot locate ld-linux.so.2 (i think). Again, I copy this from the compat to /usr/lib. I am expecting an error, but it tells me it still cannot locate it. I do a bunch of steps probably unneccessary just to try everything. I copied this to my /usr/local/lib, i run ldconfig, i do a bunch of stuff to no avail. It would not work anyway. Again, you can not use Linux libs in a FreeBSD binary. Linux libs belong under /compat/linux/usr/lib or thereabouts. Can anyone give me some insight on setting payflow pro up on freebsd as a php module? I could never get the PHP module to work on FreeBSD (4.3 and 4.4). (I've got the native libs. The problem is that they have to be linked into a threaded program.) I just use the following code: # Location of the pfpro binary. $pfpro = /www2/bin/pfpro; # Location of the certs putenv(PFPRO_CERT_PATH=/www2/Verisign.certs); # The args to call the binary with $args = USER=$vsInfo[1]VENDOR=$vsInfo[1]PARTNER=verisign . PWD=$vsInfo[2] . TRXTYPE=STENDER=C . ACCT=$UserInfo[ccnum]EXPDATE=$ccexpire . AMT=$UserInfo[amount]COMMENT1=$comment1; # Put together the command string $command = $pfpro $vsInfo[3] 443 \$args\ 10; $result = `$command`; Please note the putenv! You have to have this! Also look at the back ticks for $result. This should also work with the Linux binary... Now, I know it can work. I dropped to my shell, ran /linux/bin/test.sh. Works... i run ./pfpro as is and it can't find libraries (the test.sh script defines their location). So, I decide I'll try to hack up something exec(pfpro)'ing from the script, despite i am no good at this. i found a snipet of code in the anotated php manual. I could not get it to work. I even exec() the same code that defines the libs in the shell script (test.sh) before exec() the pfpro call. Install your libs under /compat/linux/usr/lib or somewhere and then update the ld hints/config file for linux. The linux program should work fine then. --SNIP-- Hope this helps. GB -- GB Clark II | Roaming FreeBSD Admin [EMAIL PROTECTED] | General Geek CTHULU for President - Why choose the lesser of two evils? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Validating mailing addresses
Joshua Hoover wrote ... I've been looking at a variety of software packages which allow you to validate U.S. mailing addresses against the USPS's database. Unfortunately, all of the products I've been able to find so far are Windows based and only support interfacing via COM. Have you checked out http://www.uspswebtools.com ? It's run by the Postal Service, and their tools are a set of Application Program Interfaces (API's) which communicate across the web (HTTP) in eXtensible Markup Language (XML) . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to display one line from a file rather than the whole lot
Hi guys, I'm looking to edit this to just return one particular line rather than the whole file: ?php // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b . htmlspecialchars ($line) . br\n; } ? Can anybody help me? Kev _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] MySQL: copying entire columns
hi, i've created a mysql table from an excel csv dump and the field-order is not the way i want it. could someone possibly give me a hint on how i can create a copy of an entire column, place it in the position where i want in my table, and then delete the original column? i'm using phpMyAdmin and there doesn't appear to be any way to restructure my table--so i've gotta resort to sql. mucho gracias, tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] HELP URGENT VARS !!!
You can also use this syntax : $var1=variable 1; $var2=variable 2; for ($i= 1; $i 3; $i++) { echo ${var$i}; } -Message d'origine- De : Olivier Masudi [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 30 novembre 2001 12:02 À : [EMAIL PROTECTED] Objet : [PHP] HELP URGENT VARS !!! $name1=a; $name2=b; I want to do this for($i=0;$i$nbname;$i++) echo \$name$i; output : a b where \$name$i= $name1 , $name2 , $name3 .. I try to print tha value of the vars $name1,. not the string $name1, Is it possible REM : The vars $name1, com from a form where the number of name input are variable. Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Excel and PHP in Unix
hi, i just wanted to put in a plug for my own code to generate dynamic Excel or Word files here. it's ultra easy to use: http://sourceforge.net/projects/php-doc-xls-gen/ thanks, tom Pavel Jartsev wrote: Iván Toda Caraballo wrote: Hello, I am using the Unix version of PHP, and i would write some information from the HTML in a Excel file. I was made this using COM functions in a Windows version of PHP and it works. But COM functions are only available on the Windows version of PHP. I want to know how I can write a Excel file but using a Unix version of PHP. Thanks! Maybe this helps a little: http://sourceforge.net/projects/psxlsgen/ -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL: copying entire columns
Tom It's a relational database, field column position does not matter. One Date's 121 rules, if I remember correctly. In terms of human readability, it sometimes matters. Check the MySQL manual, I think there's an example of this under the ALTER TABLE command. But really, position doesn't matter, exept to fulfill a human sense of tidiness. Cheers - Miles Thompson At 01:53 PM 11/30/2001 +0100, Tom Churm wrote: hi, i've created a mysql table from an excel csv dump and the field-order is not the way i want it. could someone possibly give me a hint on how i can create a copy of an entire column, place it in the position where i want in my table, and then delete the original column? i'm using phpMyAdmin and there doesn't appear to be any way to restructure my table--so i've gotta resort to sql. mucho gracias, tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: db connect
Fred, I am more confused now that I know the script works your end. I have the sample_db setup correctly, as I can connect to it if I change the $default_dbname value to hold the sample_db. Whatever I put in the $default_dbname variable I can connect to no trouble. Passing the database as an argument is a different story though, it just won't work! I try all different variations of quotation marks on the db_connect() function, like this. function db_connect($dbname= ) function db_connect($dbname=' ') and at other end: $link_id = db_connect(sample_db) $link_id = db_connect('sample_db') I wonder if it is the first part of include file: ?php //common_db.inc $dbhost = 'localhost'; $dbusername = 'root'; $dbuserpassword = ''; $default_dbname = 'mysql'; Did the version you used look like this? The one I originally posted was slightly different, but the one above is how mine looks. Thanks for your time. Ian. Fred [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm not sure what that script is supposed to accomplish, it seems a bit obfuscated and useless to me, nevertheless it correctly used the supplied database rather than the default one when I tested it. You may want to make sure that your sample_db actually exists. Fred Ian [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Fred, sample_db 'is' my database name, so this should work? Well it keeps choosing my $default_db value. Can you try my code and tell me if it works for you please? Thankyou. Fred [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How are you passing the name of the database? Are you replacing 'sample_db' in the line: $link_id = db_connect('sample_db'); in show_more_db.php? If so, then I do not see where there would be a problem. Fred Ian [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Wonder if anyone can help me out. I am trying to run an example out of a book Beginning Php by wrox. One of the examples is supposed to allow me to connect to a database by using a function that takes a database as an argument. It has an include file that contains the function. Problem I get is that the argument never seems to get passed and the function always uses the default value. I would greatly appreciate if someone could tell me why this happens. I would also appreciate if no one rewrites a completely different script, as I am after debugging this one. ;-) Here is the include file: ?php file://common_db.inc $dbhost = 'localhost'; $dbusername = 'phpuser'; $dbuserpassword = 'phppass'; $default_dbname = 'mysql'; $MYSQL_ERRNO = ''; $MYSQL_ERROR = ''; function db_connect($dbname=' ') { global $dbhost, $dbusername, $dbuserpassword, $default_dbname; global $MYSQL_ERRNO, $MYSQL_ERROR; $link_id = mysql_connect($dbhost, $dbusername, $dbuserpassword); if(!$link_id) { $MYSQL_ERRNO = 0; $MYSQL_ERROR = Connection failed to the host $dbhost.; return 0; } else if(empty($dbname) !mysql_select_db($default_dbname)) { $MYSQL_ERRNO = mysql_errno(); $MYSQL_ERROR = mysql_error(); return 0; } else if(!empty($dbname) !mysql_select_db($dbname)) { $MYSQL_ERRNO = mysql_errno(); $MYSQL_ERROR = mysql_error(); return 0; } else return $link_id; } function sql_error() { global $MYSQL_ERRNO, $MYSQL_ERROR; if(empty($MYSQL_ERROR)) { $MYSQL_ERRNO = mysql_errno(); $MYSQL_ERROR = mysql_error(); } return $MYSQL_ERRNO: $MYSQL_ERROR; } ? And here is the php script that uses this include file: ?php file://show_more_db.php include ./common_db.inc; $link_id = db_connect('sample_db'); $result = mysql_query(SELECT * FROM user, $link_id); while($query_data = mysql_fetch_row($result)) { ? ?php echo ',$query_data[1],' is also php ' known as ,$query_data[3],P; } ? I hope someone can help me out please. Thankyou. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL: copying entire columns
hi, miles: i think you helped me hit on something big here. each time i've been using INSERT statements in my php code, i've been addressing the field names in exactly the order they appear in my mysql table. ie: i've been using $sql = Insert into $table_name(Name, Address, Phone) values('$Name','$Address','$Phone'); where the columns appear in this order. but i think i finally realized that this (all in the wrong order) would work as well--if that's what you mean: $sql = Insert into $table_name(Address, Phone, Name) values('$Address','$Phone','$Name'); if this is true, it'll save me a lot of useless time trying to reorder my tables. thanks much, tom Miles Thompson wrote: Tom It's a relational database, field column position does not matter. One Date's 121 rules, if I remember correctly. In terms of human readability, it sometimes matters. Check the MySQL manual, I think there's an example of this under the ALTER TABLE command. But really, position doesn't matter, exept to fulfill a human sense of tidiness. Cheers - Miles Thompson At 01:53 PM 11/30/2001 +0100, Tom Churm wrote: hi, i've created a mysql table from an excel csv dump and the field-order is not the way i want it. could someone possibly give me a hint on how i can create a copy of an entire column, place it in the position where i want in my table, and then delete the original column? i'm using phpMyAdmin and there doesn't appear to be any way to restructure my table--so i've gotta resort to sql. mucho gracias, tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URGENT-HELP !!!!!!
I am talking about the final SMTP host.. it will do a reverse lookup on the From: domain and if it dont resolve to the IP of the sending STMP host it will reject it. yes I know. But it the final SMTP tries to resolve the host (localhost) it will get a response from it self? I haven't tried it, but I think it would work. By the way... the most of the SMTP doesn't check at the FROM header, but from the sender SMTP. So if you got a nonexisting e-mail it would accept it too, but it the sender host isn't valid it will reject it. Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL: copying entire columns
?php $which_column = 0; // starting from 0 $fname = some.csv; $out_fname = some_new.csv; $cschar = ,; $f_cont = file($fname); foreach ($f_cont as $key =$value){ $tmp = explode($cschar,trim($value)); $tmp[count($tmp)] = $tmp[$which_column]; unset($tmp[$which_column]); $out_cont[] = implode(,,$tmp); } $fd = fopen($out_fname,'w+'); fwrite($fd,implode(\r\n,$out_cont)); fclose($fd); ? HTH Regards, Andrey Hristov - Original Message - From: Tom Churm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:53 PM Subject: [PHP] MySQL: copying entire columns hi, i've created a mysql table from an excel csv dump and the field-order is not the way i want it. could someone possibly give me a hint on how i can create a copy of an entire column, place it in the position where i want in my table, and then delete the original column? i'm using phpMyAdmin and there doesn't appear to be any way to restructure my table--so i've gotta resort to sql. mucho gracias, tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to display one line from a file rather than the whole lot
The key will be to put some kind of 'if' around your echo statement, but since you didn't say what the criteria for display is it's pretty tough to help any further. If the criteria is content driven, preg_match or ereg are you're answer, if it's the X'th line in the file then you could probably just index the $fcontents array directly and echo $fcontents[$linenumberIwant]; Hank On Fri, Nov 30, 2001 at 12:51:19PM +, Kevin Garrett wrote: Hi guys, I'm looking to edit this to just return one particular line rather than the whole file: ?php // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b . htmlspecialchars ($line) . br\n; } ? Can anybody help me? Kev _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Hank Marquardt [EMAIL PROTECTED] http://web.yerpso.net GPG Id: 2BB5E60C Fingerprint: D807 61BC FD18 370A AC1D 3EDF 2BF9 8A2D 2BB5 E60C *** Web Development: PHP, MySQL/PgSQL - Network Admin: Debian/FreeBSD *** PHP Instructor - Intnl. Webmasters Assn./HTML Writers Guild *** Beginning PHP -- Starts January 7, 2002 *** See http://www.hwg.org/services/classes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: How to display one line from a file rather than the whole lot
Dirty trick: ?php $line_I_want = '47'; // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { // echo bLine $line_num:/b . htmlspecialchars ($line) . br\n; if ($line_I_want == $line_num) { $dirty_trick = htmlspecialchars($line); } } echo $dirty_trick; ? No knowledge of what number is the line: ?php // get a web page into an array and print it out $filename = 'http://www.php.net; $fd = fopen ($filename, 'r'); $read = fread($fd, 3); fclose($fd); $search = eregi('what_comes_before_the_line_you_want(.*)what_comes_after', $read, $printing); echo $printing[1]; ? -- Julio Nobrega No matter where you go, this. Kevin Garrett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi guys, I'm looking to edit this to just return one particular line rather than the whole file: ?php // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b . htmlspecialchars ($line) . br\n; } ? Can anybody help me? Kev _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php4 on pws?
Hello, does anybody know how to get php4 work on a pws? I only know how to make php3 (with binaries from www.php.net) work on a pws. Maciej Wypij -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] is_int with HTML FORM
Hey there, First of all please CC me as I'm no longer a member on this list. Sorry about that but I receive too much :-(. Please bear with me as I'm a new PHP scripter on the block Ok for the question. I was under the impression that PHP would automatically select the type for the vars to use. However if I have a field in my form where I insert only a 4 in I'd expect the var to be an integer (or atleast some other whole number type of var). However is_int fails on the 4 and sees it as a string. So how am I going to check whether it's nothing but digits [0-9]. The field can hold 4 characters but they don't neccesarily need to be filled. So the input could be 1 through . Now I could check with or but that won't work since they would still eval true if they'd enter 3a. Ok it would fail if they'd enter a3 but that still leaves a possibility to crash my script with 3a. Perhaps somebody could hand me a nice regexp or something... I'm not yet familiar with those. Kind regards and have a nice weekend. Ferry van Steen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] is_int with HTML FORM
Ok for the question. I was under the impression that PHP would automatically select the type for the vars to use. However if I have a field in my form where I insert only a 4 in I'd expect the var to be an integer (or atleast some other whole number type of var). However is_int fails on the 4 and sees it as a string. So how am I going to check whether it's nothing but digits [0-9]. The field can hold 4 characters but they don't neccesarily need to be filled. So the input could be 1 through . Now I could check with or but that won't work since they would still eval true if they'd enter 3a. Ok it would fail if they'd enter a3 but that still leaves a possibility to crash my script with 3a. Perhaps somebody could hand me a nice regexp or something... I'm not yet familiar with those. Try this // checks wether a variable is a n integer of a certain length // $var = variable to check // $len = length function check_int($var,$len) { if(eregi(^[0-9]{$len}$,$var)) { return 1; } else { return 0; } } or remove the {$len} to not check for a length Kind regards and have a nice weekend. Thanks I will M: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] is_int with HTML FORM
or remove the {$len} to not check for a length Sorry I meant replace the above with * m: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] help with images
First of all please excuse my ignorance if anything that I ask here is impossible or a common question, I have searched but not found the answer. I'm working with composite images which at the moment are dynamically produced and set in html layers. The problem is that I want the user to be able to save the image. This is not possible at the moment because the browser only sees one part of the composite image. Is there any way that php4 can 'flatten' an image to preferably jpeg and then show it on the screen. Thanks for any guidance, Gav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URGENT-HELP !!!!!!
If you mail via pfsockopen, then you specify the sender which must be real, but you also specify the From: header which can be anything you want. ex: $smtp_server = your.smtp.server; $port = 25; $mydomain = yourdomain.com; $sender = [EMAIL PROTECTED]; $recipient = [EMAIL PROTECTED]; $subject = Test; $text_content = Hi Bar, This is a test.; $handle = fsockopen($smtp_server,$port); fputs($handle, HELO $mydomain\n); fputs($handle, MAIL FROM: $sender \n); $echo .= fgets($handle,255).\n; fputs($handle, RCPT TO: $recipient \n); $echo .= fgets($handle,255).\n; fputs($handle, DATA\n); $echo .= fgets($handle,255).\n; fputs($handle, To: $recipient\n); /* NOTE THAT HERE YOU SET WHAT APPEARS IN THE FROM: PART */ fputs($handle, From: \n); fputs($handle, Subject: $email_subject\n); fputs($handle, Content-Type: text/plain; \n); fputs($handle, $text_content.\n\n); fputs($handle, .\n); $echo .= fgets($handle,255).\n; fputs($handle, QUIT\n); $echo .= fgets($handle,255).\n; echo $echo; Works here, but results may vary. I am talking about the final SMTP host.. it will do a reverse lookup on the From: domain and if it dont resolve to the IP of the sending STMP host it will reject it. yes I know. But it the final SMTP tries to resolve the host (localhost) it will get a response from it self? I haven't tried it, but I think it would work. By the way... the most of the SMTP doesn't check at the FROM header, but from the sender SMTP. So if you got a nonexisting e-mail it would accept it too, but it the sender host isn't valid it will reject it. Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: HTTP_POST_VARS truncated
In article GNLT20$[EMAIL PROTECTED], [EMAIL PROTECTED] (Mweb) wrote: foreach (var, key) in HTTP POST VARS { print VAR: $var KEY = $key } It works, (meaning that php code is correct, html output is displayed, and no error are reported) but only prints three lines, i.e. the two select fields are missing. One or more options in each select field are selected, right? Fields having no values (such as unchecked radio buttons, etc.) don't get passed. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] chown/chgrp not working
I have a client that I made a image uploader/thumbnailer for that insists on using FrontPage. In order to make FP happy, I need to set the owner to 'nobody' and the group to 'site3' which are uid 99 and gid 117. The uploaded file is set as httpd/root and the thumbnail created by the script comes out httpd/site3. First I tried: chown($file_name, 99); chgrp($file_name, 117); Next I tried: chown($file_name, '99'); chgrp($file_name, '117'); This fails to get the uid or gid, so the first syntax appears to be correct. Finally I tried: chown($file_name, 'nobody'); chgrp($file_name, 'site3'); Error message for first and third attempts is identical: Warning: chown failed: Operation not permitted in /home/sites/site3/web/dev/maintenance.php on line 191 Why is it 'not permitted' and how do I allow it? -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: HTTP_POST_VARS truncated
One or more options in each select field are selected, right? Fields having no values (such as unchecked radio buttons, etc.) don't get passed. Yes, I know empty values are not passed, and, yes, the options were selected (I tried with different values because I started thinking I was having some browser cache problem: other variable were always printed with the latest value, except the select ones) mweb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DB] PHP/Mysql
Fatal error: Call to undefined function: mysql_connect() means to things. php is not built with integrated mysql support, or php cannot find php_mysql.so on your comp. What is the value of php.ini variable include_path or something similar. Regards, Andrey Hristov - Original Message - From: Riccardi Moreno [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 5:21 PM Subject: [PHP-DB] PHP/Mysql Hello, I've got cobalt raq4 with php(work) and mysql(work) but when I try to connect via mysql_connect() this error happens: Fatal error: Call to undefined function: mysql_connect() This is my php.ini: [MySQL] mysql.allow_persistent = On ; allow or prevent persistent link mysql.max_persistent= -1 ; maximum number of persistent links. -1 means no limit mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no mysql.default_port = ; default port number for mysql_connect(). If unset, ; mysql_connect() will use the $MYSQL_TCP_PORT, or ; entry in /etc/services, or the compile-time defin ; (in that order). Win32 will only look at MYSQL_P mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode) mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode) mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode) ; Note that this is generally a *bad* idea to store ; in this file. *Any* user with PHP access can run ; 'echo cfg_get_var(mysql.default_password)' and ; password! And of course, any users with read acc ; file will be able to reveal the password as well. And this is my httpd.conf: # Extra Modules #LoadModule php_module #LoadModule php3_modul LoadModule php4_module # because mod_perl lea #LoadModule perl_modul # make sure that this LoadModule ssl_module # Reconstruction of t # (static and shared # [WHENEVER YOU CHANG #ClearModuleList # Extra Modules AddModule mod_php4.c #AddModule mod_php.c #AddModule mod_php3.c #AddModule mod_perl.c #AddModule mod_casp2.c I thing that it's all ok but it doesn't work. Any Ideas? Hi - Moreno Riccardi -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] chown/chgrp not working
Good day, What user is the application running as? Only the superuser can use these functions (this is documented with both of these functions). For security reasons, you may want to use an external sudo script to accomplish this. Be very, very careful... Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Paul Warner [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 8:24 AM To: [EMAIL PROTECTED] Subject: [PHP] chown/chgrp not working I have a client that I made a image uploader/thumbnailer for that insists on using FrontPage. In order to make FP happy, I need to set the owner to 'nobody' and the group to 'site3' which are uid 99 and gid 117. The uploaded file is set as httpd/root and the thumbnail created by the script comes out httpd/site3. First I tried: chown($file_name, 99); chgrp($file_name, 117); Next I tried: chown($file_name, '99'); chgrp($file_name, '117'); This fails to get the uid or gid, so the first syntax appears to be correct. Finally I tried: chown($file_name, 'nobody'); chgrp($file_name, 'site3'); Error message for first and third attempts is identical: Warning: chown failed: Operation not permitted in /home/sites/site3/web/dev/maintenance.php on line 191 Why is it 'not permitted' and how do I allow it? -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DB] PHP/Mysql
Hello, I've got cobalt raq4 with php(work) and mysql(work) but when I try to connect via mysql_connect() this error happens: Fatal error: Call to undefined function: mysql_connect() This is my php.ini: SNIP I thing that it's all ok but it doesn't work. Any Ideas? Hi - Moreno Riccardi Moreno- If you just updated to PHP 4.0.6 on a Raq you need to add 'extension=mysql.so' to /etc/httpd/php.ini -- P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Speed of Images from DB
I've been searching for the best way to store images that would be used in a dynamic site. In this situation, a site admin would upload images via a php script. Obviously this creates several problems. To prevent naming problems, I have php name all the uploaded images and store the name in a mysql db. Then, when needed, php will query to get the name and insert the image name into the image tag. This has always seemed like an incomplete solution because it's hard to manage the files later. Using mySQL to do the whole thing is appealing. I've never tried storing the actual data in my mysql db. It seems like it would be too slow to query, transfer, and passthru. Does anyone have any wisdom on this subject? -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] chown/chgrp not working
Ahh, it is not running with root priv., so this is the problem. Sounds like a good time to look for another way to skin this cat... Thanks! -- Paul - Original Message - From: Darren Gamble [EMAIL PROTECTED] To: 'Paul Warner' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 30, 2001 10:21 AM Subject: RE: [PHP] chown/chgrp not working Good day, What user is the application running as? Only the superuser can use these functions (this is documented with both of these functions). For security reasons, you may want to use an external sudo script to accomplish this. Be very, very careful... Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Paul Warner [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 8:24 AM To: [EMAIL PROTECTED] Subject: [PHP] chown/chgrp not working I have a client that I made a image uploader/thumbnailer for that insists on using FrontPage. In order to make FP happy, I need to set the owner to 'nobody' and the group to 'site3' which are uid 99 and gid 117. The uploaded file is set as httpd/root and the thumbnail created by the script comes out httpd/site3. First I tried: chown($file_name, 99); chgrp($file_name, 117); Next I tried: chown($file_name, '99'); chgrp($file_name, '117'); This fails to get the uid or gid, so the first syntax appears to be correct. Finally I tried: chown($file_name, 'nobody'); chgrp($file_name, 'site3'); Error message for first and third attempts is identical: Warning: chown failed: Operation not permitted in /home/sites/site3/web/dev/maintenance.php on line 191 Why is it 'not permitted' and how do I allow it? -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: HTTP_POST_VARS truncated
In article GNMDDQ$[EMAIL PROTECTED], [EMAIL PROTECTED] (Mweb) wrote: One or more options in each select field are selected, right? Fields having no values (such as unchecked radio buttons, etc.) don't get passed. Yes, I know empty values are not passed, and, yes, the options were selected (I tried with different values because I started thinking I was having some browser cache problem: other variable were always printed with the latest value, except the select ones) Hmm. Have you validated the HTML too? Maybe there's some subtle syntactical error that's preventing the select values from being passed...?? When you var_dump($HTTP_POST_VARS) or print_r($HTTP_POST_VARS), the selects aren't showing there, either, I assume... -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DB] R: [PHP-DB] PHP/Mysql
Set include_path to the place where is your php_mysql.so and uncomment extension=php_mysql.so Regards, Andrey Hristov Bye - Original Message - From: Riccardi Moreno [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 5:45 PM Subject: [PHP-DB] R: [PHP-DB] PHP/Mysql This is the value: ; ; Paths and Directories ; 3;1H; include_path= ; UNIX: /path1:/path2 Windows: \path1;\path2 doc_root= ; the root of th user_dir= ; the directory ;upload_tmp_dir = ; temporary directory for HTTP uploaded upload_max_filesize = 2097152 ; 2 Meg default limit on file uploads extension_dir = /usr/lib/apache/php ; direct -Messaggio originale- Da: Andrey Hristov [mailto:[EMAIL PROTECTED]] Inviato: venerdì 30 novembre 2001 16.26 A: Riccardi Moreno Cc: [EMAIL PROTECTED] Oggetto: Re: [PHP-DB] PHP/Mysql Fatal error: Call to undefined function: mysql_connect() means to things. php is not built with integrated mysql support, or php cannot find php_mysql.so on your comp. What is the value of php.ini variable include_path or something similar. Regards, Andrey Hristov - Original Message - From: Riccardi Moreno [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 5:21 PM Subject: [PHP-DB] PHP/Mysql Hello, I've got cobalt raq4 with php(work) and mysql(work) but when I try to connect via mysql_connect() this error happens: Fatal error: Call to undefined function: mysql_connect() This is my php.ini: [MySQL] mysql.allow_persistent = On ; allow or prevent persistent link mysql.max_persistent= -1 ; maximum number of persistent links. -1 means no limit mysql.max_links = -1 ; maximum number of links (persistent+non persistent). -1 means no mysql.default_port = ; default port number for mysql_connect(). If unset, ; mysql_connect() will use the $MYSQL_TCP_PORT, or ; entry in /etc/services, or the compile-time defin ; (in that order). Win32 will only look at MYSQL_P mysql.default_host = ; default host for mysql_connect() (doesn't apply in safe mode) mysql.default_user = ; default user for mysql_connect() (doesn't apply in safe mode) mysql.default_password = ; default password for mysql_connect() (doesn't apply in safe mode) ; Note that this is generally a *bad* idea to store ; in this file. *Any* user with PHP access can run ; 'echo cfg_get_var(mysql.default_password)' and ; password! And of course, any users with read acc ; file will be able to reveal the password as well. And this is my httpd.conf: # Extra Modules #LoadModule php_module #LoadModule php3_modul LoadModule php4_module # because mod_perl lea #LoadModule perl_modul # make sure that this LoadModule ssl_module # Reconstruction of t # (static and shared # [WHENEVER YOU CHANG #ClearModuleList # Extra Modules AddModule mod_php4.c #AddModule mod_php.c #AddModule mod_php3.c #AddModule mod_perl.c #AddModule mod_casp2.c I thing that it's all ok but it doesn't work. Any Ideas? Hi - Moreno Riccardi -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php + apache 2.0.28 / windows
Hi all, I try to install new 2.0.28 apache on window NT. Apache works fine, but I cannot run php scripts. I think I missed something on .conf to load php, but what ? any idea ? Yhanks for help François Tissandié. Embrassez ceux que vous aimez Atos-Infogérance Tour MANHATTAN 6 Place de l'Iris 92400 Courbevoie Cedex Tél. : 01.70.92.49.67 Fax. : 01.70.92.48.57 e-mail : [EMAIL PROTECTED] Ce message est strictement confidentiel. Son intégrité n'est pas assurée sur Internet. Le contenu de ce message ne peut engager la responsabilité d'Atos Origin. Si vous n'êtes pas destinataire du message, merci d'en avertir immédiatement l'expéditeur et de le détruire. This e-mail is privileged and may contain confidential information intended only for the people named above. If you receive this e-mail in error, please notify the adressee immediately by telephone or return e-mail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Database + Form
Hey there, once again... sorry but I'm not on the list so please CC me :-) I was in the assumption that you needed to use addslashes on a var you retrieve from a form to properly insert it into the database. Well I'm not using it and I can put ,\n,\t etc in my webform but SQL won't evaluate them although!! I use double quotes (var) to insert them. Can anyone explain? Cuz I'm sortta trying to crack my own database by making malicious statements like entering into the form , next data value, next data value); Hack_sql_statement; error on the rest of the values that sql is trying to parse. but i'm not succeeding. Which I find totally cool but I don't understand it I truely am/was under the assumption that I needed to prevent such things by using addslashes() but I guess I'm wrong. Just curious :-) Have a nice weekend fellow scripters Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] SMS
I think you need an SMS server to broadcast the data. Am I correct? Anyone --- Daniel Berwig [EMAIL PROTECTED] wrote: Does anyone know how could I send data from php through SMS to a cel phone? I simply can't find info about that. Thanks in advance, Daniel Berwig. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I'm getting frustrated with this.
look this: http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html maybe it help you andre - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 4:59 PM Subject: [PHP] I'm getting frustrated with this. Hi, I just want a simple page that pulls the data from a database (got that working fine, no problem), and on that page I want to be able to have an option to delete entries. I have tried what seems to be the simplest method - using a form text field, enter the appropriate info, and hit the submit button. It should then be deleted from the database. I can delete from the database on the command line, but getting it to work in php is another story. I keep getting 'not a valid mysql result resource' errors. I have 3 php/mysql books and cannot get this to work. I know it can't be as difficult as it appears. My goal is simple enough - I have a database that is populated from online web forms. It contains enduser names, addresses email addresses. I made a form that the marketing people can use to view the database, search it and display it in various ways. I also gave them a form that will allow them to manually add enduser info into the database. That all works fine. It's just the doggone delete stuff that I just haven't got a handle on yet. Is there a tutorial somewhere that shows the simplest method of setting this up? That's all I need, a reference to a location for a tutorial or info on this particular subject. Thanks, Chip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] - This mail has been sent by IceWarp Merak Mail Server, the coolest and the most economical e-mail solution for ISP's, small and large businesses and DSL/cable modem users. This installation is currently in a free trial expired mode. Click the link to win a free unlimited IceWarp product http://www.icewarp.com/win/ IceWarp Software E-mail: mailto:[EMAIL PROTECTED] Web: http://www.icewarp.com/com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] declaring variables mandatory???
I'm not sure, but I'd check the Error level settings in php.ini. It might be set to display stupid little warnings like this. Good luck, Tyler Longren - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 1:37 PM Subject: [PHP] declaring variables mandatory??? Hello, I have a problem with my php installation. PHP runs, but all my variables have to be declared, othervise I am getting following error: Warning: Undefined variable: next in e:\projects\globosapiens\07_production\actual\forum\install.php on line 33 I guess this is only on my system, since I have obtained other php code which workes on other systems, but not on mine. Thanx for any help Cheers, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] generating text file from php
On Fri, 30 Nov 2001, David Tod Sigafoos wrote: -I have a script which generates html and writes out for users to -download. The script works and the html file works. - -I build strings of html then writeout with fwrite. - -My question is how can i add linefeeds to the strings? \n or maybe \r - -Thanks - --- -PHP General Mailing List (http://www.php.net/) -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] -To contact the list administrators, e-mail: [EMAIL PROTECTED] - ** John Huggins VANet 7101 Oriole Avenue Springfield, VA 22150 703-912-6453 703-912-4831 fax [EMAIL PROTECTED] http://www.va.net/ ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] declaring variables mandatory???
Check this url. Your error_reporting is set to E_ALL in the php.ini file. Change it to suit your need. On my machine I have error_reporting set as below in the php.ini file. error_reporting = E_ALL ~E_NOTICE http://www.php.net/manual/en/function.error-reporting.php - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:37 PM Subject: [PHP] declaring variables mandatory??? Hello, I have a problem with my php installation. PHP runs, but all my variables have to be declared, othervise I am getting following error: Warning: Undefined variable: next in e:\projects\globosapiens\07_production\actual\forum\install.php on line 33 I guess this is only on my system, since I have obtained other php code which workes on other systems, but not on mine. Thanx for any help Cheers, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] chown/chgrp not working
I tackled a similar problem by running a root cron job that does the chown and chgrp every x minutes. Fred Paul Warner [EMAIL PROTECTED] wrote in message 023601c179b6$a35bdd80$[EMAIL PROTECTED]">news:023601c179b6$a35bdd80$[EMAIL PROTECTED]... Ahh, it is not running with root priv., so this is the problem. Sounds like a good time to look for another way to skin this cat... Thanks! -- Paul - Original Message - From: Darren Gamble [EMAIL PROTECTED] To: 'Paul Warner' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 30, 2001 10:21 AM Subject: RE: [PHP] chown/chgrp not working Good day, What user is the application running as? Only the superuser can use these functions (this is documented with both of these functions). For security reasons, you may want to use an external sudo script to accomplish this. Be very, very careful... Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Paul Warner [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 8:24 AM To: [EMAIL PROTECTED] Subject: [PHP] chown/chgrp not working I have a client that I made a image uploader/thumbnailer for that insists on using FrontPage. In order to make FP happy, I need to set the owner to 'nobody' and the group to 'site3' which are uid 99 and gid 117. The uploaded file is set as httpd/root and the thumbnail created by the script comes out httpd/site3. First I tried: chown($file_name, 99); chgrp($file_name, 117); Next I tried: chown($file_name, '99'); chgrp($file_name, '117'); This fails to get the uid or gid, so the first syntax appears to be correct. Finally I tried: chown($file_name, 'nobody'); chgrp($file_name, 'site3'); Error message for first and third attempts is identical: Warning: chown failed: Operation not permitted in /home/sites/site3/web/dev/maintenance.php on line 191 Why is it 'not permitted' and how do I allow it? -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin
Our organization has a website that uses PHP and MySQL. In fact, at least 75% of our webpages are generated dynamically. I want to run reports on the current MySQL database, create new databases and create, copy and alter existing tables. Our web host does not support telnet or SSH for its clients and is not interested in working with PhpMyAdmin at the moment (I think I need their assistance if I want to use PhpMyAdmin, right?). Is this rather typical of web hosts? Can I do the tasks above by designing up a php/web interface from scratch? Any help/suggestions will be greatly appreciated. Frustrated in Vermont - Shawna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: How to work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin
(I think I need their assistance if I want to use PhpMyAdmin, right? Most of the time, no. These are the lines you usually need to change on PhpMyAdmin config file: $cfgServers[1]['host'] = 'localhost'; // MySQL hostname $cfgServers[1]['user'] = 'root'; // MySQL user (only needed with basic auth) $cfgServers[1]['password'] = ''; // MySQL password (only needed with basic auth) Pretty standard for a php/mysql script configuration. It is hard to believe it won't work, so I would give a shot. (http://phpmyadmin.sourceforge.net). -- Julio Nobrega Don't eat the yellow snow. [EMAIL PROTECTED] wrote in message BB6D932A42D6D211B4AC0090274EBB1DA0F0FB@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1DA0F0FB@GLOBAL1... Our organization has a website that uses PHP and MySQL. In fact, at least 75% of our webpages are generated dynamically. I want to run reports on the current MySQL database, create new databases and create, copy and alter existing tables. Our web host does not support telnet or SSH for its clients and is not interested in working with PhpMyAdmin at the moment (I think I need their assistance if I want to use PhpMyAdmin, right?). Is this rather typical of web hosts? Can I do the tasks above by designing up a php/web interface from scratch? Any help/suggestions will be greatly appreciated. Frustrated in Vermont - Shawna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] SMS
[EMAIL PROTECTED] (Dan McCullough) wrote: I think you need an SMS server to broadcast the data. Am I correct? you can also send sms with the mail function, but a gsm modem is by far the best, so for a stabile service either rent a sms service or get somekind of a gsm modem. AFAIK -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] SMS
[EMAIL PROTECTED] (Dan McCullough) wrote: Heres a code snippet: Sorry for leading astray. // load the swsms module dl( ../swsms.so ); never heard of a sms module in php, where can you get this? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-WIN] BARE LF in Sending Mail from PHP
which line the error was on ? and what was the error ? I can not see why it would give any parse error I have run this test program and it worked fine.. without any parse error. It may be somewhere else in your code. Here's my sample code. ?php function SendSite($yname, $ymail, $fname, $fmail) { global $sitename, $slogan, $nukeurl, $ModName; $subject = ._INTSITE. $sitename; $message = ._HELLO. $fname:\n\n._YOURFRIEND. $yname ._OURSITE. $sitename ._INTSENT.\n\n\n._FSITENAME. $sitename\n$slogan\n._FSITEURL. $nukeurl; $Headers = From: $yname$ymail\r\n; $Headers.=X-Mailer: PHP/ . phpversion().\r\n; mail($fmail, $subject, $message, $Headers); } SendSite(R'twick Niceorgaw, [EMAIL PROTECTED],Test Name,user@localhost); ? - Original Message - From: Eric Rosebrock ERIC@(NOSPAM) 3dhavoc.net To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:50 PM Subject: Re: [PHP-WIN] BARE LF in Sending Mail from PHP Unfortunately, that code gave me a parse error. R'Twick Niceorgaw [EMAIL PROTECTED] wrote in message news:04af01c179d5$3503f010$[EMAIL PROTECTED]... Eric, Here is what I believe will work. You need to put \r\n after the From Header and after the X-Mailer header. I have moved the from and X-Mailer to a separate header for clarity. try it and let me know if you still getting the same error. Good luck function SendSite($yname, $ymail, $fname, $fmail) { global $sitename, $slogan, $nukeurl, $ModName; $subject = ._INTSITE. $sitename; $message = ._HELLO. $fname:\n\n._YOURFRIEND. $yname ._OURSITE. $sitename ._INTSENT.\n\n\n._FSITENAME. $sitename\n$slogan\n._FSITEURL. $nukeurl; $Headers = From: $yname$ymail\r\n; $Headers.=X-Mailer: PHP/ . phpversion().\r\n; mail($fmail, $subject, $message, $Headers); // Header(Location: friend.php?op=SiteSentfname=$fname); // Original commented out by adam_baum 07-07-2001 when moved to a module. echo htmlheadMETA HTTP-EQUIV=Refresh CONTENT=\1; URL=modules.php?op=modloadamp;name=$ModNameamp;file=index\; echo /headbody/body/html; } - Original Message - From: Eric Rosebrock ERIC@(NOSPAM) 3dhavoc.net To: [EMAIL PROTECTED] Sent: Friday, November 30, 2001 2:11 PM Subject: Re: [PHP-WIN] BARE LF in Sending Mail from PHP Ok, I am going to try go go into as much detail as I can for this one. I have done some modifications of the certain script that I am using and I am getting --- somewhere --- Starting off, Here's the original script and a copy of the mail log from my mail server for this transacition. Original Script: } function SendSite($yname, $ymail, $fname, $fmail) { global $sitename, $slogan, $nukeurl, $ModName; $subject = ._INTSITE. $sitename; $message = ._HELLO. $fname:\n\n._YOURFRIEND. $yname ._OURSITE. $sitename ._INTSENT.\n\n\n._FSITENAME. $sitename\n$slogan\n._FSITEURL. $nukeurl\n; mail($fmail, $subject, $message, From: \$yname\ $ymail\nX-Mailer: PHP/ . phpversion()); // Header(Location: friend.php?op=SiteSentfname=$fname); // Original commented out by adam_baum 07-07-2001 when moved to a module. echo htmlheadMETA HTTP-EQUIV=Refresh CONTENT=\1; URL=modules.php?op=modloadamp;name=$ModNameamp;file=index\; echo /headbody/body/html; } Mail Log from the original script through my smtp server and where it fails from the QMail server it's sending to: Thread 1: 18:58:53 [---] : HELO xx.net Thread 1: 18:58:53 [---] : 220 x.net ESMTP Thread 1: 18:58:53 [---] : MAIL FROM: [EMAIL PROTECTED] Thread 1: 18:58:54 [---] : 250 xxx.net Thread 1: 18:58:54 [---] : RCPT TO: [EMAIL PROTECTED] Thread 1: 18:58:54 [---] : 250 ok Thread 1: 18:58:54 [---] : DATA Thread 1: 18:58:54 [---] : 250 ok Thread 1: 18:58:54 [---] : 354 go ahead Thread 1: 18:58:54 [---] : QUIT Thread 1: 18:58:54 [---] : 451 See http://pobox.com/~djb/docs/smtplf.html. Modified Script (I tried to put the carriage returns in, but I think I am missing something): } function SendSite($yname, $ymail, $fname, $fmail) { global $sitename, $slogan, $nukeurl, $ModName; $subject = ._INTSITE. $sitename; $message = ._HELLO. $fname:\r\n._YOURFRIEND. $yname ._OURSITE. $sitename ._INTSENT.\r\n._FSITENAME. $sitename\r\n$slogan\r\n._FSITEURL. $nukeurl\r\n; mail($fmail, $subject, $message, From: \$yname\ $ymail\nX-Mailer: PHP/ . phpversion()); // Header(Location: friend.php?op=SiteSentfname=$fname); // Original commented out by adam_baum 07-07-2001 when moved to a module. echo htmlheadMETA HTTP-EQUIV=Refresh CONTENT=\1; URL=modules.php?op=modloadamp;name=$ModNameamp;file=index\; echo /headbody/body/html; } Mail log from the modified script through my SMTP
Re: [PHP] SMS
That example I sent was from a place where they have the swsms shared object which you can get in a developers license, I havent actually tried it, but was looking at it for a project. --- Henrik Hansen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Dan McCullough) wrote: I think you need an SMS server to broadcast the data. Am I correct? you can also send sms with the mail function, but a gsm modem is by far the best, so for a stabile service either rent a sms service or get somekind of a gsm modem. AFAIK -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to work with MySQL tables WITHOUT telnet, SSH orPhpMyAdmin
At 15:19 -0500 30-11-01, [EMAIL PROTECTED] wrote: Our web host does not support telnet or SSH for its clients and is not interested in working with PhpMyAdmin at the moment (I think I need their assistance if I want to use PhpMyAdmin, right?). Is this rather typical of web hosts? You do not need their assistance to use phpMyAdmin - it's just another php site. All you need to do is edit its config file, where you enter the database names, usernames and passwords for all your databases. You can then choose a database from the phpMyAdmin home page. The only limitation is I believe is that to create new databases, you'll have to have create rights on the username for one of the databases you set up, and choose that database in phpMyAdmin before creating the new database with SQL. Sverre -- disclaimer I speak for myself only! /disclaimer to be yourself, in a world that tries, night and day, to make you just like everybody else - is to fight the greatest battle there ever is to fight, and never stop fighting -- e.e. cummings -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] SMS
somewhere in here ... I'm not familiar with the actual object, but if you have success withit I would like to hear how you are doing with it. http://www.simplewire.com/developers/code/ --- Henrik Hansen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Dan McCullough) wrote: Heres a code snippet: Sorry for leading astray. // load the swsms module dl( ../swsms.so ); never heard of a sms module in php, where can you get this? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin
Yes most shared hosts will not allow the creation of multiple databases. Just one, so you will have to make use with table creation. dan mccullough programming/enginnering 603.444.9808 --- Sverre Johan Tøvik [EMAIL PROTECTED] wrote: At 15:19 -0500 30-11-01, [EMAIL PROTECTED] wrote: Our web host does not support telnet or SSH for its clients and is not interested in working with PhpMyAdmin at the moment (I think I need their assistance if I want to use PhpMyAdmin, right?). Is this rather typical of web hosts? You do not need their assistance to use phpMyAdmin - it's just another php site. All you need to do is edit its config file, where you enter the database names, usernames and passwords for all your databases. You can then choose a database from the phpMyAdmin home page. The only limitation is I believe is that to create new databases, you'll have to have create rights on the username for one of the databases you set up, and choose that database in phpMyAdmin before creating the new database with SQL. Sverre -- disclaimer I speak for myself only! /disclaimer to be yourself, in a world that tries, night and day, to make you just like everybody else - is to fight the greatest battle there ever is to fight, and never stop fighting -- e.e. cummings -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] system(), flush() and so on...
Salute, PHP list :), Aloha, ppl. Could anybody explain 2 me what da heck is wrong with flush(). What is needed for it to run as needed? :) If I'm to mistaken that should be an php module for apache? And what if it's compiled together with apache? I dunno what 2 do. Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] SMS
[EMAIL PROTECTED] (Dan McCullough) wrote: somewhere in here ... I'm not familiar with the actual object, but if you have success withit I would like to hear how you are doing with it. http://www.simplewire.com/developers/code/ ahh yeah now i remember seing it :) -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: system(), flush() and so on...
Hi, please be more specific. Including what error you are getting, what is the tools being used, and their versions. Here's a quick help for producing better questions, wich will in turn make us answer faster and with more quality: http://www.tuxedo.org/~esr/faqs/smart-questions.html PS: btw, I am far away from being a 'hacker', don't get me wrong whole list people :-) -- Julio Nobrega Don't eat the yellow snow. Faeton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Salute, PHP list :), Aloha, ppl. Could anybody explain 2 me what da heck is wrong with flush(). What is needed for it to run as needed? :) If I'm to mistaken that should be an php module for apache? And what if it's compiled together with apache? I dunno what 2 do. Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: system(), flush() and so on...
Hello Julio, Hm... I don't even know what to specify :) The exact problem is using system(traceroute host.com), but it should've returned its results line by line, instead of executing the whole command and then outputting its result. That is done by flush(), which is executed by system() foo itself, but i couldn't understand why i have needed result on some servers and on others - vice versa. JNT Hi, please be more specific. Including what error you are getting, what is JNT the tools being used, and their versions. JNT Here's a quick help for producing better questions, wich will in turn make JNT us answer faster and with more quality: JNT http://www.tuxedo.org/~esr/faqs/smart-questions.html JNT PS: btw, I am far away from being a 'hacker', don't get me wrong whole JNT list people :-) Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: system(), flush() and so on...
Good day, flush() will just empty the contents of the output buffer when it's called. You should do this after you output the command, yes, or the user will have to wait until the rest of the page is loaded. But this won't let you see the output as it is generated by the system() function. You may want to try popen instead. This gives you a pipe to the process, so you _should_ be able to read in lines of the output and display them as they appear, whilst using flush() (although I have never tried this myself so I can not vouch for it). Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: faeton [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 2:21 PM To: Julio Nobrega Trabalhando Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: system(), flush() and so on... Hello Julio, Hm... I don't even know what to specify :) The exact problem is using system(traceroute host.com), but it should've returned its results line by line, instead of executing the whole command and then outputting its result. That is done by flush(), which is executed by system() foo itself, but i couldn't understand why i have needed result on some servers and on others - vice versa. JNT Hi, please be more specific. Including what error you are getting, what is JNT the tools being used, and their versions. JNT Here's a quick help for producing better questions, wich will in turn make JNT us answer faster and with more quality: JNT http://www.tuxedo.org/~esr/faqs/smart-questions.html JNT PS: btw, I am far away from being a 'hacker', don't get me wrong whole JNT list people :-) Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[2]: [PHP] Re: system(), flush() and so on...
Hello Darren, -- manual cut The system() call also tries to automatically flush the web server's output buffer after each line of output if PHP is running as a server module. -- manual cut Hehe. The problem is not in flushing ability of system() foo, but flush() itself is not working :( I've tried to install PHP as a module (as written above), cgi, compiled with apache. But nothing worked. DG flush() will just empty the contents of the output buffer when it's called. DG You should do this after you output the command, yes, or the user will have DG to wait until the rest of the page is loaded. But this won't let you see DG the output as it is generated by the system() function. DG You may want to try popen instead. This gives you a pipe to the process, so DG you _should_ be able to read in lines of the output and display them as they DG appear, whilst using flush() (although I have never tried this myself so I DG can not vouch for it). Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: Re[2]: [PHP] Re: system(), flush() and so on...
Good day, Oops, you're right. I did not read that line nor was I aware of that. I just tried ?php system(traceroute www.google.com); ? . It works exactly as it says it should- outputs the lines as they come in. I also know flush() works fine (at least for me). Perhaps you could provide some information about your O/S and PHP version? Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: faeton [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 2:35 PM To: Darren Gamble Cc: [EMAIL PROTECTED] Subject: Re[2]: [PHP] Re: system(), flush() and so on... Hello Darren, -- manual cut The system() call also tries to automatically flush the web server's output buffer after each line of output if PHP is running as a server module. -- manual cut Hehe. The problem is not in flushing ability of system() foo, but flush() itself is not working :( I've tried to install PHP as a module (as written above), cgi, compiled with apache. But nothing worked. DG flush() will just empty the contents of the output buffer when it's called. DG You should do this after you output the command, yes, or the user will have DG to wait until the rest of the page is loaded. But this won't let you see DG the output as it is generated by the system() function. DG You may want to try popen instead. This gives you a pipe to the process, so DG you _should_ be able to read in lines of the output and display them as they DG appear, whilst using flush() (although I have never tried this myself so I DG can not vouch for it). Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] declaring variables mandatory???
change error level reporting error_reporting() -Brian -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 2:38 PM To: [EMAIL PROTECTED] Subject: [PHP] declaring variables mandatory??? Hello, I have a problem with my php installation. PHP runs, but all my variables have to be declared, othervise I am getting following error: Warning: Undefined variable: next in e:\projects\globosapiens\07_production\actual\forum\install.php on line 33 I guess this is only on my system, since I have obtained other php code which workes on other systems, but not on mine. Thanx for any help Cheers, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Stuck on array, need a little help.
I'm stuck. $key returns Array how can I get at each level of this array? if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$key\ CLASS=\menu\$val/A/TD\n; $bikes = array( Road = array( Trek = array( Trek 5200 = road.php?brand=t5200 ), LeMond = array( Zurich = road.php?brand=zurich, Chambery = road.php?brand=chambery, Alpe d'Huez = road.php?brand=alpe, BuenosAries = road.php?brand=bueno, Tourmalet = road.php?brand=tourmalet ), Moots = array( VaMoots = road.php?brand=vamoots ) ), Mountain = array( Trek = array( Fuel 100 = mountain.php?brand=tfuel90, Fuel 90 = mountain.php?brand=schhg ), Klein = array( bike 1 = URL, bike 2 = URL ), Gary Fisher = array( bike 1 = URL, bike 2 = URL ), Moots = array( bike 1 = URL, bike 2 = URL ) ), -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Stuck on array, need a little help.
Your script is working like you are asking it to ... Change ... while (list($val, $key)=each($bikes[$sub_cat])) { To ... while (list($key, $val)=each($bikes[$sub_cat])) { and it should work like you WANT it to ... I'm stuck. $key returns Array how can I get at each level of this array? if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$key\ CLASS=\menu\$val/A/TD\n; $bikes = array( Road = array( Trek = array( Trek 5200 = road.php?brand=t5200 ), LeMond = array( Zurich = road.php?brand=zurich, Chambery = road.php?brand=chambery, Alpe d'Huez = road.php?brand=alpe, BuenosAries = road.php?brand=bueno, Tourmalet = road.php?brand=tourmalet ), Moots = array( VaMoots = road.php?brand=vamoots ) ), Mountain = array( Trek = array( Fuel 100 = mountain.php?brand=tfuel90, Fuel 90 = mountain.php?brand=schhg ), Klein = array( bike 1 = URL, bike 2 = URL ), Gary Fisher = array( bike 1 = URL, bike 2 = URL ), Moots = array( bike 1 = URL, bike 2 = URL ) ), -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Speed of Images from DB
It would be mighty handy for MySQL to have a binary file column type, like Oracle, where the file was stored externally, outside of the rest of the table data... Anyone heard of any plans to implement this? -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 12:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Speed of Images from DB But that could be due to server capabilities of my ISP (if he has for example a high tech mysql-server and a relativly slow machine for apache). Probaly :-) From this page: http://www.mysql.com/information/presentations/presentation-oscon2000-20 0007 19/ You can read on section 'General tips': - Store BLOB's that you need to access as files in files. Store only the file name in the database. But I guess it also depends on the image size. -- Julio Nobrega Don't eat the yellow snow. Stefan Rusterholz [EMAIL PROTECTED] wrote in message 000701c179bb$33c4df30$3c01a8c0@quasimodo">news:000701c179bb$33c4df30$3c01a8c0@quasimodo... I did do that for a galery-script of myself. I don't have any numbers if you'r looking for that but my personal impression was, that the picture output from the mysql-db is actually faster than reading directly from disk. But that could be due to server capabilities of my ISP (if he has for example a high tech mysql-server and a relativly slow machine for apache). But with a quite fast mysql-server it shouldn't be a problem I think. And if it _would_ be a problem, I think there are still more positive aspects then negatives (easy handling, having stored all important informations together, fast searching of images with keywords and so on) best regards Stefan Rusterholz, [EMAIL PROTECTED] -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: Re[4]: [PHP] Re: system(), flush() and so on...
Good day, I am not sure what the problem is, then. I presume that you installed these via RPMs, and have PHP operating as an Apache module. Does the simple script provided fail as well? Have you tried some simple scripts with sleep() and flush() to see if flush() works? If you don't hear from anyone else on the list, you may want to try posting a bug report. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: faeton [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 3:01 PM To: Darren Gamble Cc: [EMAIL PROTECTED] Subject: Re[4]: [PHP] Re: system(), flush() and so on... Hello Darren, Linux RedHat 7.1, Apache 1.3.20, PHP 4.0.6 DG Oops, you're right. I did not read that line nor was I aware of that. DG I just tried ?php system(traceroute www.google.com); ? . It works DG exactly as it says it should- outputs the lines as they come in. I also DG know flush() works fine (at least for me). DG Perhaps you could provide some information about your O/S and PHP version? Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Stuck on array, need a little help.
The script is still working right, you just need to nest another while loop into your current while loop. Like so ... if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo trtd$val/td; while (list($sub_val, $sub_key) = each($key)) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/td\n; echo TDA HREF=\$sub_key\ CLASS=\menu\$sub_val/a/td\n; } } } alternatively, if you know specifically what you want you could do this ... if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat][Trek])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/td\n; echo TDA HREF=\$key\ CLASS=\menu\$val/a/td\n; } } No, all that will do is reverse the placement of the values. So now it prints out Array and puts the item in the URL. Still the same problem. -Original Message- From: Jim Musil [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 4:54 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stuck on array, need a little help. Your script is working like you are asking it to ... Change ... while (list($val, $key)=each($bikes[$sub_cat])) { To ... while (list($key, $val)=each($bikes[$sub_cat])) { and it should work like you WANT it to ... I'm stuck. $key returns Array how can I get at each level of this array? if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$key\ CLASS=\menu\$val/A/TD\n; $bikes = array( Road = array( Trek = array( Trek 5200 = road.php?brand=t5200 ), LeMond = array( Zurich = road.php?brand=zurich, Chambery = road.php?brand=chambery, Alpe d'Huez = road.php?brand=alpe, BuenosAries = road.php?brand=bueno, Tourmalet = road.php?brand=tourmalet ), Moots = array( VaMoots = road.php?brand=vamoots ) ), Mountain = array( Trek = array( Fuel 100 = mountain.php?brand=tfuel90, Fuel 90 = mountain.php?brand=schhg ), Klein = array( bike 1 = URL, bike 2 = URL ), Gary Fisher = array( bike 1 = URL, bike 2 = URL ), Moots = array( bike 1 = URL, bike 2 = URL ) ), -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[6]: [PHP] Re: system(), flush() and so on...
Hello Darren, You can try it yourself : www.xemi.info/test.php What do you think? Server config: RedHat 7.1, Apache 1.3.20, PHP 4.0.6 loaded as a module. PS. I tried everything. Simply everything. DG I am not sure what the problem is, then. I presume that you installed these DG via RPMs, and have PHP operating as an Apache module. Does the simple DG script provided fail as well? DG Have you tried some simple scripts with sleep() and flush() to see if DG flush() works? DG If you don't hear from anyone else on the list, you may want to try posting DG a bug report. Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Strange problem...
Hi, i have a strange problem. I get a users birthdate with three dropdown menus (year, month and day of month). I get these values into one string with: $user_birthdate = $birth_year . $birth_month . $birth_day; If i echo $user_birthdate after this it is correct (mmdd). But when i insert the value of $user_birthdate into MySql it gets the value '8388607'. It doesn´t matter what value $user_birthdate had originally - it always inserts as 8388607. Any ideas??? The db question looks like this btw: $query = INSERT INTO users ; $query .= (user_name, user_birthdate, user_city, user_mail, user_icq, user_msn, user_www, user_login, user_password) ; $query .= values('$user_name', '$user_birthdate', '$user_city', '$user_mail', '$user_icq', '$user_msn', '$user_www', '$user_login', '$user_password'); Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | +46 8 694 82 22 # # PGP: http://www.mindbash.com/pgp/ # -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: Re[6]: [PHP] Re: system(), flush() and so on...
Good day, For whatever reason, your traceroute command is returning results very quickly. It may be functioning normally. Perhaps you should try a command that will take much longer to execute, such as du / --max-depth=1. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: faeton [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 3:32 PM To: Darren Gamble Cc: [EMAIL PROTECTED] Subject: Re[6]: [PHP] Re: system(), flush() and so on... Hello Darren, You can try it yourself : www.xemi.info/test.php What do you think? Server config: RedHat 7.1, Apache 1.3.20, PHP 4.0.6 loaded as a module. PS. I tried everything. Simply everything. DG I am not sure what the problem is, then. I presume that you installed these DG via RPMs, and have PHP operating as an Apache module. Does the simple DG script provided fail as well? DG Have you tried some simple scripts with sleep() and flush() to see if DG flush() works? DG If you don't hear from anyone else on the list, you may want to try posting DG a bug report. Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Don't tell me this isn't possible (object related question)
hi, let's say I have made some objects $content = new Content(); and in object content a new object is created $person = new Person(Jeroen); Person holds a var age Now I want to do something like this in a normal PHP script echo $content-getPerson(Jeroen)-getAge(); or since PHP doesn't use private / prublic / etc.. echo $content-getPerson(Jeroen)-age; the point is , getPerson(Jeroen) returns an object. this object contains the function getAge() which return the var age but somehow this constuction isn't possible ? Why ... or is it but is there a strange syntax kind regards Jeroen Olthof -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: Re[8]: [PHP] Re: system(), flush() and so on...
Good day, Then I'm not sure. Perhaps someone in-the-know will respond to your question. Else, file a bug report. Your script runs fine on my 'puter, FYI. Otherwise, it would be worthwhile to write something quick to test flush() with. If it is also not working, it will provide more evidence as to the cause of the problem. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: faeton [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 3:57 PM To: Darren Gamble Cc: PHP General List Subject: Re[8]: [PHP] Re: system(), flush() and so on... Hello Darren, It's quick because of the fact that it's tracing a host near to my server. If you have noticed - ping from my server to login.icq.com that is being traced by default is only 10ms. Try that: www.xemi.info/test.php?host=www.google.com or something like that I waited too long... And still haven't got any results. DG For whatever reason, your traceroute command is returning results very DG quickly. It may be functioning normally. DG Perhaps you should try a command that will take much longer to execute, such DG as du / --max-depth=1. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[10]: [PHP] Re: system(), flush() and so on...
Hello Darren, Something quick is like that? for($i = 0; $i 10; $i++) { print $i.br\n; flush(); sleep(3); }; Yeah? There it is: www.xemi.info/flush.php DG Then I'm not sure. Perhaps someone in-the-know will respond to your DG question. Else, file a bug report. Your script runs fine on my 'puter, DG FYI. DG Otherwise, it would be worthwhile to write something quick to test flush() DG with. If it is also not working, it will provide more evidence as to the DG cause of the problem. Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Don't tell me this isn't possible (object related question)
Jeroen, this will be possible with ZE2 (check out the Zend site for more info) Jeroen Olthof [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, let's say I have made some objects $content = new Content(); and in object content a new object is created $person = new Person(Jeroen); Person holds a var age Now I want to do something like this in a normal PHP script echo $content-getPerson(Jeroen)-getAge(); or since PHP doesn't use private / prublic / etc.. echo $content-getPerson(Jeroen)-age; the point is , getPerson(Jeroen) returns an object. this object contains the function getAge() which return the var age but somehow this constuction isn't possible ? Why ... or is it but is there a strange syntax kind regards Jeroen Olthof -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[2]: [PHP] Strange problem...
Hello Daniel, $date = $birth_year.-.$birth_month.-.$birth_day; And you can try inserting such kind o' date to a DATETIME field. There's an alternative way: $time = mktime(0,0,0, $birth_month, $birth_day, $birth_year); That would return a unix timestamp that can be written to a BIGINT field and in future returned by using date(m.d.Y, $time) from your sql query. He. DA Thanks Jim. DA but how would i actually do that? I have studied the date() function in the DA manual - but can´t find a way of inserting a set value from user input as a DA valid date. DA - D Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Getting the filesize of an image?
Is there any easy way to get the filesize of an image on a remote server? Please tell me there is! TIA -- Uchendu Nwachukwu newsreply AT unndunn DOT com - www.unndunn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Getting the filesize of an image?
Yes -- RTFM. http://php.net/getimagesize --kurt On Friday 30 November 2001 04:04 pm, Uchendu Nwachukwu wrote: Is there any easy way to get the filesize of an image on a remote server? Please tell me there is! TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: I'm getting frustrated with this.
Got it! Turns out to be one of those obvious left-it-out errors that happens when staring at the monitor too long. One other guy helped point this out off-list. I'm at home now and don't recall his name, the emails being at work. Thanks to all, Chip On Friday 30 November 2001 12:09 pm, Fred wrote: If you want to know exactly why mysql functions fail you should always, and I do mean always, use this form: $Result = mysql_query($Query, $Connection) or die (mysql_error()); You will always get a fairly descriptive error from mysql. If you still do not understand the error, at least you have more specific information for this list. Fred Chip Wiegand [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I just want a simple page that pulls the data from a database (got that working fine, no problem), and on that page I want to be able to have an option to delete entries. I have tried what seems to be the simplest method - using a form text field, enter the appropriate info, and hit the submit button. It should then be deleted from the database. I can delete from the database on the command line, but getting it to work in php is another story. I keep getting 'not a valid mysql result resource' errors. I have 3 php/mysql books and cannot get this to work. I know it can't be as difficult as it appears. My goal is simple enough - I have a database that is populated from online web forms. It contains enduser names, addresses email addresses. I made a form that the marketing people can use to view the database, search it and display it in various ways. I also gave them a form that will allow them to manually add enduser info into the database. That all works fine. It's just the doggone delete stuff that I just haven't got a handle on yet. Is there a tutorial somewhere that shows the simplest method of setting this up? That's all I need, a reference to a location for a tutorial or info on this particular subject. Thanks, Chip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Authentication
Hi, there is a module for apache that autorizes with mysql, the name of the module is: mod_auth_mysql-2.20, that way you can protect files/directories with the .htaccess method. Bye. PD. The module is at: www.mysql.com On Thu, Nov 29, 2001 at 08:59:05PM +, Hippie wrote: I'm attempting authorise users from a MySQL database. The idea being, that upon access to the page they input their username and password and this is checked against a table from an SQL database. This page needs to be completely server independant which means that I can't make use of the $PHP_AUTH_USER as this relies on IIS or Apache to know how to authorise to my knowledge. If anyone has any ideas on how to accomplish this I would be more than interested to hear of them. Also, failing this being possible if I can resort to checking it against Radius instead of SQL so any ideas on that would be great as well. Hippie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Mauricio Téllez Jiménez Seguimiento Técnico EDUMEXICO [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Zamora No. 25, Col. Centro C.P. 91000, Xalapa, Ver. Tel. 52(28)17-86-87, 17-73-80 Fax. 52(28)18-64-13 msg41657/pgp0.pgp Description: PGP signature
Re: [PHP] Authenticating Users with their Windows Login - Desperate
Hi all, I know that this is NOT the best answer, but maybe it works, so here it is: when some people type a login and a password for access a secure page, you read that values and the IP address of the user, then you tell smbclient to find the NT password server (but if you know the addreess that is much easy) and connect to the machine with the login and password the user typed. If you got a positive, YOU'RE DONE!!! I hope this can help you. On Fri, Nov 30, 2001 at 04:49:32PM +0800, Feroze Md. Arif wrote: Hi Again, I've searched high and low since my last post but I couldn't find anything on how Users can be authenticated using their Windows NT server User IDs and Passwords. I do not want to authenticate users with a MySQL database etc., since that involves recreating all the user ids and passwords. If my users log into my intranet application with their NT or Windows2000 user id and password, is there anyway I can access the Windows NT User ID/Password respository and authenticate the users? Please help. If anyone has some suggestions please let me know. Best Regards Feroze Jar Jar Binks will be Jedi! == Hi, First of all, my apologies if this question has been asked earlier. I am in a hurry and I haven't checked the archives (Actually, I am in the process of doing it but am trying to cover all the bases). I know that PHP has functions which will allow Users to be authenticated off a NIS Server or a LDAP server. Will it be possible to do something similar in PHP with the User IDs and Passwords stored in a NT or Windows 2000 server? I would appreciate it very much if anyone could point me to resources that could help me or share some sample scripts :) :) Thanks in Advance, Feroze === Jar Jar Binks will be Jedi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Mauricio Téllez Jiménez Seguimiento Técnico EDUMEXICO [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Zamora No. 25, Col. Centro C.P. 91000, Xalapa, Ver. Tel. 52(28)17-86-87, 17-73-80 Fax. 52(28)18-64-13 msg41658/pgp0.pgp Description: PGP signature