[PHP] mysql query/$post problem

2006-03-27 Thread Mark
I havnt even tried this query but i know its wrong can anyone help! *** ?php include(header.php); include(connect.php); $comp_id = $_SESSION['comp_id']; $user_id = $_SESSION['user_id']; // Grab variables and insert into database $avname = $_POST['avname'];

Re: [PHP] mysql query/$post problem

2006-03-27 Thread nicolas figaro
Mark a écrit : I havnt even tried this query but i know its wrong can anyone help! *** ?php include(header.php); include(connect.php); don't you need a session_start() somewhere ? (or it's in the header.php or connect.php perhaps ?) $comp_id =

Re: [PHP] mysql query/$post problem

2006-03-27 Thread chris smith
On 3/27/06, Mark [EMAIL PROTECTED] wrote: I havnt even tried this query but i know its wrong can anyone help! *** ?php include(header.php); include(connect.php); $comp_id = $_SESSION['comp_id']; $user_id = $_SESSION['user_id']; // Grab variables and

[PHP] Re: mysql query/$post problem

2006-03-27 Thread Barry
Mark wrote: I havnt even tried this query but i know its wrong can anyone help! How do you know it's wrong ? O_o *** ?php include(header.php); include(connect.php); $comp_id = $_SESSION['comp_id']; $user_id = $_SESSION['user_id']; // Grab variables and

Re: [PHP] mysql query/$post problem

2006-03-27 Thread PHP Mailer
Mark skrev: I havnt even tried this query but i know its wrong can anyone help! *** ?php include(header.php); include(connect.php); $comp_id = $_SESSION['comp_id']; $user_id = $_SESSION['user_id']; // Grab variables and insert into database $avname =

Re: [PHP] array_search function bugged? update

2006-03-27 Thread Robin Vickery
On 27/03/06, je killen [EMAIL PROTECTED] wrote: Hi all Here is an update on my problem reported with the array_search function. to those who directed me to the bug report page, thanks. There are a number of reports specific to this function. Maybe event someone else has written a fix. here

Re: [PHP] mysql query/$post problem

2006-03-27 Thread Jasper Bryant-Greene
PHP Mailer wrote: Mark skrev: [snip] $query = INSERT INTO users AVATARS WHERE id =$user_id '','$avname'); mysql_query($query);s [snip] I am trying to insert the value of $avname into the users table, into the avatar field. I think what you are trying to do is coordinated a bit wrong,

[PHP] Three quickies anyone?

2006-03-27 Thread Ryan A
Hey, I am new to CLI and using PHP to run shell but need to know it so am getting my feet wet, hopefully with your help :-) Now when I said three quickies, I mean three PHP RELATED quickies of course...if you thought anything otherwise... you have a wicked mind. Here goes: 1. I start my CLI

[PHP] Re: protecting passwords when SSL is not available

2006-03-27 Thread Barry
Satyam wrote: b) concatenate this value with the session_id() or whatever random you generated before And where do you get that information? Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Three quickies anyone?

2006-03-27 Thread Jay Blanchard
[snip] 1. I start my CLI scripts with: #!/usr/local/etc/php as thats the path on my machine... the problem is some of these scripts will have to be installed on clients machines by them... any easy way for them to find out whats the path PHP is installed on their machine? (this q is more of a

RE: [PHP] Three quickies anyone?

2006-03-27 Thread Ryan A
Hey Jay, [snip] is it the same as $_SERVER[include_path] [/snip] Have them go to the command line and type 'which php' and it will return the path. The clients will probably not even understand what command line means, I was thinking of doing something like this: ask the client to

[PHP] Is there a mysql newsgroup like this php.general ANYONE?

2006-03-27 Thread Anasta
I need help with an insert using joins. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is there a mysql newsgroup like this php.general ANYONE?

2006-03-27 Thread Barry
Anasta wrote: I need help with an insert using joins. yes there is :) http://lists.mysql.com/ -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Three quickies anyone?

2006-03-27 Thread Kevin Kinsey
Ryan A wrote: Hey, I am new to CLI and using PHP to run shell but need to know it so am getting my feet wet, hopefully with your help :-) Now when I said three quickies, I mean three PHP RELATED quickies of course...if you thought anything otherwise... you have a wicked mind. Here goes: 1. I

Re: [PHP] Three quickies anyone?

2006-03-27 Thread Barry
Ryan A wrote: Have them go to the command line and type 'which php' and it will return the path. The clients will probably not even understand what command line means, I was thinking of doing something like this: ask the client to enter the path to php on his server, if he does not know the

Re: [PHP] Is there a mysql newsgroup like this php.general ANYONE?

2006-03-27 Thread Robin Vickery
On 27/03/06, Anasta [EMAIL PROTECTED] wrote: I need help with an insert using joins. Yes, there is. You'll find all the mysql lists/newsgroups here: http://lists.mysql.com/ -robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Three quickies anyone?

2006-03-27 Thread Ryan A
The canonical way: #!/usr/bin/env php Thanks Kevin, Well, if you use the canonical way I describe above, one problem I foresee is that the cgi-bin directory is hardly ever in $PATH. . . Will keep that in mind.. Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To

[PHP] Irritating [EMAIL PROTECTED]

2006-03-27 Thread Ryan A
Anybody else getting these annoying auto responses from [EMAIL PROTECTED] ? If yes, can someone email the list mod to delete his account or something, or email me back the list mods email and I'll do it myself. Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Three quickies anyone?

2006-03-27 Thread David Tulloh
Ryan A wrote: ... 1. I start my CLI scripts with: #!/usr/local/etc/php as thats the path on my machine... the problem is some of these scripts will have to be installed on clients machines by them... any easy way for them to find out whats the path PHP is installed on their machine?

[PHP] OT? - newbie php/xml/xsl question

2006-03-27 Thread ksmeeks
I know this is off-topic, but I'm hoping someone will share a little php/xml/xsl knowledge with me. I'm trying to (via php 5) to do the following: - load an xml file - load an xsl stylesheet - apply the two, and build a page that contains hyperlinks based on the xml Here's the basics of the

Re: [PHP] Re: protecting passwords when SSL is not available

2006-03-27 Thread Satyam
The php server sends it along the form. Which I said so: PHP will send a random number along with the login form. I don't see any problem sending that information to the client clear (unencrypted), but that's why I'm asking. Satyam - Original Message - From: Barry [EMAIL

[PHP] Re: Irritating [EMAIL PROTECTED]

2006-03-27 Thread Barry
Ryan A wrote: Anybody else getting these annoying auto responses from [EMAIL PROTECTED] ? If yes, can someone email the list mod to delete his account or something, or email me back the list mods email and I'll do it myself. Thanks, Ryan Yeah, it's annoying _ -- Smileys rule (cX.x)C

[PHP] cron via cPanel

2006-03-27 Thread tedd
Hi gang: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? Thanks. tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: cron via cPanel

2006-03-27 Thread Barry
tedd wrote: Hi gang: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? Thanks. tedd wget --spider http://www.url.com/blahblah.php -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General

Re: [PHP] protecting passwords when SSL is not available

2006-03-27 Thread Evan Priestley
This is called a nonce[1], and the method you've described will give you marginally less awful security than submitting a plaintext password or an unadulterated hash of the password, but, obviously, is in no way a substitute for real SSL. For instance, if this password puts the session in

[PHP] Pause script

2006-03-27 Thread Pieter du Toit
Hi I want to pause script in php, in a while loop, so that a key must be pressed or a button must be clicked for the script to continue. Is this possible, i had a look at some functions, but it is not what i want. Can someone point me in a direction to search or maybe solve this problem for

RE: [PHP] Pause script

2006-03-27 Thread Jay Blanchard
[snip] I want to pause script in php, in a while loop, so that a key must be pressed or a button must be clicked for the script to continue. Is this possible, i had a look at some functions, but it is not what i want. Can someone point me in a direction to search or maybe solve this problem

Re: [PHP] Pause script

2006-03-27 Thread tedd
Hi I want to pause script in php, in a while loop, so that a key must be pressed or a button must be clicked for the script to continue. Is this possible, i had a look at some functions, but it is not what i want. Can someone point me in a direction to search or maybe solve this problem for

Re: [PHP] Pause script

2006-03-27 Thread Richard Davey
On 27 Mar 2006, at 17:04, Pieter du Toit wrote: I want to pause script in php, in a while loop, so that a key must be pressed or a button must be clicked for the script to continue. Is this possible, i had a look at some functions, but it is not what i want. You mean when the script is

[PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Jonathan Duncan
I posted this on the Zend.com forums but have not been able to get a response yet. So I decided to ask the people that know. I do not understand the need for an optimizer. What exactly is Zend Optimizer optimizing? If it is changing my code, then how about if I just learn how to code

[PHP] phpmailer subject line wierdness

2006-03-27 Thread Mark Steudel
I know that there is a phpmailer list, but it's pretty low volume, so I hoped you all might have some ideas on this. If I set the subject line for a mail like: $mail-Subject = 'Jconnect Passover Registration Confirmation'; The email never send, but if I stick a letter between O and N it goes

Re: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Alister Bulman
On 27/03/06, Jonathan Duncan [EMAIL PROTECTED] wrote: I posted this on the Zend.com forums but have not been able to get a response yet. So I decided to ask the people that know. I do not understand the need for an optimizer. What exactly is Zend Optimizer optimizing? If it is changing my

Re: [PHP] Irritating [EMAIL PROTECTED]

2006-03-27 Thread Kevin Kinsey
Ryan A wrote: Anybody else getting these annoying auto responses from [EMAIL PROTECTED] ? If yes, can someone email the list mod to delete his account or something, or email me back the list mods email and I'll do it myself. Thanks, Ryan What, no killfile? If we bug the mods for every

Re: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Richard Davey
On 27 Mar 2006, at 17:36, Jonathan Duncan wrote: I posted this on the Zend.com forums but have not been able to get a response yet. So I decided to ask the people that know. I do not understand the need for an optimizer. What exactly is Zend Optimizer optimizing? If it is changing my

Re: [PHP] Irritating [EMAIL PROTECTED]

2006-03-27 Thread Ryan A
On 3/27/2006 7:04:52 PM, Kevin Kinsey ([EMAIL PROTECTED]) wrote: Ryan A wrote: Anybody else getting these annoying auto responses from [EMAIL PROTECTED] com ? If yes, can someone email the list mod to delete his account or something, or email me back the list mods email and I'll do it

RE: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread ray . hauge
In short, Zend Optimise has *nothing* at all to do with 'making dumb programmers code better' I'm afraid. Cheers, Rich I'm not completely sure on this, and if it is true I don't have the links, but I think it does do one thing to make your code better. That is to use pre-increments

Re: [PHP] cron via cPanel

2006-03-27 Thread John Nichel
tedd wrote: Hi gang: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? Same way you run any other app. If it's in your path, you can just type the filename of the app, if not, give it the path... phpscript.php

[PHP] where php at?

2006-03-27 Thread tedd
Hi: Related to my cron problem -- where do you get the path to php? My phpinfo() says: http://www.xn--ovg.com/info.php reports it as: /usr/lib/php:/usr/local/lib/php That can't be right, right? Or am I reading this wrong? In any event, where's it at? Thanks. tedd --

Re: [PHP] cron via cPanel

2006-03-27 Thread tedd
tedd wrote: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? John answered: Same way you run any other app. If it's in your path, you can just type the filename of the app, if not, give it the path... phpscript.php

Re: [PHP] where php at?

2006-03-27 Thread Warren Vail
Looks like you have a unix machine, if you have a shell account you may be able to use the command; which php to identify it's path. hope this helps, Warren Vail At 10:45 AM 3/27/2006, tedd wrote: Hi: Related to my cron problem -- where do you get the path to php? My phpinfo() says:

Re: [PHP] where php at?

2006-03-27 Thread John Meyer
tedd wrote: Hi: Related to my cron problem -- where do you get the path to php? My phpinfo() says: http://www.xn--ovg.com/info.php reports it as: /usr/lib/php:/usr/local/lib/php If you're on a linux box, have you tried which php? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
I have done the following to my code hoping that the fix would work $query1 = mysql_query(SELECT months FROM Month WHERE m_id = month(curdate())); //echo $query1 . br /; $query1_data = mysql_fetch_assoc($query1); echo $query1_data . br /; returns Array (The word that is) switch

Re: [PHP] where php at?

2006-03-27 Thread tedd
Warren Vail said: Looks like you have a unix machine, if you have a shell account you may be able to use the command; which php to identify it's path. John Meyer said: If you're on a linux box, have you tried which php? Where do I type in which php? I'm dealing with a host account and

RE: [PHP] where php at?

2006-03-27 Thread Jay Blanchard
[snip] Where do I type in which php? [/snip] At the command line on the host. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] where php at?

2006-03-27 Thread tedd
At 1:19 PM -0600 3/27/06, Jay Blanchard wrote: [snip] Where do I type in which php? [/snip] At the command line on the host. Aarrrg -- no disrespect meant. I'm totally and absolutely clueless and frustrated. It must be my age because I haven't seen a command line since my Apple][ days

Re: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Richard Davey
On 27 Mar 2006, at 19:10, [EMAIL PROTECTED] wrote: In short, Zend Optimise has *nothing* at all to do with 'making dumb programmers code better' I'm afraid. I'm not completely sure on this, and if it is true I don't have the links, but I think it does do one thing to make your code better.

RE: [PHP] where php at?

2006-03-27 Thread Jay Blanchard
[snip] Aarrrg -- no disrespect meant. I'm totally and absolutely clueless and frustrated. It must be my age because I haven't seen a command line since my Apple][ days -- let alone one while doing web work. I'm sitting in front of my computer accessing my remote web site via ftp (GoLive)

Re: [PHP] where php at?

2006-03-27 Thread Dusty Bin
tedd wrote: At 1:19 PM -0600 3/27/06, Jay Blanchard wrote: [snip] Where do I type in which php? [/snip] At the command line on the host. Aarrrg -- no disrespect meant. I'm totally and absolutely clueless and frustrated. It must be my age because I haven't seen a command line since

Re: [PHP] where php at?

2006-03-27 Thread Warren Vail
ah, perhaps you don't have a shell account. With a shell account you would telnet to the server and enter the which command on the command line right after your prompt, once you were logged on. try creating a file called which.php have it contain the following; ?php $result = exec(which

RE: [PHP] where php at?

2006-03-27 Thread tedd
Dagnabit! Contact your host provider, they will tell you. 10 Been there 20 Done that 30 GOTO 10 Thanks anyway. tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Brady Mitchell
I have done the following to my code hoping that the fix would work $query1 = mysql_query(SELECT months FROM Month WHERE m_id = month(curdate())); //echo $query1 . br /; $query1_data = mysql_fetch_assoc($query1); echo $query1_data . br /; returns Array (The word that is)

Re: [PHP] where php at?

2006-03-27 Thread tedd
I know nothing of cpanel, but if you can use cpanel to execute your script, can you not use cpanel to say 'which php'?? HTH... Dusty Dusty: Nope, it doesn't appear to work that way. Everything I've read thus far is that you must somehow enter the exact command you would via a command line

Re: [PHP] where php at?

2006-03-27 Thread Joe Henry
On Monday 27 March 2006 12:31 pm, tedd wrote: At 1:19 PM -0600 3/27/06, Jay Blanchard wrote: [snip] Where do I type in which php? [/snip] At the command line on the host. Aarrrg -- no disrespect meant. I'm totally and absolutely clueless and frustrated. It must be my age because I

RE: [PHP] where php at?

2006-03-27 Thread Jim Moseby
Dagnabit! Contact your host provider, they will tell you. 10 Been there 20 Done that 30 GOTO 10 Thanks anyway. ?PHP if(!$host_provider_instructions){ echo If your host provider can't tell you how to connect to _their_ server, what makes you think someone in php_general will be

Re: [PHP] where php at?

2006-03-27 Thread Kevin Kinsey
tedd wrote: Warren Vail said: Looks like you have a unix machine, if you have a shell account you may be able to use the command; which php to identify it's path. John Meyer said: If you're on a linux box, have you tried which php? Where do I type in which php? I'm dealing with a

Re: [PHP] where php at?

2006-03-27 Thread Richard Davey
On 27 Mar 2006, at 20:47, tedd wrote: Dagnabit! Contact your host provider, they will tell you. 10 Been there 20 Done that 30 GOTO 10 40 Gosub 'get decent web host' Cheers, Rich -- http://www.corephp.co.uk Zend Certified Engineer PHP Development Services -- PHP General Mailing List

Re: [PHP] where php at?

2006-03-27 Thread tedd
try creating a file called which.php have it contain the following; ?php $result = exec(which php); echo $result; ? Upload it to your website and execute it in your browser. I uploaded it to my RedHat Linux server and it showed the following; /usr/local/bin/php Warren: Bingo -- that

Re: [PHP] where php at?

2006-03-27 Thread Kevin Kinsey
Jay Blanchard wrote: [snip] Aarrrg -- no disrespect meant. I'm totally and absolutely clueless and frustrated. It must be my age because I haven't seen a command line since my Apple][ days -- let alone one while doing web work. I'm sitting in front of my computer accessing my remote

Re: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Kevin Kinsey
Richard Davey wrote: On 27 Mar 2006, at 19:10, [EMAIL PROTECTED] wrote: In short, Zend Optimise has *nothing* at all to do with 'making dumb programmers code better' I'm afraid. I'm not completely sure on this, and if it is true I don't have the links, but I think it does do one thing to

RE: [PHP] where php at?

2006-03-27 Thread tedd
At 2:50 PM -0500 3/27/06, Jim Moseby wrote: Dagnabit! Contact your host provider, they will tell you. 10 Been there 20 Done that 30 GOTO 10 Thanks anyway. ?PHP if(!$host_provider_instructions){ echo If your host provider can't tell you how to connect to _their_ server, what

[PHP] --enable-radius, not found

2006-03-27 Thread Mike Milano
I'm trying to compile PHP with radius enabled. I have the pecl source and I can use other pecl extensions just fine. When I type: cscript /nologo configure.js --help, I do not see any option for radius. I've also tried to compile the dll by itself, but it is simply not found. My system is

RE: [PHP] where php at?

2006-03-27 Thread Jay Blanchard
[snip] /usr/local/bin/php Now, to figure out what command I need to run a php script from there. [/snip] http://www.unixgeeks.org/security/newbie/unix/cron-1.html Now, you can do this one of two ways 17 8 * * * /usr/local/bin/php /path/to/your/script.php Or you can add a bash line to the

RE: [PHP] where php at?

2006-03-27 Thread tedd
At 2:50 PM -0500 3/27/06, Jim Moseby wrote: Dagnabit! Contact your host provider, they will tell you. 10 Been there 20 Done that 30 GOTO 10 Thanks anyway. ?PHP if(!$host_provider_instructions){ echo If your host provider can't tell you how to connect to _their_ server, what

RE: [PHP] where php at?

2006-03-27 Thread Jay Blanchard
[snip] http://www.unixgeeks.org/security/newbie/unix/cron-1.html Now, you can do this one of two ways 17 8 * * * /usr/local/bin/php /path/to/your/script.php Or you can add a bash line to the top of your file and then make sure to have one blank line after the bash line #!/usr/local/bin/php

RE: [PHP] where php at?

2006-03-27 Thread Ryan A
[/clip] http://www.unixgeeks.org/security/newbie/unix/cron-1.html Now, you can do this one of two ways 17 8 * * * /usr/local/bin/php /path/to/your/script.php [/clip] Now, I might be coming in a bit late here...but I have worked with cpanel and using their simplified version of setting

Re: [PHP] where php at?

2006-03-27 Thread Rory Browne
Jim Moseby: On second thought, I'm really not sorry to have brother you -- you don't have to reply to any request for help on this list. Two-Faced SOB - One minute you're sorry, the next you're not. Make up your gd Mind. Furthermore, I'm not asking you to provide me with how to connect

Re: [PHP] where php at?

2006-03-27 Thread Anthony Ettinger
On 3/27/06, Rory Browne [EMAIL PROTECTED] wrote: Jim Moseby: On second thought, I'm really not sorry to have brother you -- you don't have to reply to any request for help on this list. Two-Faced SOB - One minute you're sorry, the next you're not. Make up your gd Mind.

Re: [PHP] where php at?

2006-03-27 Thread Ryan A
Two-Faced SOB - One minute you're sorry, the next you're not. Make up your gd Mind. I'll add more to this tomorrow morning when I'm sober. DAMN! I love this listother than two people on the list I think everyone else is gonna have a smile on their faces. My $0.2 :-p -- PHP

RE: [PHP] where php at?

2006-03-27 Thread Ryan A
Ooops, and lets not forget this one: curl http://www.yoursite.com/path/to/script/yourscript.php you can put that in your cron job by going to cpanel its a long way round but sometimes it can be usefulyou should have CURL installed of course. The good thing about the above is it does not

Re: [PHP] where php at?

2006-03-27 Thread Jon Anderson
Anthony Ettinger wrote: In a related question, I have php5 installed on my box (works fine with Apache2)...but I can't seem to find php5 on the command line. Is there a separate package I need (fyi: I'm using Gentoo). Enable the cli USE flag in either /etc/make.conf or /etc/portage/package.use

Re: [PHP] protecting passwords when SSL is not available

2006-03-27 Thread Satyam
Thanks Evan, that's a new word I didn't know about, 'nonce'. Let me see if I got your objection right and may answer it. The session_id() is no secret, the server sends it to the client. The client cannot and does not send the session_id() used to hash the password back to the server, it

Re: [PHP] where php at?

2006-03-27 Thread Anthony Ettinger
On 3/27/06, Ryan A [EMAIL PROTECTED] wrote: Ooops, and lets not forget this one: curl http://www.yoursite.com/path/to/script/yourscript.php you can put that in your cron job by going to cpanel its a long way round but sometimes it can be usefulyou should have CURL installed of

Re: [PHP] where php at?

2006-03-27 Thread Warren Vail
I believe the command portion of your chron entry is /usr/local/bin/php /full/path/to/myscript.php (separated by a space) My Cpanel allows two methods scheduling (updating cron.tab file), if you are using the unix option, you have the ability to schedule the execution at a certain time of

Re: [PHP] cron via cPanel

2006-03-27 Thread John Nichel
tedd wrote: tedd wrote: In cPanel one can schedule cron jobs. In the command line box, what command do you enter to run a php script? John answered: Same way you run any other app. If it's in your path, you can just type the filename of the app, if not, give it the path... phpscript.php

Re: [PHP] where php at?

2006-03-27 Thread Anthony Ettinger
On 3/27/06, Anthony Ettinger [EMAIL PROTECTED] wrote: On 3/27/06, Ryan A [EMAIL PROTECTED] wrote: Ooops, and lets not forget this one: curl http://www.yoursite.com/path/to/script/yourscript.php you can put that in your cron job by going to cpanel its a long way round but sometimes

[PHP] $i vs. $r

2006-03-27 Thread Kevin Murphy
Does anyone have a clue why using this code doesn't work: $i = 0; while ($row = mysql_fetch_array($result)) { echo (Blah blah blah); $i++; } but this code does? $r = 0; while ($row = mysql_fetch_array($result)) {

RE: [PHP] $i vs. $r

2006-03-27 Thread Jay Blanchard
[snip] Does anyone have a clue why using this code doesn't work: $i = 0; while ($row = mysql_fetch_array($result)) { echo (Blah blah blah); $i++; } but this code does? $r = 0; while ($row = mysql_fetch_array($result)) {

Re: [PHP] protecting passwords when SSL is not available

2006-03-27 Thread Evan Priestley
The client cannot and does not send the session_id() used to hash the password back to the server, it does not need to, the client got it from the server. It does send the session ID back though, because that's how the user maintains their session across requests. For simplicity, let the

[PHP] file_get_contents / url wrappers

2006-03-27 Thread Mike Dunlop
Hi gang, If i am trying to read the contents of url into a string and I am getting 403 errors yet the page will load perfectly through a normal browser, do u think the site is looking at the http request headers and determining it's not a browser and thus blocking access? If something

RE: [PHP] file_get_contents / url wrappers

2006-03-27 Thread Shaunak Kashyap
It is possible that the site is rejecting the script since it is not a browser. You can fake a browser by using the User-Agent header. I am also going to take the liberty to suggest an alternate means to the same end. If you are on a *nix system you can run the wget command to connect to the site

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
I finally got the function to work. However I have a problem with another function. It is almost exactly like the origional function but in this function I am determining the days instead of the month. I made the same changes to the days function as I did to the month function. However no

[PHP] PHP|FLASH hit counter

2006-03-27 Thread Tom Haschenburger
Got this from a tutorial and I am not able to get this to work. Even when I download the finished files from the site I can't get it to work. It definitely does its job on bringing in the variable but, it never increments any higher from zero. It seems as though I maybe have a problem with

Re: [PHP] $i vs. $r

2006-03-27 Thread Jasper Bryant-Greene
Kevin Murphy wrote: Does anyone have a clue why using this code doesn't work: Please specify what doesn't work means in this case :) $i = 0; while ($row = mysql_fetch_array($result)) { echo (Blah blah blah); $i++; } $r = 0; while ($row =

[PHP] Text encoding

2006-03-27 Thread David . Martinez
Hi everybody. I'm currently using a PHP script to download messages through a POP3 connection (with fsockopen()). Messages are pooled and classified into my application (a help desk manager). As long as we use a lot of accents in spanish: á, é, í, ó, ú, ñ; those characters appears as =F1, =E9,

Re: [PHP] $i vs. $r

2006-03-27 Thread Kevin Murphy
Hello all I simplified the code a bit, and I am guessing that it was too much. Below is the complete code that works fine. The weird part is, the part that I have the question on, is if I change $r to $i, it doesn't work anymore. $i doesn't count up as it should and instead gives me

Re: [PHP] $i vs. $r

2006-03-27 Thread Philip Hallstrom
I simplified the code a bit, and I am guessing that it was too much. Below is the complete code that works fine. The weird part is, the part that I have the question on, is if I change $r to $i, it doesn't work anymore. $i doesn't count up as it should and instead gives me some unpredictible

RE: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Brady Mitchell
-Original Message- I finally got the function to work. However I have a problem with another function. It is almost exactly like the origional function but in this function I am determining the days instead of the month. I made the same changes to the days function as I did to the

Re: [PHP] Why Should I Use Zend Optimizer?

2006-03-27 Thread Ray Hauge
On Monday 27 March 2006 12:40, Richard Davey wrote: On 27 Mar 2006, at 19:10, [EMAIL PROTECTED] wrote: In short, Zend Optimise has *nothing* at all to do with 'making dumb programmers code better' I'm afraid. I'm not completely sure on this, and if it is true I don't have the links, but

Re: [PHP] phpmailer subject line wierdness

2006-03-27 Thread Chris
Mark Steudel wrote: I know that there is a phpmailer list, but it's pretty low volume, so I hoped you all might have some ideas on this. If I set the subject line for a mail like: $mail-Subject = 'Jconnect Passover Registration Confirmation'; The email never send, but if I stick a letter

[PHP] word matrix

2006-03-27 Thread Mike Dunlop
i have an array of various words and am looking to create a result array of every possible combination of words from the orig array. I'm not sure how to accomplish this elegantly within a for loop. Anyone have any ideas? Thanks - Mike D

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
according to my SQL the month name ois going to be returned not the month number. m_id is the number equivlent to the month. months is the full name of the month. In my month method I did not change the case values to the month number and the function returns correctly. All I had to do was add

Re: [PHP] Text encoding

2006-03-27 Thread tedd
At 5:47 PM -0600 3/27/06, [EMAIL PROTECTED] wrote: Hi everybody. I'm currently using a PHP script to download messages through a POP3 connection (with fsockopen()). Messages are pooled and classified into my application (a help desk manager). As long as we use a lot of accents in spanish: á, é,

Re: [PHP] Text encoding

2006-03-27 Thread tedd
At 5:47 PM -0600 3/27/06, [EMAIL PROTECTED] wrote: Hi everybody. I'm currently using a PHP script to download messages through a POP3 connection (with fsockopen()). Messages are pooled and classified into my application (a help desk manager). As long as we use a lot of accents in spanish: á, é,

RE: [PHP] where php at?

2006-03-27 Thread tedd
At 11:26 PM +0200 3/27/06, Ryan A wrote: Ooops, and lets not forget this one: curl http://www.yoursite.com/path/to/script/yourscript.php you can put that in your cron job by going to cpanel its a long way round but sometimes it can be usefulyou should have CURL installed of course. The

Re: [PHP] where php at?

2006-03-27 Thread Chris
tedd wrote: At 11:26 PM +0200 3/27/06, Ryan A wrote: Ooops, and lets not forget this one: curl http://www.yoursite.com/path/to/script/yourscript.php you can put that in your cron job by going to cpanel its a long way round but sometimes it can be usefulyou should have CURL installed

Re: [PHP] --enable-radius, not found

2006-03-27 Thread Chris
Mike Milano wrote: I'm trying to compile PHP with radius enabled. I have the pecl source and I can use other pecl extensions just fine. When I type: cscript /nologo configure.js --help, I do not see any option for radius. I've also tried to compile the dll by itself, but it is simply not

Re: [PHP] word matrix

2006-03-27 Thread Chris
Mike Dunlop wrote: i have an array of various words and am looking to create a result array of every possible combination of words from the orig array. I'm not sure how to accomplish this elegantly within a for loop. Anyone have any ideas? Could you post a sample of what you have and what

Re: [PHP] where php at?

2006-03-27 Thread tedd
At 12:45 PM +1100 3/28/06, Chris wrote: tedd wrote: At 11:26 PM +0200 3/27/06, Ryan A wrote: Ooops, and lets not forget this one: curl http://www.yoursite.com/path/to/script/yourscript.php you can put that in your cron job by going to cpanel its a long way round but sometimes it can be

Re: [PHP] PHP|FLASH hit counter

2006-03-27 Thread Chris
Tom Haschenburger wrote: Got this from a tutorial and I am not able to get this to work. Even when I download the finished files from the site I can't get it to work. It definitely does its job on bringing in the variable but, it never increments any higher from zero. It seems as though I

Re: [PHP] where php at?

2006-03-27 Thread Chris
tedd wrote: At 12:45 PM +1100 3/28/06, Chris wrote: tedd wrote: At 11:26 PM +0200 3/27/06, Ryan A wrote: Ooops, and lets not forget this one: curl http://www.yoursite.com/path/to/script/yourscript.php you can put that in your cron job by going to cpanel its a long way round but

  1   2   >