[PHP] Constants

2004-03-22 Thread Jakes
The bug server looks like its down, so I will just post the bug here, and hopefully someone will spot it PHP version: 5RC1 displayFoo(); ?> The results should display "hello world", but it prints out MY_FOO. Thanks Jakes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] mysql_connect error

2004-03-22 Thread php-general
T, You also need to load the php_mysql rpm (Assuming you loaded via rpm) Till We Meet Again... Clifford W. Hansen Operations Support Developer Aspivia (Pty) Ltd. +27 (0) 11 259-1150 (Switchboard) +27 (0) 11 259-1019 (Fax) +27 (0) 83 761-0240 (Mobile) [EMAIL PROTECTED] (EMail) http://chansen.asp

[PHP] Re: an if statement

2004-03-22 Thread Evgeny Pedya
Hello, Andy! You wrote on Mon, 22 Mar 2004 22:59:02 -0500: AB> was just wondering if the statement: AB> if(!$name || !$comments){ AB> /*whatever here*/ } AB> would be interpreted as : if either $name or $comments doesn't exist AB> then AB> or how would the if statement be?? i need to

[PHP] mysql_connect error

2004-03-22 Thread T UmaShankari
Hello, Here i am facing one problem. i have installed the following in my pc in linux platform. i am getting this error when try to execute file. Can any one tell me why this error due to ? Version : mysql-3.32.41-1 php-4.2.2-17 apache httpd-2.0.40-21 Error : Call to undefined function mysq

[PHP] re: an if statement

2004-03-22 Thread Andy B
> although that'll generally "work", why not use > > if(empty($name) || empty($comments)) > { dosomething(); } > > -- > ---John Holmes... because for some odd reason on any of the versions of php i am writing for (4.0.6-4.1.3) it always fails -- PHP General Mailing List (http://www.php.net/) T

[PHP] Ticketing system

2004-03-22 Thread daniel
Hi there, ok i am asking now, but be assured that I have googled already. I am looking for a good customisable ticketing system in PHP, i had a look at request tracker, but it doesnt look customisable and its in Perl. I am trying to find if there are solutions to what we want before i go and build

[PHP] Unable connect to ORACLE

2004-03-22 Thread Timotius
Hi all, I'm newbie in PHP. I found message when I connect to ORACLE. Here you are : Warning: odbc_connect(): SQL error: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve service name , SQL state 08004 in SQLConnect in c:\program files\apache group\apache\htdocs\connectdb.php on line 2 and

Re: [PHP] an if statement

2004-03-22 Thread John W. Holmes
Andy B wrote: was just wondering if the statement: if(!$name || !$comments){ /*whatever here*/ } would be interpreted as : if either $name or $comments doesn't exist then or how would the if statement be?? i need to check if the $name and $comments are empty/null because both $name and $commen

[PHP] an if statement

2004-03-22 Thread Andy B
was just wondering if the statement: if(!$name || !$comments){ /*whatever here*/ } would be interpreted as : if either $name or $comments doesn't exist then or how would the if statement be?? i need to check if the $name and $comments are empty/null because both $name and $comments are requi

Re: [PHP] PHP5 Release

2004-03-22 Thread Yann Larrivee
RC's should never be used in production area, you can use them to teste the new feautres and your software. Yann On Mon, 2004-03-22 at 20:45, [EMAIL PROTECTED] wrote: > Hi there i noticed RC1 is released, it states not for critical use, does > that mean for development purposes still ? -- PHP

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread trlists
On 22 Mar 2004 Andy B wrote: > so the theory is: if i require that the session be named after the persons > login name there is probably 1 out of 2 million chances that it will mess up > the names and get confused (specially if there are only a few users > allowed)... If the login name is unique

RE: [PHP] SQL Injection check (mysql)

2004-03-22 Thread trlists
On 23 Mar 2004 Michael Rasmussen wrote: > The idea is exactly not to do any queries dynamically generated based on > user input! In the rare cases where this is needed you should not > allow any unparsed input. There are some applications for which queries based on typed user input are rare. B

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Ryan A
Hey John, Yep, this is just for one row as I need to know which file before I force a download. This is for people selling ebooks, MP3s etc I usually use a while loop if I need multiple rows returned. Cheers, -Ryan On 3/23/2004 3:07:14 AM, [EMAIL PROTECTED] wrote: > Ryan A wrote: > > > if(($r =

Re: [PHP] Image Storage

2004-03-22 Thread Michal Migurski
>I am creating a system to allow users to upload images to the site. >Would it be better to store the images in a MySQL table, or having it >save the images to a directory on the server? Anyone have any >suggestions on this? Pros? Cons? Depends on the details of your situation - I've generally pr

[PHP] Image Storage

2004-03-22 Thread Matt Palermo
I am creating a system to allow users to upload images to the site. Would it be better to store the images in a MySQL table, or having it save the images to a directory on the server? Anyone have any suggestions on this? Pros? Cons? Thanks, Matt http://sweetphp.com/ -- PHP General Mailing Lis

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread John W. Holmes
Ryan A wrote: if(($r = mysql_fetch_row($res)) >=1) if($r = mysql_fetch_row($res)) will work fine if you only have one row being returned. If you have more than one that you need to loop through, then: if($r = mysql_fetch_row($res)) { do { }while($r = mysql_fetch_row($res)); } Now you have

Re: [PHP] PHP installation problem in FreeBSD OS.

2004-03-22 Thread Filip de Waard
On Mar 22, 2004, at 7:59 PM, Naveen Glore wrote: Hello All, I am not sure if this is the right place to post this problem. I tried with FreeBSD mailing list but could not get much help. No, it isn't. There is a specific installation list ([EMAIL PROTECTED]). I am having hard time in installing p

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Ryan A
> "Ryan A" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > I have this simple code in my php script: > > > > * * * * * > > $res = mysql_query("SELECT product_id, now()-1 > FROM ".$tc."_prods where > > cno=$cno AND product_id='$product_id' LIMIT 1"); > > > > if($res) > > {

[PHP] PHP5 Release

2004-03-22 Thread daniel
Hi there i noticed RC1 is released, it states not for critical use, does that mean for development purposes still ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Daniel Guerrier
if(mysql_num_rows($res)) returns count of rows returned. if it 0 is false so it shouldn't execute the conditional code --- Ligaya Turmelle <[EMAIL PROTECTED]> wrote: > I think it is because the query ran successfully and > returns an empty set. > So the pointer is still good. > > Respectfully, >

Re: [PHP] Any Ideas?

2004-03-22 Thread John W. Holmes
Matthew Oatham wrote: Bit rough at the moment but I have come up with the following - it doesn't rename the file using the new ID yet but I am more concerned about my method for creating the new ID - can anyone see any potential problems such as database problems, i.e duplicate keys, bad coding pr

[PHP] Re: Passing by conditional IF statement...why?

2004-03-22 Thread Ligaya Turmelle
I think it is because the query ran successfully and returns an empty set. So the pointer is still good. Respectfully, Ligaya Turmelle "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I have this simple code in my php script: > > * * * * * > $res = mysql_query("SELECT

[PHP] PHP installation problem in FreeBSD OS.

2004-03-22 Thread Naveen Glore
Hello All, I am not sure if this is the right place to post this problem. I tried with FreeBSD mailing list but could not get much help. I am having hard time in installing php4 using portupgrade in FreeBSD. First i have updated the port directory using cvsup. I am doing fresh installation of

Re: [PHP] Any Ideas?

2004-03-22 Thread Robert Cummings
On Mon, 2004-03-22 at 19:25, John W. Holmes wrote: > Robert Cummings wrote: > > > On Mon, 2004-03-22 at 18:51, Matthew Oatham wrote: > > > >>Hi, > >> > >>are there any functions that retrieve the last primary key created in > >>the MySQL table? > > > > > > http://www.php.net/manual/en/function.

RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris W. Parker
ok so does anyone know why this is happening (no theories please. unless it's correct. in which case it's ok. :)? is there something a list moderator can do about it? chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Any Ideas?

2004-03-22 Thread Chris W. Parker
Matthew Oatham on Monday, March 22, 2004 4:56 PM said: > can anyone see any > potential problems such as database problems, i.e duplicate keys, bad > coding practices etc... cheers matt > > if(!empty($_FILES["cr"])) { > $uploaddir = "cr/"; // set this to whereve

Re: [PHP] Any Ideas?

2004-03-22 Thread Matthew Oatham
Bit rough at the moment but I have come up with the following - it doesn't rename the file using the new ID yet but I am more concerned about my method for creating the new ID - can anyone see any potential problems such as database problems, i.e duplicate keys, bad coding practices etc... cheers m

Re: [PHP] Any Ideas?

2004-03-22 Thread Raditha Dissanayake
Matthew Oatham wrote: The idea was that the user uploads a file and I insert details about the file into the mysql table and rename the file using the generated id. Even with this scenario you probably can do with out the extra column as John has suggested. so if the next primary key is 4 I g

RE: [PHP] SQL Injection check (mysql)

2004-03-22 Thread Michael Rasmussen
On Mon, 22 Mar 2004 14:36:44 -0800, Pablo Gosse wrote: > > Huh? How does this accommodate for a dynamically generated query which is > based upon user input? > Have you read my arguments? A prepared statement cannot be dynamically generated! > > It is validated and its type set before it is i

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: > you've already got that unique identifier. it's the username. the > username will stay unique visit to visit, therefore you don't need to go > against the design of the session id. the session id is not meant to > keep uniqueness across multiple visits, only the current visit. > >

Re: [PHP] Any Ideas?

2004-03-22 Thread Matthew Oatham
The idea was that the user uploads a file and I insert details about the file into the mysql table and rename the file using the generated id. so if the next primary key is 4 I generate the file id CR-004 and rename the uploaded file to CR-004 whilst also storing CR-004 in the table. Thanks for y

RE: [PHP] Passing by conditional IF statement...why?

2004-03-22 Thread Martin Towell
Ryan Because you are actually getting a result, a result with no records... Might be better to use http://au2.php.net/manual/en/function.mysql-num-rows.php instead Martin > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 23 March 2004 11:37 AM > To: [EMAIL PR

RE: [PHP] Passing by conditional IF statement...why?

2004-03-22 Thread Pablo Gosse
Ryan A wrote: > Hi, > I have this simple code in my php script: > > * * * * * > $res = mysql_query("SELECT product_id, now()-1 FROM ".$tc."_prods > where cno=$cno AND product_id='$product_id' LIMIT 1"); > > if($res) > { > $r = mysql_fetch_row($res); > $product_id2 = $r[0]; > $th_pres= $r[1

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: [snip] If you give the session a custom name, then, yes, you'll have to use that name on every page. $name can be something that in an include file or a constant, etc, though. Again, you don't _have_ to give a name, though. There's no real advantage to using another name, though, as

[PHP] Passing by conditional IF statement...why?

2004-03-22 Thread Ryan A
Hi, I have this simple code in my php script: * * * * * $res = mysql_query("SELECT product_id, now()-1 FROM ".$tc."_prods where cno=$cno AND product_id='$product_id' LIMIT 1"); if($res) { $r = mysql_fetch_row($res); $product_id2 = $r[0]; $th_pres= $r[1]; echo "debug echo"; }else {echo "No

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: WHy do we need to have a session name for that? because eventually i want to take the user name (session name/variables/user info) and create a preferences section of the website im doing and that would require a constant session name from visit to visit Ummm... that's why you set a

Re: [PHP] Any Ideas?

2004-03-22 Thread John W. Holmes
Robert Cummings wrote: On Mon, 2004-03-22 at 18:51, Matthew Oatham wrote: Hi, are there any functions that retrieve the last primary key created in the MySQL table? http://www.php.net/manual/en/function.mysql-insert-id.php If you read the whole question, though, the poster wanted to use the ID

Re: [PHP] What is the best way to backup a MySQL Database

2004-03-22 Thread Brian V Bonini
On Mon, 2004-03-22 at 14:35, Elliot J. Balanza wrote: > Hi > > I've been trying to use MySQL dump with a php query (since we dont have like > a mysql_dump function) but it's not working. > > Can anyone please point me to a page so i can read a method to backup MySQL > databases to an .sql file us

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: as long as your usernames are unique you should never have a problem. (assuming everything else works as planned.) it should... i want to use sessions for a login system and stuff too but i want it to check to see if the person is logged in before going to the login section... if th

Re: [PHP] Session_destroy() questions

2004-03-22 Thread John W. Holmes
Elliot J. Balanza wrote: Ok, I know that session_destroy wont delete all my session data, but just delete the variables with it... but for instance the session_id() will be the same. So my question is how can i make it so that let's say one people enter my site, and then decides to leave... but do

Re: [PHP] Backup of a MySQL database.

2004-03-22 Thread Filip de Waard
On Mar 23, 2004, at 1:10 AM, Chris W. Parker wrote: Elliot J. Balanza on Monday, March 22, 2004 3:05 PM said: I was looking something more like a MySQL dump class or function... this may not be as robust a solution as you require but can you not simply backtick the m

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
you've already got that unique identifier. it's the username. the username will stay unique visit to visit, therefore you don't need to go against the design of the session id. the session id is not meant to keep uniqueness across multiple visits, only the current visit. are we/me misunderstanding

[PHP] Re: Any Ideas?

2004-03-22 Thread Geir Pedersen - Activio AS
Matt, this is not a direct answer to your question, more a tip on how you design your database: You should avoid storing the same information twice. You only risk inconsistencies. In your case I suggest you compute the textual ID from the primary key value using the PHP sprintf function whenever

Re: [PHP] Any Ideas?

2004-03-22 Thread John W. Holmes
Matthew Oatham wrote: I have a MySQL table which uses a auto_increment int as the primary key - when I do an insert I want to create another id based on the primary key and insert this into the same table i.e. if I do an insert and the primary key is 3 I want to generate the ID CR-003, if the

Re: [PHP] Any Ideas?

2004-03-22 Thread Robert Cummings
On Mon, 2004-03-22 at 18:51, Matthew Oatham wrote: > Hi, > > are there any functions that retrieve the last primary key created in > the MySQL table? http://www.php.net/manual/en/function.mysql-insert-id.php Cheers, Rob. -- .. | InterJ

RE: [PHP] Backup of a MySQL database.

2004-03-22 Thread Chris W. Parker
Elliot J. Balanza on Monday, March 22, 2004 3:05 PM said: > I was looking something more like a MySQL dump class or function... this may not be as robust a solution as you require but can you not simply backtick the mysqldump command from within php? file_$date.du

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Andy B on Monday, March 22, 2004 3:49 PM said: > because eventually i want to take the user name (session > name/variables/user info) and create a preferences section of the > website im doing and that would require a constant session name from > visit to visit yeah

[PHP] RE: Randomly expired session cookies

2004-03-22 Thread Ben Ford
I have noticed behavior like yours with our server setup. It is not a locally run (or owned) server so I cannot poke around to much. The session is timing out Randomly, causing our users to have to login again. It doesn't happen all the time either. In a rare case, less than a minute after l

[PHP] Any Ideas?

2004-03-22 Thread Matthew Oatham
Hi, Sorry to ask this question, I am fairly new to PHP and wanted to ask for some help with the following. I have a MySQL table which uses a auto_increment int as the primary key - when I do an insert I want to create another id based on the primary key and insert this into the same table i.e.

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Andy B on Monday, March 22, 2004 3:43 PM said: > as long as your usernames are unique you should never have a problem. > (assuming everything else works as planned.) > > it should... it will. a unique value is a unique value. > is this code valid?? > if(session_s

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Elliot J. Balanza on Monday, March 22, 2004 3:43 PM said: > What are the chances of two people getting the same session number in > a thousends of day operation? > When you down the size of that to a couple hundeed a day... > > WHy do we need to have a session name

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
What are the chances of two people getting the same session number in a thousends of day operation? When you down the size of that to a couple hundeed a day... WHy do we need to have a session name for that? because eventually i want to take the user name (session name/variables/user info) and cre

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
as long as your usernames are unique you should never have a problem. (assuming everything else works as planned.) it should... i want to use sessions for a login system and stuff too but i want it to check to see if the person is logged in before going to the login section... if the session isnt

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Elliot J. Balanza
What are the chances of two people getting the same session number in a thousends of day operation? When you down the size of that to a couple hundeed a day... WHy do we need to have a session name for that? Vamp "Chris W. Parker" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED

RE: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Chris W. Parker
Andy B on Monday, March 22, 2004 3:19 PM said: > so the theory is: if i require that the session be named after the > persons login name there is probably 1 out of 2 million chances that > it will mess up the names and get confused (specially if there are > only a fe

Re: [PHP] Backup of a MySQL database.

2004-03-22 Thread Elliot J. Balanza
I was looking something more like a MySQL dump class or function... I think since i can't do any phpmyadmin or anything like that, that i will simply write my own code... yuk i was hoping to save 1-2 days work... thanks vamp "Filip De Waard" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
[snip] If you give the session a custom name, then, yes, you'll have to use that name on every page. $name can be something that in an include file or a constant, etc, though. Again, you don't _have_ to give a name, though. There's no real advantage to using another name, though, as it's going to b

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-22 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > I haven't found the right wording to spit out the HTTP scripts to > the web browser through the fsockopen. I feel certain that I can help you, but unfortunately I can't seem to understand your question at all. Please understand that I'm not trying to

RE: [PHP] What is the best way to backup a MySQL Database

2004-03-22 Thread Pablo Gosse
Elliot J. Balanza wrote: > Hi > > I've been trying to use MySQL dump with a php query (since we dont > have like a mysql_dump function) but it's not working. > > Can anyone please point me to a page so i can read a method to backup > MySQL databases to an .sql file using php? > > thanks. > >

[PHP] What is the best way to backup a MySQL Database

2004-03-22 Thread Elliot J. Balanza
Hi I've been trying to use MySQL dump with a php query (since we dont have like a mysql_dump function) but it's not working. Can anyone please point me to a page so i can read a method to backup MySQL databases to an .sql file using php? thanks. Vamp -- PHP General Mailing List (http://www.ph

[PHP] fsockopen to spit out the HTTP's Location...

2004-03-22 Thread Scott Fletcher
Hi! I haven't found the right wording to spit out the HTTP scripts to the web browser through the fsockopen. In this case, the "Location: " script. I can not use the php header() function because of the FPDF strict checking. (Freeware PDF). All I did was to create a PDF and put it on t

RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris W. Parker
Elliot J. Balanza on Monday, March 22, 2004 2:33 PM said: > Actually there is another funny part to it. > The reazon you are getting this is because some of the people on the > list, bounces mail... that is fact, hence you can get all kind of > notifications that the

Re: [PHP] Backup of a MySQL database.

2004-03-22 Thread Filip de Waard
On Mar 22, 2004, at 11:34 PM, Elliot J. Balanza wrote: Can anyone post a link to a good reference material on how to do this... evidentely mysqldump is not working here... and i need to do this via php programming. I'm sure you will find prewritten scripts with Google and I know phpmyadmin does

[PHP] Re: Clearing Post Data with IE

2004-03-22 Thread Scott Fletcher
Using "Pragma: private" instead of no-cache would elminate that message about cache expired and asking if you want to resubmit. However, based on your questions. It's not the answer you're looking for. So, there is a better way around. Just do Webpage #1 for form and submit it to Webpage #2 fo

Re: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris Shiflett
--- "Elliot J. Balanza" <[EMAIL PROTECTED]> wrote: > Actually there is another funny part to it. The reazon you are > getting this is because some of the people on the list, bounces > mail... that is fact, hence you can get all kind of notifications > that the mail wasn't deliverable... and it was

Re: [PHP] Session_destroy() questions

2004-03-22 Thread Chris Shiflett
--- "Elliot J. Balanza" <[EMAIL PROTECTED]> wrote: > how can i make it so that let's say one people enter my site, and > then decides to leave... but doesn't closes the browser window, > then come back right in and wants to do other functions in the site > but with a different session_id()? http:/

RE: [PHP] SQL Injection check (mysql)

2004-03-22 Thread Pablo Gosse
> The reason is security. A prepared statement cannot comprimize the > security of our database because all sql-statements are precompiled > in the DBMS. An example using pear: > > $res = & DB:connect('mysql://someuser:[EMAIL PROTECTED]/thedb'); > $sth = $res->prepare('select * from sometable w

Re: [PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
From: "Andy B" <[EMAIL PROTECTED]> > From what I understand about sessions you can > give a session a particular name like doing: > session_start("SessionName"); You can give it a name, but you don't have to. PHP will use the default name if you don't and you'll just need to use session_start();

[PHP] Backup of a MySQL database.

2004-03-22 Thread Elliot J. Balanza
Can anyone post a link to a good reference material on how to do this... evidentely mysqldump is not working here... and i need to do this via php programming. thanks vamp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Elliot J. Balanza
Actually there is another funny part to it. The reazon you are getting this is because some of the people on the list, bounces mail... that is fact, hence you can get all kind of notifications that the mail wasn't deliverable... and it was true. But I thought anyone would know that... once again,

[PHP] Session_destroy() questions

2004-03-22 Thread Elliot J. Balanza
Ok, I know that session_destroy wont delete all my session data, but just delete the variables with it... but for instance the session_id() will be the same. So my question is how can i make it so that let's say one people enter my site, and then decides to leave... but doesn't closes the browser w

[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
>From what I understand about sessions you can give a session a particular name like >doing: session_start("SessionName"); So in practicle means I can do this: now my question is this: will i have to declare session_start($name); at the top of every file that needs to use that session name? o

[PHP] Clearing Post Data with IE

2004-03-22 Thread Chris Thomas
Hey, Im writing a script for a poll, and im trying to figure out how to clear the _post. Right now i post the response that the user selected from the poll, back to the poll page, which then displays the results The way it works right now, if i try to refresh the page, IE will pop a dialog back a

RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Jay Blanchard
[snip] > [snip] > i imagine other people are experiencing this also but i'm receiving > the following email every time i send a message to the list. > [/snip] > > ROFL! Sorry Chris...had to laugh. :) hey i like a good laugh just like anyone else... but i don't have any idea what you're talking ab

RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > ROFL! Sorry Chris...had to laugh. :) > > hey i like a good laugh just like anyone else... but i don't have > any idea what you're talking about!! :( That makes two of us. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O

[PHP] Transparent Image Help

2004-03-22 Thread Nick Hird
I am trying to create an image in php. I need a little better description then whats in the manual. Anyone know a good tutorial / article on creating transparent images in PHP. Using another picture and adding text would be helpful as well. Go gentle, i am sorta new to php. Nick Hird [EMAIL PRO

Re: [PHP] SQL Injection check (mysql)

2004-03-22 Thread Michael Rasmussen
On Sun, 21 Mar 2004 18:39:39 -0800, Chris Shiflett wrote: > > Can you explain that (and defend it)? > The reason is security. A prepared statement cannot comprimize the security of our database because all sql-statements are precompiled in the DBMS. An example using pear: $res = & DB:connect('m

Re: [PHP] Bogus headers returned by firewalls

2004-03-22 Thread John W. Holmes
From: "Pablo Gosse" <[EMAIL PROTECTED]> > Hi folks. Hi. > Has anyone out there ever had any issues with a user's > personal firewall munging up the HTTP_REFERER for a page? Yes. Some firewalls will do this for "privacy" reasons so you can't tell where they came from. You can't do anything about

Re: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Red Wingate
Same here, but even without replying :-/ Chris W. Parker wrote: Jay Blanchard on Monday, March 22, 2004 10:51 AM said: [snip] i imagine other people are experiencing this also but i'm receiving the following email every time i send a message to the list. [/snip] RO

[PHP] read file help ....

2004-03-22 Thread Mooki
I am trying to read a file from a remote server using a URL. I have done this : * $html = implode('', file($url)); * echo $html the $url is the address with some pages like www.mooki.de/index.html ist works without a problem but with the address that i intend to use it only reads about 30 l

[PHP] Bogus headers returned by firewalls

2004-03-22 Thread Pablo Gosse
Hi folks. Has anyone out there ever had any issues with a user's personal firewall munging up the HTTP_REFERER for a page? I've got a mailer script which is accessed from a few domains within our network of sites, and sometimes users have been getting an error which informs them the script has be

RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris W. Parker
Jay Blanchard on Monday, March 22, 2004 10:51 AM said: > [snip] > i imagine other people are experiencing this also but i'm receiving > the following email every time i send a message to the list. > [/snip] > > ROFL! Sorry Chris...had to laugh. :) hey i like a good

RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Jay Blanchard
[snip] i imagine other people are experiencing this also but i'm receiving the following email every time i send a message to the list. [/snip] ROFL! Sorry Chris...had to laugh. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris W. Parker
hey everyone, i imagine other people are experiencing this also but i'm receiving the following email every time i send a message to the list. == Subject: Undeliverable: Delivery Report (failure) for [EMAIL PROTECTED] Message: Your message did not reach some or all of the intended recipients.

Re: [PHP] Zend Optimiser -- wide spread??

2004-03-22 Thread Richard Čepas
It isn't on most hosts, though it isn't difficult to install it on request. You may also look at alternatives: http://turck-mmcache.sourceforge.net/#bench On Monday 22 March 2004 02:16, Justin French <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm close to releasing my first widely distributed (I

[PHP] eregi for alpha-numeric, punctuation & whitespace?

2004-03-22 Thread Jas
Not sure how to accomplish this, and not completely familiar with all the options available with regular expressions. I need to sanitize input data by only allowing alpha-numeric characters, whitespace, punctuation (,.;:) and of course carrige returns. here is what I have so far... eregi("^[0-9

Re: [PHP] building CLI version only

2004-03-22 Thread Jason Wong
On Monday 22 March 2004 19:25, neko wrote: > A server I'm using has PHP compiled into Apache, and I want to leave > that alone and just build a CLI version of php. Can I get away with just > going: > > ./configure --with-mysql --prefix=/some/home/dir > make > make install > > ? I dont' want to ups

Re: [PHP] Problems compiling PHP with ImageMagick

2004-03-22 Thread Jason Wong
On Monday 22 March 2004 23:11, Paul Hopkins wrote: > Next prob: I'm trying to recompile PHP 4.3.4 (on Redhat 7.3) with > ImageMagick support. I've installed ImageMagick 5.5.7 and the PECL imagick > package (0.9.8). I'm running Apache 1.3.29 with PHP compiled as a module. > > These are the steps I'

[PHP] Unit test

2004-03-22 Thread Andres Ferrando
Hi! which Unit Test tool for PHP do you recomend? bye -- Andrés Ferrando <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] outputting php file

2004-03-22 Thread Ryan A
Hey John, > Same as you write any other file, fopen, fwrite, fclose, etc, then send > the > appropriate headers to trigger a download of the file (discussed on > here > plenty of times). Yep, I got the working code to force a download from the list itself, but was outputting a file via readfile..

Re: [PHP] outputting php file

2004-03-22 Thread John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > I have a set of scripts that read off a config_inc.php file (eg: database, > username,password, admin_username,admin_pass etc), instead of the client > manually making the changes (with mistakes sometimes) I have made a form > where the client can pick most of

[PHP] outputting php file

2004-03-22 Thread Ryan A
Hi, I have a set of scripts that read off a config_inc.php file (eg: database, username,password, admin_username,admin_pass etc), instead of the client manually making the changes (with mistakes sometimes) I have made a form where the client can pick most of the values via a drop down box and then

[PHP] Re: Problems compiling PHP with ImageMagick

2004-03-22 Thread Paul Hopkins
I wrote: >First, cheers to Mike Ward for the quick response to my maiden post this >morning (about floating point vars). Second, apologies for getting Mike Ford's name wrong in my second-to-maiden post... :( Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Problems compiling PHP with ImageMagick

2004-03-22 Thread Paul Hopkins
First, cheers to Mike Ward for the quick response to my maiden post this morning (about floating point vars). Next prob: I'm trying to recompile PHP 4.3.4 (on Redhat 7.3) with ImageMagick support. I've installed ImageMagick 5.5.7 and the PECL imagick package (0.9.8). I'm running Apache 1.3.29 with

[PHP] Re: Problems with PHP5 RC1

2004-03-22 Thread memoimyself
On 19 Mar 2004 at 19:23, Lester Caine wrote: > [EMAIL PROTECTED] wrote: > > > I'm trying to run PHP5 RC1 on a Windows 2000 test server with Apache 2.0.47. > > Mines 2.0.48, but no problem. > > > Upon installation, when I first started Apache again, I got an error message to > > the effect > >

RE: [PHP] what can be wrong here?{OT}

2004-03-22 Thread Jay Blanchard
[snip] In CSS file all links are black: /* Part from CSS file */ a:link{color:#00; text-decoration: none;} /*unvisited link*/ a:visited{color:#00; text-decoration: none;} /*visited link*/ a:hover {color:#00; text-decoration: none;} /*mouse over link*/ a:active { color:#00} [/snip]

Re: [PHP] what can be wrong here?

2004-03-22 Thread Richard Davey
Hello Mike, Monday, March 22, 2004, 1:45:24 PM, you wrote: MM> Hello MM> In CSS file all links are black: MM> /* Part from CSS file */ MM> a:link{color:#00; text-decoration: none;} /*unvisited link*/ MM> a:visited{color:#00; text-decoration: none;} /*visited link*/ MM> a:hover {color:#0

[PHP] what can be wrong here?

2004-03-22 Thread Mike Mapsnac
Hello In CSS file all links are black: /* Part from CSS file */ a:link{color:#00; text-decoration: none;} /*unvisited link*/ a:visited{color:#00; text-decoration: none;} /*visited link*/ a:hover {color:#00; text-decoration: none;} /*mouse over link*/ a:active { color:#00} On the p

[PHP] Thanks : Re: [PHP] String Length ??

2004-03-22 Thread gordon stewart
--- Filip de Waard <[EMAIL PROTECTED]> wrote: > strlen() is the correct function to use here. Use it > like: > > echo strlen($_POST['input_name']); > > Where $_POST['input_name'] should be replaced by the > variable you want > to check. strlen() is always right, but it counts > the actual chara

Re: [PHP] Question for PHP.net

2004-03-22 Thread Burhan Khalid
Florian Hoenl wrote: Dear PHP.net, I have got a question!!! I`ll develop a new PHP Site and threr is a problem with Hyperlinks!!! How can I use "index?nav=Webmaster"?? Whats the source code for this funktion Florian : 1. Please don't end all lines with multiple puncuation marks. !!! is no

  1   2   >