Re: [PHP] Error Reporting help

2004-01-18 Thread Jason Wong
On Monday 19 January 2004 07:30, Chris Edwards wrote: > It's almost like it parses it before it tries to execute any lines and if a > syntax error occurs, it doesn't execute any of the script. That's right. > The prior version would run up until the syntax error and then give you the > line if e

Re: [PHP] execute php script with crontab

2004-01-18 Thread rudi
Ok, thanks i will check it first. soon i will send mail about it. Jason Wong <[EMAIL PROTECTED]> wrote:On Monday 19 January 2004 12:01, rudi wrote: > 01 * * * * root run-parts /usr/bin/php /var/www/html/cron/testcron.php I believe 'run-parts' takes a directory as argument. Try: 1 * * * * root /

Re: [PHP] POST method for hyperlink

2004-01-18 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > JH> I am curious if there is anyway to take a variable that is passed > JH> via a URL by a reguler text hyperlink Ex: > JH> http://localhost/Calendar/active_layout.php?d=2.1.2004 > JH> and hide it like you would do with the POST method using forms > >

Re: [PHP] Re: Pdfs getting corrupted during upload

2004-01-18 Thread Binay
Yes we are using the same server. PHP - 4.3.2 I m very confused why this is happening with them(client)?? Binay - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 17, 2004 7:35 PM Subject: [PHP] Re: Pdfs getting corrupted durin

Re: [PHP] execute php script with crontab

2004-01-18 Thread Jason Wong
On Monday 19 January 2004 12:01, rudi wrote: > 01 * * * * root run-parts /usr/bin/php /var/www/html/cron/testcron.php I believe 'run-parts' takes a directory as argument. Try: 1 * * * * root /usr/bin/php /var/www/html/cron/testcron.php Also if you have: #!/usr/bin/php as the first line in

Re: [PHP] execute php script with crontab

2004-01-18 Thread Robert Cummings
On Sun, 2004-01-18 at 23:01, rudi wrote: > Hi There, > > I am a new be in php programming ussually i using php under windows, but now i am > migrate to linux. > > I have php script to write time (testcron.php owner apache chmod 775) into file > testcron.txt(owner apache chmod 775), and i want

[PHP] execute php script with crontab

2004-01-18 Thread rudi
Hi There, I am a new be in php programming ussually i using php under windows, but now i am migrate to linux. I have php script to write time (testcron.php owner apache chmod 775) into file testcron.txt(owner apache chmod 775), and i want this script running from crontab. My problem is how t

[PHP] how to check the form filled all

2004-01-18 Thread Sungpill Han
HI, i want to check if the user filled the all inputs in the form. So, I checked NULL and "" with this function in the post receiving script. --- function is_filled_out() { // test that each variabl has a value foreach($_POST as $key => $value) { if(is_null($value)

[PHP] Report Server

2004-01-18 Thread daniel
Hi there, i was wondering if there was a good report designer/server out there which is open source and runs perfectly on a linux machine connecting to mysql, which can do pdf or excel and maybe charts. There have been too many i have tried out but either dont work or isnt what i wanted. Please let

[PHP] Re: Error Reporting help

2004-01-18 Thread Luke
Are you using output buffering? that will stop it from being displayed (it does on mine, if thre is an error and output buffering, nothing at all shows up) So try turning output buffering off, or at the beggining somewhere put while(@ob_end_flush); -- Luke "Chris Edwards" <[EMAIL PROTECTED]> wro

Re: [PHP] recompiling php

2004-01-18 Thread Brian V Bonini
On Sun, 2004-01-18 at 15:08, John wrote: > ive a problem with php and mysql, and was told to re-compile php. is this > easy?? i got a box with rhl 9 pre-loaded, with php and mysql installed, but > no apache. so i just downloaded the apache binary. php was installed with > rpm i think. to recompile,

Re: [PHP] Error Reporting help

2004-01-18 Thread Chris Edwards
Tried that, thanks, no joy. It's almost like it parses it before it tries to execute any lines and if a syntax error occurs, it doesn't execute any of the script. The prior version would run up until the syntax error and then give you the line if error, which usually meant the syntax error was on

[PHP] Re: Using lists over newsgroup, Problem

2004-01-18 Thread Luke
I'm successfully using Outlook Express news client to view messages and post messages, but i do get postmaster reply emails sometimes saying message sending expired, even though they show up and obviously worked as i can get replys -- Luke "Siamak" <[EMAIL PROTECTED]> wrote in message news:[EMAI

php-general Digest 18 Jan 2004 22:56:50 -0000 Issue 2538

2004-01-18 Thread php-general-digest-help
php-general Digest 18 Jan 2004 22:56:50 - Issue 2538 Topics (messages 174963 through 174980): Re: Is this possible ? 174963 by: Toby Irmer 174964 by: Dave Carrera 174965 by: Dave Carrera 174966 by: Larry Brown 174967 by: DvDmanDT Error Reporting help

Re: [PHP] Please reply as fast as possible..

2004-01-18 Thread Chris W
SASSINC Internet Solutions - Arabic Department wrote: I want to make a PHP page that reads from a mySQL Database.. This page displays two fields for the user : 1- Username. 2- Password. Now in the database there are many columns.. each one has many fields : Username, Password, Serial, Phone No.,

[PHP] Re: Converting PHP code to class

2004-01-18 Thread Manuel Lemos
Hello, On 01/18/2004 05:57 PM, Joe Harman wrote: Just curious if anyone here would be interested in helping me convert my PHP Calendar into a class... I am not to good at it... But I figure if someone would like to do it they could get this nifty calendar program that I made... Nice little trade..

[PHP] migrating OOP ver4 codes to 5

2004-01-18 Thread siamak
Hello, 1- Would someone please tell me if it is possible to run OOP codes written for PHP4 on PHP5 yet? Or we need to change codes? 2- Also what should we do? Continue with developing OOP codes for PHP4 or wait for PHP5 to appear on hosting servers (mostly using redhat distros) and then develop f

[PHP] Using lists over newsgroup, Problem

2004-01-18 Thread siamak
Hello, I have done whatever I could to send messages to newsgroups but messages do not appear in the list (I think server ignores them). I have set a valid email and I am using XanaNews client. I really hate to receive huge amounts of emails in my box from listserver (as I am forced now). Any s

[PHP] recompiling php

2004-01-18 Thread John
ive a problem with php and mysql, and was told to re-compile php. is this easy?? i got a box with rhl 9 pre-loaded, with php and mysql installed, but no apache. so i just downloaded the apache binary. php was installed with rpm i think. to recompile, do ive to uninstall php firs t(u can guess im us

[PHP] Converting PHP code to class

2004-01-18 Thread Joe Harman
Hey, Just curious if anyone here would be interested in helping me convert my PHP Calendar into a class... I am not to good at it... But I figure if someone would like to do it they could get this nifty calendar program that I made... Nice little trade... Let me know and I will forward the code.

RE: [PHP] compare lists

2004-01-18 Thread mayo
thx Richard, wouldn't you know it, you can look for something, can't find it, post a question, and then find it? go figure :-) thx -- gil > -Original Message- > From: Richard Davey [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 18, 2004 1:26 PM > To: mayo > Cc: php-general >

RE: [PHP] compare lists

2004-01-18 Thread mayo
thx Jason I had overlooked a few functions. My bad. strpos() also works. thx, -- gil > -Original Message- > From: Jason Sheets [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 18, 2004 1:15 PM > To: mayo > Subject: Re: [PHP] compare lists > > > mayo wrote: > > >I would li

Re: [PHP] compare lists

2004-01-18 Thread Richard Davey
Hello mayo, Sunday, January 18, 2004, 6:06:41 PM, you wrote: m> I would like to compare strings. I'm using this for my navigation m> IF $title CONTAINS "abc: def" m> Comparing the number of characters in one string with another does not do m> the trick. (strcmp) If I have understood your pseud

Re: [PHP] Error Reporting help

2004-01-18 Thread John W. Holmes
Chris Edwards wrote: My hosting company recently upgraded to PHP 4.3.0. Since doing this I no longer get syntax type errors, from my typo's inside my PHP scripts. These use to come up in my browser when that page was requested and the script run. You probably need to have them turn on display_error

Re: [PHP] Error Reporting help

2004-01-18 Thread Adam i Agnieszka Gasiorowski FNORD
Chris Edwards wrote: [cut] > For example if I code > > echo "This is a syntax error because of the double quote start and the > single quote end '; > > I just get a blank screen. > > I have 14 pages of PHP settings printed out, so for any kind person that can > help, I can respond wit

[PHP] compare lists

2004-01-18 Thread mayo
I would like to compare strings. I'm using this for my navigation PSEUDO-CODE IF $title CONTAINS "abc: def" print TITLE; print SUB1; print SUB2; print SUB3; ELSE print TITLE; Comparing the number of characters in one string with another does not do th

[PHP] Error Reporting help

2004-01-18 Thread Chris Edwards
My hosting company recently upgraded to PHP 4.3.0. Since doing this I no longer get syntax type errors, from my typo's inside my PHP scripts. These use to come up in my browser when that page was requested and the script run. I have spent hours going through the online help, trying to set a number

[PHP] Re: Is this possible ?

2004-01-18 Thread DvDmanDT
Do this: function MyFunc($num=NULL) { if(isset($_POST[var])){ $sql = mysql_query("select * from table_name where field=\"$_POST[var]\" "); $num = mysql_num_rows($sql); // I want to use this result outside this function. $returnsomething ="blah blah"; } return $returnsomething; } $numrows=0;

RE: [PHP] Is this possible ?

2004-01-18 Thread Larry Brown
Toby's solution still holds in this scenario. Actually exactly has you have rem'ed out. You get back two components to the array, first array[0] holds the concatenated string you made with the while loop and the second array[1] holds the total number of result rows from your query. Larry -O

RE: [PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
Hi Again, Fixed it. Took my code inside the function that needed to return two vars / values for use and made it a standard if else statement. Amended other areas and all works as I wanted it. I would still appreciate comments about what I was trying to do with the function approach. Thank you

RE: [PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
Thanks Toby, But I forgot to mention something that makes retuning an array not usable in the context of my needs. As you can see with my ammeded example I am already returning and array. I thought I could cast the result $num into the $GLOBAL array for use later but that dose not seem to work

Re: [PHP] Is this possible ?

2004-01-18 Thread Toby Irmer
One way: hth toby - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 18, 2004 11:22 AM Subject: [PHP] Is this possible ? Hi List, I have a function that makes a call to mysql based on certain vars. ---example Function My

php-general Digest 18 Jan 2004 10:23:07 -0000 Issue 2537

2004-01-18 Thread php-general-digest-help
php-general Digest 18 Jan 2004 10:23:07 - Issue 2537 Topics (messages 174938 through 174962): Re: Thumbnails in database 174938 by: Peter Vertes 174939 by: Toby Irmer 174940 by: Jason Sheets Win32 Getting username from windows 174941 by: Gastovski \(James\)

[PHP] Is this possible ?

2004-01-18 Thread Dave Carrera
Hi List, I have a function that makes a call to mysql based on certain vars. ---example Function MyFunc(){ if(isset($_POST[var])){ $sql = mysql_query("select * from table_name where field=\"$_POST[var]\" "); $returnsomething ="blah blah"; } return $returnsomething; } And that all works

Re: [PHP] Drop down lists

2004-01-18 Thread Toby Irmer
if you say you don't know much, maybe you are looking for something like this ;) hth toby \n"; foreach($options AS $key => $display) { echo " $display\n"; } echo "\n"; } //get users from db $query = " SELECT * FROM users"; $result = mysql_query($query); w

Re: [PHP] Image Header Issues

2004-01-18 Thread Toby Irmer
Hi Larry, of course just having to give up sessions doesn't sound very attractive. I tried adding &img=... to the url that calls the script. Only it didn't help. If you would be so kind as to post your code, maybe I will be able to find my error. If not, I will just have to live without the sessio

Re: [PHP] Drop down lists

2004-01-18 Thread Peter Vertes
Yes it's possible.  I believe there's a way to do it with PEAR also but I've never done it that way before.  I always do: ---     --- Please Choose a Username ---         // retrieve a list of usernames from the DB     $results = mysql_query("SELECT userID, username FROM users")