[PHP] building php 4.3.7 with sablot 1.0.1 and gcc 3.3.3

2004-06-19 Thread Per Jessen
I'm trying to build php 4.3.7 with sablot 1.0.1 and expat 1.95.7 - I'm using gcc3.3.3. sablot and expat built fine, but when I build/link php: /usr/lib/libsablot.so: undefined reference to `operator new[](unsigned)' /usr/lib/libsablot.so: undefined reference to `vtable for

Re: [PHP] UPLOAD scripts refuse to function

2004-06-19 Thread Marek Kilimajer
cory wrote --- napsal:: Sure that sounds easy right? well I have tried at least 10 different php scripts as well as a handful of cgi. Same resuls with everyone of them...nothing in my specified tmp folder. Every uploaded file is removed from the temporary directory right after the script is

Re: [PHP] triggering scripts through apache configuration

2004-06-19 Thread Marek Kilimajer
Chris Wagner wrote --- napsal:: hello, wondering how you might go about triggering PHP scripts from an apache configuration file, for certain events... for instance, how might i trigger a script whenever a file was accessed within a given directory. and, would it be possible to know which file

[PHP] PHP DL and UL Speed Test

2004-06-19 Thread Anton Krall
Guys... Anybody knows of a php script that can help measure download and upload speed tests? Thank you for any comments. Anton Krall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sessions cookies

2004-06-19 Thread Scott Taylor
How exactly do sessions work? I've heard that if cookies are disabled that a session will then pass it's variables in the url (through GET). Yet when I manually disable cookies none of my pages work (because the $_SESSION variables do not seem to be working). Any ideas? Best Regards, Scott

RE: [PHP] sessions cookies

2004-06-19 Thread Michael Sims
Scott Taylor wrote: How exactly do sessions work? I've heard that if cookies are disabled that a session will then pass it's variables in the url (through GET). Yet when I manually disable cookies none of my pages work (because the $_SESSION variables do not seem to be working). The

[PHP] Re: building php 4.3.7 with sablot 1.0.1 and gcc 3.3.3

2004-06-19 Thread Per Jessen
Per Jessen wrote: I'm trying to build php 4.3.7 with sablot 1.0.1 and expat 1.95.7 - I'm using gcc3.3.3. sablot and expat built fine, but when I build/link php: /usr/lib/libsablot.so: undefined reference to `operator new[](unsigned)' [snip] After some research, I can answer my own question -

[PHP] mod_rewrite Issues

2004-06-19 Thread Stephen Craton
This isn't exactly a PHP issue, but they seem to go rather hand in hand... Right now I'm just running my own apache server on my computer and I'm trying to protect my scripts using mod_rewrite. I uncommented all the mod_rewrite lines in the apache configuration file and restarted it all. I got

Re: [PHP] UPLOAD scripts refuse to function

2004-06-19 Thread Nick W
On June 18, 2004 10:26 pm, cory wrote: ok, someone please lend me some advice here. I am trying create a upload form for my site. Sure that sounds easy right? well I have tried at least 10 different php scripts as well as a handful of cgi. Same resuls with everyone of them...nothing in my

[PHP] how to iterate over fields names with mysql_fetch_assoc

2004-06-19 Thread grahama
How do I iterate over fields when I perform the below script: each row has: artist_name,urlPath,biography as fields while ($row = mysql_fetch_assoc($result)) { # if the current field name is 'artist_name', do something switch($GetCurrentFieldNameintheCurrentRow) { case $row[ 'field name

[PHP] variable question

2004-06-19 Thread water_foul
is there a way to use one variable to create another? Example $poo=1 and i want $lie1 OR $poo=2 and i want $lie2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable question

2004-06-19 Thread Robin Vickery
On Sat, 19 Jun 2004 14:25:27 -0600, water_foul [EMAIL PROTECTED] wrote: is there a way to use one variable to create another? Example $poo=1 and i want $lie1 OR $poo=2 and i want $lie2 If I understand you right, you want: ${'lie' . $poo} when $poo is 1, that will give you $lie1,

[PHP] Re: variable question

2004-06-19 Thread water_foul
sorry i didn't say this before but please hurry i need this to finish a php script -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable question

2004-06-19 Thread water_foul
Thanks oh so much Robin Vickery [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, 19 Jun 2004 14:25:27 -0600, water_foul [EMAIL PROTECTED] wrote: is there a way to use one variable to create another? Example $poo=1 and i want $lie1 OR $poo=2 and i want $lie2

Re: [PHP] how to iterate over fields names with mysql_fetch_assoc

2004-06-19 Thread Robin Vickery
On Sat, 19 Jun 2004 13:25:54 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How do I iterate over fields when I perform the below script: ... If I write the below code, I only get the first field name of each row...which makes sense In this case, I get 'artist_name' while ($row =

[PHP] umm i am confused...

2004-06-19 Thread water_foul
i get the following error Parse error: parse error, unexpected T_STRING in C:\Inetpub\localroot\aichlmayr.net\sites\aaron\module\personal\links.php on line 21 -- for the following code and i cant figure out why (you may need to maxamise

Re: [PHP] umm i am confused...

2004-06-19 Thread Adrian
action=module/personal/delete.phpdelete/td/tr); replace this with action=module/personal/delete.phpdelete/td/tr; and remove the ; after } - it's ugly and useless ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: umm i am confused...

2004-06-19 Thread water_foul
I figured it out Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i get the following error Parse error: parse error, unexpected T_STRING in C:\Inetpub\localroot\aichlmayr.net\sites\aaron\module\personal\links.php on line 21

[PHP] Regular Expressions Tester/designer

2004-06-19 Thread Al
Anyone know of a good regular expressions tester/designer for php coding running windows. I've looked at the Rad Software Regular Expressions Designer and it looks pretty good except that it is intended for .net and it really doesn't seem to be entirely PCRE compatible. Thanks -- PHP

Re: [PHP] Regular Expressions Tester/designer

2004-06-19 Thread Joel Kitching
On Sat, 19 Jun 2004 17:23:53 -0400, Al [EMAIL PROTECTED] wrote: Anyone know of a good regular expressions tester/designer for php coding running windows. I've looked at the Rad Software Regular Expressions Designer and it looks pretty good except that it is intended for .net and it really

Re: [PHP] mod_rewrite Issues

2004-06-19 Thread Michal Migurski
This isn't exactly a PHP issue, but they seem to go rather hand in hand... Right now I'm just running my own apache server on my computer and I'm trying to protect my scripts using mod_rewrite. I uncommented all the mod_rewrite lines in the apache configuration file and restarted it all. I

[PHP] cookie question

2004-06-19 Thread water_foul
whats wrong with this script setcookie('link' . $loopnum . '',$url,time()+3600*200); setcookie('name' . $loopnum . '',$name,time()+3600*200); it doesn't write the cookies -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookie question

2004-06-19 Thread Joel Kitching
Did you do this before you sent some outut? This would send headers, therefore causing you to not be able to send the cookie header. On Sat, 19 Jun 2004 15:51:00 -0600, water_foul [EMAIL PROTECTED] wrote: whats wrong with this script setcookie('link' . $loopnum . '',$url,time()+3600*200);

Re: [PHP] how to iterate over fields names with mysql_fetch_assoc

2004-06-19 Thread grahama
thanks...that is what I had used previously :) Another php coder had given me a hint that I could just take each incoming row on the fly with $row['artist_name'] without reading everything into an array: What I had previously was: while ($row = mysql_fetch_assoc($result)) { $playlist[] =

Re: [PHP] cookie question

2004-06-19 Thread water_foul
all i did was a function and some conditionals Joel Kitching [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Did you do this before you sent some outut? This would send headers, therefore causing you to not be able to send the cookie header. On Sat, 19 Jun 2004 15:51:00 -0600,

[PHP] Why is PHP Segmentation Faulting?!?!?!?

2004-06-19 Thread Jeff
Hey all Total PHP newbie here. I posted a day ago about php working 'intermittently'. I was told to check my apache logs which was a good hint cause php is seg faulting. I've broken it down to my connection script to my database and I ran it in gdb to see if it would tell me anything. Since I

Re: [PHP] cookie question

2004-06-19 Thread water_foul
lemme clarify what i mean by function, i created a function Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] all i did was a function and some conditionals Joel Kitching [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Did you do this before you sent some outut?

Re: [PHP] cookie question

2004-06-19 Thread water_foul
sorry i misse dsomething else i should say, this is in the function but i haven't sent any output before i call the function Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] lemme clarify what i mean by function, i created a function Water_foul [EMAIL PROTECTED] wrote in

Re: [PHP] cookie question

2004-06-19 Thread Joel Kitching
Are you sure you're trying to access them properly, and on the next page refresh? ex) ?php // Print an individual cookie echo $_COOKIE[TestCookie]; echo $HTTP_COOKIE_VARS[TestCookie]; // Another way to debug/test is to view all cookies print_r($_COOKIE); ? On Sat, 19 Jun 2004 15:56:36 -0600,

[PHP] Why is PHP Segmentation Faulting?!?!?!? --- ANOTHER HINT

2004-06-19 Thread Jeff
I don't know if this helps... but when I comment out all of the print functions it seg faults at a totally different spot... SCRIPT!!! ?PHP //DEFINE GLOBAL VARIABLES TO BE USED BY ALL DATABASE FUNCTIONS global $g_dbConn; function dbConnect($HostName, $UserName, $Password) { global $g_dbConn;

Re: [PHP] cookie question

2004-06-19 Thread water_foul
i did that and it doesn't say that theere there, how do you set cookies so that theyy dont expire (maby the expiration is set wrong.. i'm a newb with cookies Joel Kitching [EMAIL PROTECTED] wrote Are you sure you're trying to access them properly, and on the next page refresh? ex) ?php

Re: [PHP] cookie question

2004-06-19 Thread Joel Kitching
There are many examples (in the comments) at the manual entry for set_cookie at php.net; go try one of those. On Sat, 19 Jun 2004 16:07:34 -0600, water_foul [EMAIL PROTECTED] wrote: i did that and it doesn't say that theere there, how do you set cookies so that theyy dont expire (maby the

Re: [PHP] cookie question

2004-06-19 Thread water_foul
i figured it out ty Joel Kitching [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] There are many examples (in the comments) at the manual entry for set_cookie at php.net; go try one of those. On Sat, 19 Jun 2004 16:07:34 -0600, water_foul [EMAIL PROTECTED] wrote: i did that and

[PHP] quick question

2004-06-19 Thread water_foul
how do you set a system path to the top level, i allredy tried '/' but it ignores the last '. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: quick question

2004-06-19 Thread water_foul
I would also like to know how to set a cookie to all dirs in a domain how do you set a system path to the top level, i allredy tried '/' but it ignores the last '. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cookie

2004-06-19 Thread water_foul
how do you set a cookie to mutiple directories? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cookie question...

2004-06-19 Thread water_foul
how do i read a cookie created by this code setcookie('link1',blah,time()+3600,'/'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Regular Expression - it works but uses way too much memory ?

2004-06-19 Thread Ulrik S. Kofod
Robin Vickery sagde: The S modifier that you're using means that it's storing the studied expression. If the regexp changes each time around the loop then over 3 iterations, that'll add up. See if removing that modifier helps at all. The S modifier wasn't needed, I added it because I

[PHP] hellllppp my php kills the browser

2004-06-19 Thread water_foul
i dont know why but the following code kills the browser: ?php //the function for adding new addresses function loop_new_address($loopnum,$url,$name){ //the ${'link' . $loopnum} says put $link and add $loopnum to the end if(isset($_COOKIE['link' . $loopnum . ''])){

[PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread water_foul
i fixed it i had an endless loop oops :) Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i dont know why but the following code kills the browser: ?php //the function for adding new addresses function loop_new_address($loopnum,$url,$name){ //the ${'link' . $loopnum} says

Re: [PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread Joel Kitching
Perhaps you would be better off going to IRC, as you seem to have many (smaller) questions... On Sat, 19 Jun 2004 17:42:26 -0600, water_foul [EMAIL PROTECTED] wrote: i fixed it i had an endless loop oops :) Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i dont

Re: [PHP] cookie question...

2004-06-19 Thread Angel Freire
First I recomend you to read this page: http://ar.php.net/manual/en/function.setcookie.php For that example the code should be: $_COOKIE['link1'] El sáb, 19-06-2004 a las 19:47, water_foul escribió: how do i read a cookie created by this code setcookie('link1',blah,time()+3600,'/'); -- PHP

Re: [PHP] cookie question...

2004-06-19 Thread raditha dissanayake
Angel Freire wrote: First I recomend you to read this page: http://ar.php.net/manual/en/function.setcookie.php I think your recommendtation ought to be http://ar.php.net/manual/ instead. ;-) -- Raditha Dissanayake. -

[PHP] RE: Computer algebra in PHP

2004-06-19 Thread Lukasz Karapuda
Take a look at the code available at http://www.phpmath.com. Several people have contributed some numerical methods that could be useful for you. Lukasz Karapuda -Original Message- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 6:05 PM To: [EMAIL

[PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread Aidan Lister
Please read: http://www.catb.org/~esr/faqs/smart-questions.html Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i fixed it i had an endless loop oops :) Water_foul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i dont know why but the following code kills

Re: [PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread Michael Lauzon
I see enough of this Holier Than Thou attitude on the OCLUG list, I don't need to see it here as well, and if you keep it up people like me...the newbies will shy away from PHP! On Sun, 20 Jun 2004 12:39:26 +1000, Aidan Lister [EMAIL PROTECTED] wrote: Please read:

RE: [PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread Bob Eldred
However, those newbies who stick around will learn how to research and find most of the answers themselves. Not a bad result, if you ask me. Education often sounds Holier than Thou, but there's usually a good reason for it. Bob -Original Message- From: Michael Lauzon [mailto:[EMAIL

[PHP] RE: Build Url based on screen width

2004-06-19 Thread YC Nyon
I need to build a url based on screen width. The code is below if (screen.width 800) { document.write('a href=frameview.php?winwidth=880winheight=540'); } else if (screen.width = 800) { document.write('a href=frameview.php?winwidth=680winheight=440'); } However, I need to add some

Re: [PHP] Re: hellllppp my php kills the browser

2004-06-19 Thread raditha dissanayake
Michael Lauzon wrote: I see enough of this Holier Than Thou attitude on the OCLUG list, I don't need to see it here as well, and if you keep it up people like me...the newbies will shy away from PHP! everyone with a holier than thou attitude were also newbies once. The difference is that they

[PHP] Secure Website using Cookies

2004-06-19 Thread Sean Vasey
When a user registers at my site, a random number is md5 encrypted and assigned to them and is stored in the database. When they login, this number is stored in a secure cookie. On certain pages that may contain sensitive user information such as order history or other, the page looks for the