RE: [PHP] Will this work right?

2003-06-13 Thread PHP4 Emailer
./PARTIAL SNIP/. >>converting number of minutes into /hours # of mins in an hour = 60 /days # of minutes in a day = 1440 /weeks # of minutes in a week = 10080 /monthes # of minutes in a month Feb non leap= 282240

[PHP] Re: Zend Optimizer not active?

2003-06-13 Thread Steve Yates
Ah, how clear things are afterwards. :) I found out my problem was that PHP was looking in the "wrong" folder for php.ini, and it apparently fails silently, taking the default settings instead. - Steve Yates - A chicken is just an egg's way of continuing the species. ~ Taglines by Ta

Re: [PHP] which is quicker? XML or database?

2003-06-13 Thread John Hicks
Hi Justin-- I've been wrestling with a similar problem. You say: > I'm considering: > > a) storing this data in a MySQL table (a fairly simple > query) b) storing this data in a pseudo XML format like: > > 24 > Justin French > [EMAIL PROTECTED] > 2003-11-28 > This is my intro > This is my text an

Re: [PHP] AOL and PHP

2003-06-13 Thread Leif K-Brooks
Most likely, you're using some HTML that AOL doesn't like. It's definitley a client-side issue, in any case. rml wrote: I have recently created a site that has some PHP in it. It works fine in all browsers except AOL. I can see some of the PHP page in AOL except the one that fetches informati

Re: [PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
Unfortunatley, an equation to do what this script does would be as hard to come up with, and as likely not to work. That's why I want a second (human) opinion. PHP4 Emailer wrote: I'm gonna go out on a limb here, but isn't that why the "human brain" made calculators? ;) Good luck with the but

RE: [PHP] Will this work right?

2003-06-13 Thread PHP4 Emailer
I'm gonna go out on a limb here, but isn't that why the "human brain" made calculators? ;) Good luck with the buttons, if you need help let me know. :} -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:40 PM To: [EMAIL PROTECTED] Cc: [EMAIL PR

[PHP] AOL and PHP

2003-06-13 Thread rml
I have recently created a site that has some PHP in it. It works fine in all browsers except AOL. I can see some of the PHP page in AOL except the one that fetches information from MySQL database. I also host my own server for this site. Maybe this is a server setting or securtity issue. Anyon

Re: [PHP] extracting text from text file to be used in PHP

2003-06-13 Thread Jeff Harris
On Jun 13, 2003, "Lance Q" claimed that: |Hello all, | |One of the sites I host is a radio station. Their computer has been setup to |automagically upload the current song and the next song to their web site |via FTP. Unfortunately, the format it comes in is pretty awful. (See below). | |The CURRE

Re: [PHP] which is quicker? pseudo XML, or database?

2003-06-13 Thread Justin French
Good points. Justin on 14/06/03 1:52 PM, Robert Cummings ([EMAIL PROTECTED]) wrote: > I you don't expect to do much with the data then I would recommend using an > SQL table since then you can easily search on all of the fields. Later if you > find you have more needs then conversion to XML wil

[PHP] Re: which is quicker? pseudo XML, or database?

2003-06-13 Thread Manuel Lemos
Hello, On 06/14/2003 12:30 AM, Justin French wrote: I'm looking at a site where there will be a lot of articles, all of which will be added once, and rarely edited again... Let's say each article consisted of 6 data types: - id - author - authorEmail - datePublished - introduct

Re: [PHP] Translate easy the language of the web site

2003-06-13 Thread John Hicks
On Friday 13 June 2003 03:00 pm, you wrote: > On Saturday 14 June 2003 02:19, Jacob Marble wrote: > > Amen; machine-translators are no good for something > > that you don't want confused. > > ie- english "season" could be "sazon" or "estacion" in > > Spanish, which mean two different things. > > Ne

Re: [PHP] Saving

2003-06-13 Thread Leif K-Brooks
Use the optional second argument to imagejpeg(). www.php.net/imagejpeg Monil Chheda wrote: Can any one guide me as to how can I save dynamically generated .JPEG images on the server ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Foreach loop with empty values

2003-06-13 Thread CDitty
Got it fixed. Never mind. Thanks At 10:49 PM 6/13/2003, CDitty wrote: I have a foreach loop in a while loop that retrieves information from my database. The foreach loop works fine if there is data in the database for that loop. But if nothing is found in the database, I get a "Invalid argu

[PHP] Saving

2003-06-13 Thread Monil Chheda
Hi, Can any one guide me as to how can I save dynamically generated .JPEG images on the server ? I would be very grateful... Thanks a tonne... = Best Regards, Monil Chheda(INDIA) http://domains.eliteral.com === === _

Re: [PHP] which is quicker? pseudo XML, or database?

2003-06-13 Thread Robert Cummings
I you don't expect to do much with the data then I would recommend using an SQL table since then you can easily search on all of the fields. Later if you find you have more needs then conversion to XML will be trivial. Regardless of which route you take if speed is an issue you can always cache eit

[PHP] Foreach loop with empty values

2003-06-13 Thread CDitty
I have a foreach loop in a while loop that retrieves information from my database. The foreach loop works fine if there is data in the database for that loop. But if nothing is found in the database, I get a "Invalid argument supplied" error. Can anyone suggest a fix for this? The foreach lo

[PHP] which is quicker? pseudo XML, or database?

2003-06-13 Thread Justin French
Hi all, I'm looking at a site where there will be a lot of articles, all of which will be added once, and rarely edited again... Let's say each article consisted of 6 data types: - id - author - authorEmail - datePublished - introduction - bodyText I'm considering: a) st

Re: [PHP] Question on SELECT

2003-06-13 Thread Leif K-Brooks
$query = 'select * from table where fieldname in(\''. implode('\',\'',$myArray) . '\')'; Roy W wrote: I have a bunch of variables stuffed in myArray() I want to run a MySQL SELECT statement ($query=" ..") where it will access only those records in the database "WHERE" table.fieldname is fou

[PHP] Question on SELECT

2003-06-13 Thread Roy W
I have a bunch of variables stuffed in myArray() I want to run a MySQL SELECT statement ($query=" ..") where it will access only those records in the database "WHERE" table.fieldname is found in myArray Is there a simple one liner? Or do I have to "loop" it through (kinda nasty as you can

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Lars Torben Wilson
On Fri, 2003-06-13 at 16:28, Daniel J. Rychlik wrote: > I read the document 4 times. I understand how it works and now Im excited > about applying this to my application, however Im running into a problem. > Im recieving an error on my page. > > I have this in my form. > /> > > and when running

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread John Nichel
Change error reporting in the php.ini to NOT include notices. Echo out the variable echo ( $_POST['fname'] ); All the notice is telling you is that $HTTP_POST_VARS['fname'] doesn't exist, which it isn't if you haven't posted it to this page. Daniel J. Rychlik wrote: I read the document 4 t

RE: [PHP] Variable variables question?

2003-06-13 Thread Douglas Douglas
Thanks for the answer Mike. Thanks for the explanation, but I think this is a different case, isn't? I'm not trying to do this ${$_POST}, I'm trying to make this string $_POST. And I have another question. Why does this code work? '; print_r($_POST); echo ''; $method = 'POST'; $data = ${'_'.$met

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Daniel J. Rychlik
I tried to echo it as well, I recieved the same message. - Original Message - From: "Ralph" <[EMAIL PROTECTED]> To: "'Daniel J. Rychlik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 6:50 PM Subject: RE: [PHP] $_SESSION as $key=>$value > I think this may be becau

RE: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Ralph
I think this may be because you did not include echo in: value=" " so try this: mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:28 PM To: Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] $_SESSION as $key=>$value I read the document 4 times. I understand how it works and now Im excited abou

[PHP] extracting text from text file to be used in PHP

2003-06-13 Thread Lance Q
Hello all, One of the sites I host is a radio station. Their computer has been setup to automagically upload the current song and the next song to their web site via FTP. Unfortunately, the format it comes in is pretty awful. (See below). The CURRENT CutID is: 70428 The Type is: MUS The ArtistNam

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Daniel J. Rychlik
I read the document 4 times. I understand how it works and now Im excited about applying this to my application, however Im running into a problem. Im recieving an error on my page. I have this in my form. and when running, I recieve Notice: Undefined index: fname I also used the example from

[PHP] fread has changed functionality...please read

2003-06-13 Thread Bob Silva
Just wanted to let everyone else know so they don't waste days trying to figure it out. When using fread() on just about anything except for a file, it only reads one packet at a time. This means you must fread within a loop to read the bytes you need. You can no longer pass "$length bytes to be r

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread Tim T
YYYEE! Finally - It works!! I used the following: $fp = popen("$mycommand", "w+"); fwrite($fp, $myoutput); Thank you for your assistance. I've been looking at this for 2 days and nothing was coming to mind! Again thank you! Tim "Dvdmandt" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] header() and mozilla - HELP!

2003-06-13 Thread Gerard Samuel
Im assuming you are running mozilla 1.3.x Its not a php issue but a mozilla bug, that I've experienced first hand http://bugzilla.mozilla.org/show_bug.cgi?id=202210 deno vichas wrote: i'm runnig into a random problem of having all the headers being displayed instead on the actual web page in mozi

[PHP] Re: header() and mozilla - HELP!

2003-06-13 Thread DvDmanDT
You could always try header("Location: www.url.com"); (uppercase)... "Deno Vichas" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > i'm runnig into a random problem of having all the headers being > displayed instead on the actual web page in mozilla, Ie doesn't seem to > suffer fro

[PHP] header() and mozilla - HELP!

2003-06-13 Thread deno vichas
i'm runnig into a random problem of having all the headers being displayed instead on the actual web page in mozilla, Ie doesn't seem to suffer from this, when using header("location: www.url.com"); this is happening randomly. has anybody seen this or have a fix? -deno i'm running: php 4.3.

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread DvDmanDT
Ok, last reply from me I think... Must read until I know for sure before I post... http://se.php.net/manual/en/function.proc-open.php seems to be just what you need! "Tim T" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I have a mem var $myoutput I would like to pipe it to the i

Re: [PHP] Pipe $var to a shell command

2003-06-13 Thread Leif K-Brooks
If $myoutput is "foo", it will attempt to get input from a file named "foo". Use "command | $myoutput" instead. Tim T wrote: I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec("command < $myoutput") however this is not quite right. Anybo

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread DvDmanDT
Oh, sorry, I missunderstood you... You want $myoutput to be the programs input, not the output of the program... Hmm... Look into popen(), fputs() and fclose()... "Tim T" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I have a mem var $myoutput I would like to pipe it to the input

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread Bobby Patel
maybe try exec? $instruction = "$myOutput > command "; # for piping (as I recall) I used to do the input from the right, but I don't think that will make a difference exec ($instruction); Bobby exec ("command "Tim T" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a mem var $

[PHP] Re: Pipe $var to a shell command

2003-06-13 Thread DvDmanDT
Like $myoutput=`command`; ? "Tim T" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I have a mem var $myoutput I would like to pipe it to the input of a > shell_exec command. > > I tried shell_exec("command < $myoutput") however this is not quite right. > Anybody have any ideas??

[PHP] Pipe $var to a shell command

2003-06-13 Thread Tim T
I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec("command < $myoutput") however this is not quite right. Anybody have any ideas?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
Already have, and it seems to work fine. Fairly hard to test though, since the human brain has a hard time converting number of minutes into years/monthes/weeks/days/hours/minutes. Alex Earl wrote: Why not just try it? Alex -- The above message is encrypted with double rot13 encoding. An

Re: [PHP] create a chmod'd file

2003-06-13 Thread John Nichel
Matt Palermo wrote: I need this newly created file to have write permissions - chmod 777. First, if you just need to write to it, don't chmod it to 777 (you're giving rwx across the board doing that). Who needs to write to the file? The webserver only? Then set the permissions to 600, assuming

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
What is the umask()? What is that used for? How do I set that up right? Matt -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] create a chmod'd file On Saturday 14 June 2003 03:01, Matt Palermo wr

Re: [PHP] PLEASE STOP SENDING ME MAIL!!! PLEASE UNSUBSCRIBE NOW!!!

2003-06-13 Thread Alex Earl
Read the bottom of the email messages, it tells you how to unsubscribe. Alex > --- gregory landry <[EMAIL PROTECTED]> wrote: >> I figured it out. Yipppee.. >> >> Thanks >> >> -Original Message- >> From: Gregory Landry [mailto:[EMAIL PROTECTED] >> Sent: Friday, June 13, 2003 4:10 PM >

Re: [PHP] Will this work right?

2003-06-13 Thread Alex Earl
> The following function converts minutes to years, monthes, weeks, days, > hours, minutes. For instance, 61 minutes would become "1 hour, one > minute". Before I use it, I want to make sure there are no stupid > mistakes. I can't find any, can any of you? > function min2ymwdhm($min){ > $a =

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
How do I get the script to "own" the file? Are there special commands needed for this? Matt -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] create a chmod'd file [snip] It just d

[PHP] Will this work right?

2003-06-13 Thread Leif K-Brooks
The following function converts minutes to years, monthes, weeks, days, hours, minutes. For instance, 61 minutes would become "1 hour, one minute". Before I use it, I want to make sure there are no stupid mistakes. I can't find any, can any of you? function min2ymwdhm($min){ $a = array();

[PHP] PLEASE STOP SENDING ME MAIL!!! PLEASE UNSUBSCRIBE NOW!!!

2003-06-13 Thread Ruth Copland
--- gregory landry <[EMAIL PROTECTED]> wrote: > I figured it out. Yipppee.. > > Thanks > > -Original Message- > From: Gregory Landry [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 4:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP] forms question -- simple > > > Hi all, >

RE: [PHP] forms question -- simple

2003-06-13 Thread gregory landry
I figured it out. Yipppee.. Thanks -Original Message- From: Gregory Landry [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:10 PM To: [EMAIL PROTECTED] Subject: [PHP] forms question -- simple Hi all, I'm new to the list and to PHP. I haven't bought a book as of yet but I'v

[PHP] forms question -- simple

2003-06-13 Thread Gregory Landry
Hi all, I'm new to the list and to PHP. I haven't bought a book as of yet but I've found a number of resources that are getting me through the basics. I am collecting data from a form. I've having no problems collecting the data and printing it out. But... I have a form with check boxes with 4

RE: [PHP] File lsiting exec(ls... using variables.

2003-06-13 Thread Jay Blanchard
[snip] I'm trying to add a variable to the end of a directory listing. This will give me the root directory and show me all the files exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/', $filelist); [/snip] Have you thought about using http://us4.php.net/manual/en/function.opend

[PHP] File lsiting exec(ls... using variables.

2003-06-13 Thread Vernon
I'm trying to add a variable to the end of a directory listing. This will give me the root directory and show me all the files exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/', $filelist); I figured I could do this but it shows me all the files in the root of the site not of th

RE: [PHP] Variable variables question?

2003-06-13 Thread Ford, Mike [LSS]
-Original Message- From: Douglas Douglas To: [EMAIL PROTECTED] To get the superglobal array ($_GET or $_POST), I try to build these strings '_'.$method. I'm sure this part works, PHP builds the string _GET or _POST according to the $method parameter. I use ${'_'.$method} to get the content

[PHP] set_error_handler() with class, method as parameters problem.

2003-06-13 Thread Lukasz Karapuda
This is not exactly a bug report, because i am not sure where problem is. I am using PHP4.3.1 on Win2000/IIS. I am setting a custom error handler through: set_error_handler(array(&$objError, 'handleError')); where $objError is an instance of an error handling class. Then, i trigger a user error

Re: [PHP] stumped on mysql_num_rows

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 01:55, Global I.S. S.A. wrote: > The issue appears to be that no rows are being found with mysql_num_rows > using the SQL LIMIT offset. There should be rows found. Further, all > processing just halts, and no query is shown as per the code here: > > > // RUN THE QUERY TO R

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
[snip] It just doesn't chmod the file. It doesn't produce errors except for later on in the script when it says it can't access the file with write permissions (but it should already be chmod'd by then). Thanks. [/snip] What are the permissions of the script producing the file? Does it have the

[PHP] Re: Zend Optimizer not active?

2003-06-13 Thread Steve Yates
On Fri, 13 Jun 2003 10:38:39 +0200, Marek Kilimajer wrote: >Are the logs saying anything? Or if you run php from command line? Sorry should have made that clear. Apache's error log does not show any reference to PHP or Zend, nor does /var/log/messages. Is there another place I should look? >Fr

Re: [PHP] create a chmod'd file

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 03:01, Matt Palermo wrote: > It just doesn't chmod the file. It doesn't produce errors except for later > on in the script when it says it can't access the file with write > permissions (but it should already be chmod'd by then). Thanks. If chmod() fails I'm pretty sure

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
It just doesn't chmod the file. It doesn't produce errors except for later on in the script when it says it can't access the file with write permissions (but it should already be chmod'd by then). Thanks. Matt - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTE

Re: [PHP] Translate easy the language of the web site

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 02:19, Jacob Marble wrote: > Amen; machine-translators are no good for something that you don't want > confused. > ie- english "season" could be "sazon" or "estacion" in Spanish, which mean > two different things. Never mind translation, "season" in English has more than o

Re: [PHP] create a chmod'd file

2003-06-13 Thread Jason Wong
On Saturday 14 June 2003 02:43, Matt Palermo wrote: > I am using the fopen(), then using fwrite() to write text to it. After > this I am trying this command which doesn't work: > > chmod($filename, 0777); > > But, this doesn't work, and I'm not sure how to go about chmod'ing the file > for these p

Re: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Zak Johnson
On 2003-06-13 14:42-0400, Pushpinder Singh Garcha wrote: > How is variable poisoning possible when using $_POST ?? I always felt > that the php compiler should check to see if the variable was part of > the POST Global array. At least this is is what I thought about the > $_POST global array.

[PHP] ABOUT SOCKETS (HELP!)

2003-06-13 Thread David Elìas Sánchez Vásquez
I know this is a PHP forum, but this is really urgent!! A close friend of mine has got many trouble with this problem while developing a Java chat. Any help would be really appreciated. Thanks David. Problem is as follows: I'm programming an applet java chat but I have a big problem and I do

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
[snip] I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777); But, this doesn't work, and I'm not sure how to go about chmod'ing the file for these permissions so that it can be changed later on. [/snip]

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
I am using the fopen(), then using fwrite() to write text to it. After this I am trying this command which doesn't work: chmod($filename, 0777); But, this doesn't work, and I'm not sure how to go about chmod'ing the file for these permissions so that it can be changed later on. Matt - Orig

Re: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Pushpinder Singh Garcha
On Friday, June 13, 2003, at 02:22 PM, Zak Johnson wrote: $_POST variables are still subject to poisoning; in your case, SQL injection. How is variable poisoning possible when using $_POST ?? I always felt that the php compiler should check to see if the variable was part of the POST Global arr

RE: [PHP] create a chmod'd file

2003-06-13 Thread Jay Blanchard
uh, could it be... http://us3.php.net/manual/en/function.chmod.php -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:36 PM To: [EMAIL PROTECTED] Subject: [PHP] create a chmod'd file I have a script that creates a php file based on user input.

Re: [PHP] create a chmod'd file

2003-06-13 Thread Alex Earl
> I have a script that creates a php file based on user input. I need this > newly created file to have write permissions - chmod 777. How can I have > the script create the file with these permissions already set? Is this > possible? > > Thanks, > > Matt How are you creating the file? fopen()

[PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
I have a script that creates a php file based on user input. I need this newly created file to have write permissions - chmod 777. How can I have the script create the file with these permissions already set? Is this possible? Thanks, Matt

RE: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Jay Blanchard
[snip] $sql1 = "INSERT INTO `contacts` VALUES ( $_POST['company'], $_POST['pri_name'], $_POST['sec_name'], $_POST['assistant_1'], $_PO

Re: [PHP] Stumped @ MySql insert query

2003-06-13 Thread Zak Johnson
On 2003-06-13 14:15-0400, Pushpinder Singh Garcha wrote: > I am trying to execute a simple query using $_POST variables, so > that variable poisoning is not possible. note: I have register_globals > ON on my site. I am getting the error shown below . Please advise ... > as I can't seem to f

Re: [PHP] Translate easy the language of the web site

2003-06-13 Thread Jacob Marble
Amen; machine-translators are no good for something that you don't want confused. ie- english "season" could be "sazon" or "estacion" in Spanish, which mean two different things. Jake "Joel Rees" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hello all mailing-list people, I need

[PHP] Stumped @ MySql insert query

2003-06-13 Thread Pushpinder Singh Garcha
Hello everyone, I am trying to execute a simple query using $_POST variables, so that variable poisoning is not possible. note: I have register_globals ON on my site. I am getting the error shown below . Please advise ... as I can't seem to figure out why ! // connect to the BD/Table et

Re: [PHP] stumped on mysql_num_rows

2003-06-13 Thread Alex Earl
Can you give us the query too? Alex > Hello List, > The issue appears to be that no rows are being found with mysql_num_rows > using the SQL LIMIT offset. There should be rows found. Further, all > processing just halts, and no query is shown as per the code here: > > > // RUN THE QUERY TO RETRI

[PHP] stumped on mysql_num_rows

2003-06-13 Thread Global I.S. S.A.
Hello List, The issue appears to be that no rows are being found with mysql_num_rows using the SQL LIMIT offset. There should be rows found. Further, all processing just halts, and no query is shown as per the code here: // RUN THE QUERY TO RETRIEVE EACH FOUND RECORD $queryResultHandle = mysql_

[PHP] Patch: No input file specified

2003-06-13 Thread Zak Johnson
I run PHP via a simple-minded webserver which sets up some environment variables and then calls my php scripts (which begin with a "#!/usr/local/bin/php" line). My scripts must handle all the headers, including the HTTP status header. My standard included file contains "header($_SERVER['SERVER_PR

RE: [PHP] Redirects in PHP

2003-06-13 Thread Brian S. Drexler
But is this the type of stuff that gets penalized in Search Engines or no? -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:47 PM To: Zak Johnson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Redirects in PHP At 19:00 13.06.2003, Zak Johnso

Re: [PHP] Redirects in PHP

2003-06-13 Thread Ernest E Vogelsinger
At 19:00 13.06.2003, Zak Johnson said: [snip] >This will not solve the OP's problem; the header will still be output >first, and the client will be immediately redirected. I am curious >though; why is everyone suggesting to use JavaScript when the following

RE: [PHP] Redirects in PHP

2003-06-13 Thread Johnny Martinez
You can do the cheesy: This page has moved. Please click this link. heheh J -Original Message- From: Carl Furst [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:43 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Redirects in PHP I can understand the abuse, but

RE: [PHP] Redirects in PHP

2003-06-13 Thread Carl Furst
I can understand the abuse, but this page wouldn't need to be indexed on any search engines really.. but I it's an important consideration. Thanks! Thanks to everyone! Carl. -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:35 PM To: Zak Johnson;

RE: [PHP] Redirects in PHP

2003-06-13 Thread Brian S. Drexler
I don't know of any, but is there a "good" alternative? -Original Message- From: Zak Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 1:31 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Redirects in PHP On 2003-06-13 10:34-0600, Michael wrote: > Search engines frown on using me

php-general Digest 13 Jun 2003 17:39:40 -0000 Issue 2115

2003-06-13 Thread php-general-digest-help
php-general Digest 13 Jun 2003 17:39:40 - Issue 2115 Topics (messages 151331 through 151385): Re: Gettnig PHP code out of a DB? 151331 by: Ignatius Teo 151332 by: Ben Houlton 151333 by: Leif K-Brooks Re: How do I capture a POST responce 151334 by: Ralph Re:

Re: [PHP] Redirects in PHP

2003-06-13 Thread Michael
You're absolutely right. Thus, the need for a server-side redirect. You can use meta refresh as long as the time is set to around 10 seconds without being penalized. I guess you could include a message that you are going to be transferred in 10 seconds, then provide a link for the impatient

Re: [PHP] Redirects in PHP

2003-06-13 Thread Zak Johnson
On 2003-06-13 10:34-0600, Michael wrote: > Search engines frown on using meta refresh because of > abuse problems. Some engines won't index the page > period and all of them penalize you at the very least. > While it will work as you described, you're sacrificing > search engine positioning

Re: [PHP] Redirects in PHP

2003-06-13 Thread Michael
Search engines frown on using meta refresh because of abuse problems. Some engines won't index the page period and all of them penalize you at the very least. While it will work as you described, you're sacrificing search engine positioning to use it. You need to weigh the trade-offs Mich

RE: [PHP] General question...

2003-06-13 Thread Ralph
Read the following: http://us2.php.net/fsockopen http://www.zend.com/manual/ref.stream.php -Original Message- From: Jason Paschal [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:48 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] General question... ppl, you're

[PHP] Re: Redirects in PHP

2003-06-13 Thread DvDmanDT
It's like a meta tag... JavaScript version: function deelay(secs) { setTimeout("goto_url()",secs*1000) } function goto_url() { location.href="FILE.PHP" } "Carl Furst" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I want to do one of those redirect pages where a php script prin

Re: [PHP] Redirects in PHP

2003-06-13 Thread Kevin Stone
- Original Message - From: "Zak Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 11:00 AM Subject: Re: [PHP] Redirects in PHP > On 2003-06-13 10:54-0600, Kevin Stone wrote: > > Carl, you can avoid these issues by using output buffering allowing you to > >

Re: [PHP] Redirects in PHP

2003-06-13 Thread Wendell Brown
On Fri, 13 Jun 2003 10:54:39 -0600, Kevin Stone wrote: >Javascript.. bah humbug. :) > >Carl, you can avoid these issues by using output buffering allowing you to >call header() whever you want in your script. But he doesn't get to see the printed info - so it's basically the same difference. I

Re: [PHP] Redirects in PHP

2003-06-13 Thread Zak Johnson
On 2003-06-13 10:54-0600, Kevin Stone wrote: > Carl, you can avoid these issues by using output buffering allowing you to > call header() whever you want in your script. This will not solve the OP's problem; the header will still be output first, and the client will be immediately redirected. I a

Re: [PHP] Redirects in PHP

2003-06-13 Thread Kevin Stone
Javascript.. bah humbug. :) Carl, you can avoid these issues by using output buffering allowing you to call header() whever you want in your script. - Kevin - Original Message - From: "Johnny Martinez" <[EMAIL PROTECTED]> To: "'Carl Furst'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>

Re: [PHP] Redirects in PHP

2003-06-13 Thread Michael
I miss the response.redirect in Python and DTML which can be placed anywhere as well. Michael On Friday 13 June 2003 10:28 am, Johnny Martinez wrote: > try a delayed javascript redirect. location header must be in the header > whichprevents your visitor from seeing html...thats irritating. i mis

RE: [PHP] Redirects in PHP

2003-06-13 Thread chris sherwood
Build a JavaScript and have it execute as the document loads... i.e. in the body tag with an onLoad event... the header function in php will not do anything if you have sent output already -Original Message- From: Carl Furst [mailto:[EMAIL PROTECTED] Sent: June 13, 2003 9:23 AM To: [EMAI

RE: [PHP] Redirects in PHP

2003-06-13 Thread Johnny Martinez
try a delayed javascript redirect. location header must be in the header whichprevents your visitor from seeing html...thats irritating. i miss the ASP "response.redirect" which can be placed anywhere J -Original Message- From: Carl Furst [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2

[PHP] It´s a test!!

2003-06-13 Thread Felipe Desiderati
sorry, It´s only a test!!

Re: [PHP] Redirects in PHP

2003-06-13 Thread Wendell Brown
On Fri, 13 Jun 2003 12:22:44 -0400, Carl Furst wrote: >How do you do this? Use JavaScript. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] failed to delete buffer default output handler

2003-06-13 Thread Shawn McKenzie
echo ob_get_level(); returns 1 but the next line: ob_end_clean(); returns Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer default output handler. Any ideas? Thanks! Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Redirects in PHP

2003-06-13 Thread Carl Furst
I want to do one of those redirect pages where a php script prints HTML saying "sorry we're not here, we're redirecting you to the right location" and then after about 2-3 seconds a new location header gets printed and you are transported to the new location. I see this everywhere but don't know ho

[PHP] Re: Access violation for an EXE file

2003-06-13 Thread Ferhat BINGOL
The EXE file has been made by Delphi 6. A command line tool. (as far as I know) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Access violation for an EXE file

2003-06-13 Thread Ferhat BINGOL
Hi, I am using W2000pro. I have Apache 1.3.2 and Mysql 4 servers. I am using PHP 4.2.3. I have an EXE file. When I run it from command line it works perfect. But with PHP system command I got this error message. Untrapped exception :Access violation at address 0049403A in module run.exe'. Read o

[PHP] shopping cart and login system

2003-06-13 Thread electroteque
hi there , i am about to build a shopping cart which will interact with a paypal payment system , the cart will use sessions to store the items and basket information before checking out and posting to the paypal form , what i'd like to know is would the cart require a login system to track users a

Re: [PHP] fgets() problem

2003-06-13 Thread Marek Kilimajer
From the manual: Note: The length parameter became optional in PHP 4.2.0, if omitted, it would assume 1024 as the line length. As of PHP 4.3, omitting length will keep reading from the stream until it reaches the end of the line. If the majority of the lines in the file are all larger than 8KB,

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Marek Kilimajer
Yes, there is a performance hit. And the oddity is (if set globaly in php.ini) you have to stripslashes() everything you want to echo to the browser. So I would recomend you to ini_set() magic_quotes_runtime on right before this process and then turn it off. Petre Agenbag wrote: Thanks, it was

  1   2   >