[PHP] Sessions and subdomains issues

2004-12-06 Thread Nick Wilson
Goodmorning all, My application (a third party customized cms) shares sessions across the main site and the two subdomains - or at least it should I have 'php_value session.cookie_domain .mysite.com and'php_value session.cookie_path / all set in htaccess The sesions are stored in a db

[PHP] how to parse

2004-12-06 Thread Alex Toney
i have script that passes variables through it then it generates xml on a remote server . how would i parse that here they are http://bluemoonlabs.net/weather.php http://bluemoonlabs.net/parse.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: create htaccess.

2004-12-06 Thread Matthew Weier O'Phinney
* Adwinwijaya [EMAIL PROTECTED]: Monday, December 6, 2004, 11:33:28 AM, you wrote: MWOP In you .htaccess: MWOP File index MWOP ForceType application/x-httpd-php MWOP /File MWOP DirectoryIndex index MWOP Then, in your script, you'll need to access the PATH_INFO

[PHP] Re: Sessions in Frames...confused

2004-12-06 Thread Peter Lauri
Do not use frames :) It creates problems for the searchengines. /Peter Ryan A [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, Reading the different articles on phpbuilder/devshed/phpfreaks etc has left me a bit confused.. will start from the beginning so you guys(and girls)

[PHP] Re: Session variables not unsetting

2004-12-06 Thread Peter Lauri
Security? Have you called session_start(); ??? /Peter Steve [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Steve wrote: I'm having a problem with session variables. Never mind. Seems that the hosting company decided this week to switch from register_globals off to

Re: [PHP] Re: create htaccess.

2004-12-06 Thread Jason Wong
On Monday 06 December 2004 20:11, Matthew Weier O'Phinney wrote: 'article.php' will have to become just 'article' for the above to work (unless you can do rewriting, but you indicated that you don't have access to your httpd.conf file). The directions for doing that are above; just substitute

[PHP] Re: Sessions and subdomains issues

2004-12-06 Thread Peter Lauri
I had a similar problem before. I had my admin at admin.mydomain.com, and the cookies did not transfer. I changed it to www.mydomain.com/admin instead... In my host my subdomain admin.mydomain.com is located in www.mydomain.com/admin, I assume similar structure for you? /Peter Nick Wilson

[PHP] Trouble with do..while

2004-12-06 Thread Salvatore
Hi all, I have that script in php that should print on a page the result of lot of pages defined in this way: This is the address: www.mysite.com/mypage.php?idx=1lines=50 It work in this way: if idx=1 and lines=50 my page will look like: element1 element2 .. element50 if idx=5 and lines=5 my

[PHP] installing php 5.02 and Apache 2

2004-12-06 Thread Octavian Rasnita
Hi all, I have installed Apache 2 under Fedora Core 2 and now I would like to install PHP 5.02 as a server module. I have downloaded and unpacked PHP 5.02, and I think that I need to run ./configure now but I don't know which parameters I need to add. I have added --prefix=dir --with-mysql=dir

Re: [PHP] [ANN]Webyog releases FREE edition of SQLyog

2004-12-06 Thread Ryan A
Take this and shove it up where the sun does not shine (or up your 'yog') you filthy spammer. The most popular GUI for MySQLever hear of PHPMyAdmin? Dumbass. On 12/6/2004 6:38:11 AM, Ritesh Nadhani ([EMAIL PROTECTED]) wrote: Hello, Webyog, the creator of SQLyog - the most popular GUI for

[PHP] Image wrapper not multithreaded

2004-12-06 Thread Michael Minden
Hi, I wrote a script for a webcam overview that downloads images form different locations like this: ?php $image = imagecreatefromjpeg($imgurl); header(Content-Type: image/jpeg); imagejpeg($image); ? I call it a few times inside an html file like this: img src=getcamimage.php?camId={id} The

Re: [PHP] Sessions in Frames...confused

2004-12-06 Thread Ryan A
Hey, Do I have to start a session in index.php which is calling the sideFrame and mainFrame or just in mainFrame or just in sideFrame or in all?? AGH! going nuts! /* As far as I know there is no harm in calling session_start() in all your Iframes and Frames. According to theory a new session

[PHP] Quick questions ?=something?

2004-12-06 Thread Ryan A
Hey all, Am a bit confused, from the time I learnt PHP (big thanks to this list for helping me) I have used something like this ?php echo $something; ? but when reading someone elses code I sometimes stumble accross this: ?php=something? is this 100% valid php? I have not found it in the manual...

Re: [PHP] Quick questions ?=something?

2004-12-06 Thread Marek Kilimajer
Ryan A wrote: Hey all, Am a bit confused, from the time I learnt PHP (big thanks to this list for helping me) I have used something like this ?php echo $something; ? but when reading someone elses code I sometimes stumble accross this: ?php=something? is this 100% valid php? I have not found it in

Re: [PHP] Quick questions ?=something?

2004-12-06 Thread Ligaya Turmelle
Yeah - it is valid. It is a short hand method for doing what you are doing. I don't know if it is in the manual, but it is in the certification guide. Respectfully, Ligaya Turmelle --- Life is a game... so have fun. --- www.PHPCommunity.org Open Source, Open Community Visit for more

Re: [PHP] Image wrapper not multithreaded

2004-12-06 Thread Marek Kilimajer
Michael Minden wrote: Hi, I wrote a script for a webcam overview that downloads images form different locations like this: ?php $image = imagecreatefromjpeg($imgurl); header(Content-Type: image/jpeg); imagejpeg($image); ? I call it a few times inside an html file like this: img

[PHP] Re: Session variables not unsetting

2004-12-06 Thread steve
Peter Lauri wrote: Security? Have you called session_start(); ??? Yeah - as I mentioned in the original post, all my pages start with that. I'm a little PO'd about the change to register_globals on. Alas, trying to switch it off in an .htaccess file causes a 500 error. That said, I never use

Re: [PHP] How to get 2 columns to display?

2004-12-06 Thread bbonkosk
You need a way to make new table rows... if you want to do it ever other image, then just add a counter variable, incrememnt it each time and if it is even then make a new table row. (Also if the images are two big, the browser may put them on a new line, so you might have to look into

Re: [PHP] Making variables with an iteration?

2004-12-06 Thread Robert Sossomon
SNIP Parse error: parse error, expecting `';'' coded: ?php for ($j=1, $j5, $j++) { $choices.$j= $_POST['choice'.$i]; echo $choices.$j; } ? -- Robert Sossomon, Business and Technology Application Technician 4-H Youth Development Department 200 Ricks Hall, Campus Box 7606 N.C. State University

Re: [PHP] Re: Session variables not unsetting

2004-12-06 Thread Jason Wong
On Monday 06 December 2004 22:50, steve wrote: Yeah - as I mentioned in the original post, all my pages start with that. I'm a little PO'd about the change to register_globals on. Alas, trying to switch it off in an .htaccess file causes a 500 error. That said, I never use variables passed by

[PHP] How to get 2 columns to display?

2004-12-06 Thread Aaron Wolski
Hi guys, I'm trying to get two columns of td/td to display side by side and then go to a new row. I am using this code but nothing I seem to do is working this far. ?php for ($r=0;$products = db_fetch($productsQuery);$r++) { ? td align=centera href=?php echo $base_url; ?products/?php echo

Re: [PHP] installing php 5.02 and Apache 2

2004-12-06 Thread Jason Wong
On Monday 06 December 2004 21:31, Octavian Rasnita wrote: I have installed Apache 2 under Fedora Core 2 and now I would like to install PHP 5.02 as a server module. I have downloaded and unpacked PHP 5.02, and I think that I need to run ./configure now but I don't know which parameters I

Re: [PHP] Making variables with an iteration?

2004-12-06 Thread John Nichel
Jason Wong wrote: SNIP for ($j=1, $j5, $j++) { $choices.$j= $_POST['choice'.$i]; } So what do you get when you run that? Strawberry sundae with chocolate on top? (I usually only get a chicken and ham sandwich). homer Mmmstrawberry sundae on a chicken and ham sandwich. /homer -- John C.

Re: [PHP] Re: create htaccess.

2004-12-06 Thread Matthew Weier O'Phinney
* Jason Wong [EMAIL PROTECTED]: On Monday 06 December 2004 20:11, Matthew Weier O'Phinney wrote: 'article.php' will have to become just 'article' for the above to work (unless you can do rewriting, but you indicated that you don't have access to your httpd.conf file). The directions for

RE: [PHP] Making variables with an iteration?

2004-12-06 Thread SCALES, Andrew
I might be wrong but I don't think you can reference variable names in that way. You probably need something like this: for ($j=1, $j5, $j++) { $tempChoice = choice . $j; $$tempChoice = $_POST['choice'.$j]; } And that should create your $choice1.. $choice2 etc. Andy. -Original

Re: [PHP] Quick questions ?=something?

2004-12-06 Thread Ryan A
?= $string ? means the same as ?php echo $string ? if short_open_tag is on ** It's perfectly valid PHP, I use it all the time on my own sites, but because it's one of those php.ini settings you have a 50/50 chance of finding on (or off!) you shouldn't rely on it unless you know the

Re: [PHP] Quick questions ?=something?

2004-12-06 Thread Matthew Weier O'Phinney
* Marek Kilimajer [EMAIL PROTECTED]: Ryan A wrote: Hey all, Am a bit confused, from the time I learnt PHP (big thanks to this list for helping me) I have used something like this ?php echo $something; ? but when reading someone elses code I sometimes stumble accross this:

[PHP] Making variables with an iteration?

2004-12-06 Thread Robert Sossomon
I've got some inputs, which I need to tie down to only have 4 come in from. The javascript to verify it is working somewhat, however I want to create the parsing script to loop through the inputs (choice) and then dump them into $choice1, $choice2, $choice3, $choice4 respectively. I have to

Re: [PHP] Making variables with an iteration?

2004-12-06 Thread Samer Khattab
On Mon, 06 Dec 2004 10:13:05 -0500, Robert Sossomon [EMAIL PROTECTED] wrote: [...] ?php for ($j=1, $j5, $j++) { $choices.$j= $_POST['choice'.$i]; echo $choices.$j; } ? [...] You have a typo in your code. You are typing $i instead of $j. You should write instead: $choices.$j=

Re: [PHP] Trouble with do..while

2004-12-06 Thread denys
Salvatore a écrit : If I understand correctly, have you tried this instead of the above code : while( !feof($f) ) { $stream = fread($f, 8192); $data .= $stream; } fclose($f); i found it. max_execution_time = 30 is too few for more than 3000 files:) Ooops... Sorry for leaving PHP

Re: [PHP] Trouble with do..while

2004-12-06 Thread Greg Donald
On Mon, 6 Dec 2004 14:23:51 +0100, Salvatore [EMAIL PROTECTED] wrote: I have that script in php that should print on a page the result of lot of pages defined in this way: This is the address: www.mysite.com/mypage.php?idx=1lines=50 Sounds to me like you want basic pagination. I'd use PEAR.

Re: [PHP] Problem with code

2004-12-06 Thread Greg Donald
On Sun, 5 Dec 2004 21:05:12 -0800, Richard Kurth [EMAIL PROTECTED] wrote: I am having a problem with the code below it provides the first page with out any problem but when I select the next page it shows all the results from the first page and the results from the second page. It does the

Re: [PHP] Making variables with an iteration?

2004-12-06 Thread Jason Wong
On Monday 06 December 2004 22:28, Robert Sossomon wrote: I've got some inputs, which I need to tie down to only have 4 come in from. The javascript to verify it is working somewhat, however I want to create the parsing script to loop through the inputs (choice) and then dump them into

Re: [PHP] Sessions in Frames...confused

2004-12-06 Thread Brent Baisley
PHP, and it's sessions, knows absolutely nothing about frames. A frame is just another page, the browser just happens to display it inside of another page. From a session standpoint, you should treat each frame as an independent page. On Dec 5, 2004, at 9:12 PM, Ryan A wrote: Hi, Reading the

[PHP] Making variables with an iteration? STILL

2004-12-06 Thread Robert Sossomon
Here's the full code and the driving page: http://rsossam-lap.ces.ncsu.edu/leadership/test.html snip ?php for ($i=1; $i10; $i++) { if (isset ($_POST['choice'.$i])) { for ($j=1; $j5; $j++) { $tempChoice = choice . $j; $$tempChoice = $_POST['choice'.$i]; } } } echo $choice1; echo

Re: [PHP] Making variables with an iteration?

2004-12-06 Thread Jason Wong
On Monday 06 December 2004 23:13, Robert Sossomon wrote: SNIP Parse error: parse error, expecting `';'' You should always give the full error message which would include the line number. Furthermore you should always point out which line of your code is the line number in question. coded:

RE: [PHP] How to get 2 columns to display?

2004-12-06 Thread Jack . van . Zanen
can you maybe add some debug code to print out the value of $r just before the if? and just after the if It looks at first glance to be correct, except you seem to be missing opening TR (actually that may be your problem) Jack -Oorspronkelijk bericht- Van: Aaron Wolski [mailto:[EMAIL

Re: [PHP] Making variables with an iteration? STILL

2004-12-06 Thread Richard Davey
Hello Robert, Monday, December 6, 2004, 3:55:21 PM, you wrote: RS snip RS ?php RS for ($i=1; $i10; $i++) RS { RS if (isset ($_POST['choice'.$i])) RS { RSfor ($j=1; $j5; $j++) RS{ RS $tempChoice = choice . $j; RS $$tempChoice = $_POST['choice'.$i]; RS} RS } RS } RS

[PHP] Problem with code

2004-12-06 Thread Richard Kurth
I am having a problem with the code below it provides the first page with out any problem but when I select the next page it shows all the results from the first page and the results from the second page. It does the same thing on the third page also. I have been looking at it for two days and can

[PHP] Developer Research Survey

2004-12-06 Thread Research
Starmark Research is conducting a survey of software developers for one of our clients. The survey is very brief and requires only a few minutes to complete. All participants are eligible to win a 20GB Apple iPod. The winner will be randomly selected and contacted on December 17, 2004. To

RE: [PHP] Making variables with an iteration? STILL

2004-12-06 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 06 December 2004 15:55, Robert Sossomon wrote: Here's the full code and the driving page: http://rsossam-lap.ces.ncsu.edu/leadership/test.html snip ?php for ($i=1;

Re: [PHP] Re: Session variables not unsetting

2004-12-06 Thread steve
Jason Wong wrote: With register_globals enabled, the problem is not with the $_POST, $_GET etc variables (although yes you should always validate data when they come from untrusted sources). The problem is that malicious users can pollute your namespace and if you do not initialise variables

[PHP] xml question

2004-12-06 Thread Dan McCullough
Question. I need to get one value out of an xml document. ... categories catDesserts/cat/categories ... what do I need to do? $xml_parser = xml_parser_create(); xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($xml_parser, cat, /cat);

[PHP] Strange behaviour with PHP on Apache

2004-12-06 Thread Stefan
Hi there, For the first time since my server is running I got some strange behaviour today without changing something before. Users trying to access my php-scripted websites (different projects) got a 'download' message instead of the site (as if the site (.php) was a downloadable file (e.g.

Re: [PHP] Making variables with an iteration? STILL

2004-12-06 Thread Thomas Munz
I think you can use the export() function for that.. Here's the full code and the driving page: http://rsossam-lap.ces.ncsu.edu/leadership/test.html snip ?php for ($i=1; $i10; $i++) { if (isset ($_POST['choice'.$i])) { for ($j=1; $j5; $j++) { $tempChoice = choice . $j;

[PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Robert Sossomon
Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 The HTML page: http://rsossam-lap.ces.ncsu.edu/leadership/registration2.php The processing Script SNIP ?php $fname= $_POST[fname]; $lname= $_POST[lname]; $addie= $_POST[addie];

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Thomas Munz
you forgot the ' in the $fname= $_POST[fname]; $lname= $_POST[lname]; $addie= $_POST[addie]; $city= $_POST[city]; fields!!! error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 The HTML page:

[PHP] Strange File Download Problem

2004-12-06 Thread Rahul S. Johari
Ave, Alright... Firstly thanks to everyone who's been trying to help me out. I've been doing a lot of research and finding out a lot of things. The problem is definitely very clear... I need to convert the Dynamic URL to Static URL because, as discussed earlier, Microsoft manages to screw up the

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread John Nichel
Robert Sossomon wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 snip $0405distoffice= $_POST['04_05_dist_office']; //line29 $0506distoffice= $_POST['05_06_dist_office']; snip Look in the manual, that's your first stop...

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread John Holmes
Robert Sossomon wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 [snip] $0405distoffice= $_POST['04_05_dist_office']; //line29 $0506distoffice= $_POST['05_06_dist_office']; Variable names cannot start with a number. --

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Richard Lynch
Variable names cannot start with a digit. $distoffice0405 is kosher. $0405distoffice is not. Robert Sossomon wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 The HTML page:

Re: [PHP] Making variables with an iteration? STILL

2004-12-06 Thread Richard Lynch
Thomas Munz wrote: I think you can use the export() function for that.. He probably means http://php.net/extract but that defeats the purpose of turning register_globals OFF and is BAD SECURITY. Here's the full code and the driving page: http://rsossam-lap.ces.ncsu.edu/leadership/test.html

Re: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Greg Donald
On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon [EMAIL PROTECTED] wrote: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in c:\fourh\leadership\registration_post.php on line 29 for ($i=0; $i count($choices); $i++) This is bad. Every time the for() loop iterates, the count()

Re: [PHP] Re: Session variables not unsetting

2004-12-06 Thread Richard Lynch
steve wrote: Jason Wong wrote: With register_globals enabled, the problem is not with the $_POST, $_GET etc variables (although yes you should always validate data when they come from untrusted sources). The problem is that malicious users can pollute your namespace and if you do not

RE: [PHP] PARSE ERROR, unexpected T_$VARIABLE

2004-12-06 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 06 December 2004 17:23, Greg Donald wrote: On Mon, 06 Dec 2004 11:54:50 -0500, Robert Sossomon [EMAIL PROTECTED] wrote: Parse error: parse error, expecting `T_VARIABLE' or

Re: [PHP] Sessions in Frames...confused

2004-12-06 Thread Richard Lynch
Ryan A wrote: Hey, Do I have to start a session in index.php which is calling the sideFrame and mainFrame or just in mainFrame or just in sideFrame or in all?? AGH! going nuts! /* As far as I know there is no harm in calling session_start() in all your Iframes and Frames. According to

[PHP] Magic-quotes

2004-12-06 Thread Jeff McKeon
Does having magic-quotes=on prevent an attacker from using a urlized sql inject query? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: create htaccess.

2004-12-06 Thread Richard Lynch
adwinwijaya wrote: www.mysite.com/article/file/19911/year/2004 means: www.mysite.com/article.php?file=19911year=2004 right ? :) and i have to put this script on my article.php, is it right ? $pi = $_SERVER['PATH_INFO']; // Grab PATH_INFO $pi = substr($pi, 1);// Remove the

Re: [PHP] Snyc Outlook Calendar with Website

2004-12-06 Thread Richard Lynch
Can a PHP script send POST data to another one simply? Yes. Google for function postothost and you'll find many many many examples. I have no idea about the Outlook part. You're on your own for that. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List

Re: [PHP] Coding Question

2004-12-06 Thread Richard Lynch
Al wrote: I've searched the PHP manual and can't find an answer for this question I'd like to use the OR DIE construct; but instead of DIE I'd like to use RETURN FOO. I haven't found a way to do it. $string= file_get_contents($filename) OR die(Could not read file); $db_link=

Re: [PHP] Plz help me

2004-12-06 Thread Richard Lynch
suneel wrote: Hi Every one... Straight to the topic... I have a template file called welcome.tmp. I want to show the whole file in a Iframe with dimensions of 250 x 250.(i.e., less dimensions ). Is it possible using PHP. Or how

Re: [PHP] Re: Session variables not unsetting

2004-12-06 Thread Jason Wong
On Tuesday 07 December 2004 01:32, Richard Lynch wrote: steve wrote: Jason Wong wrote: With register_globals enabled, the problem is not with the $_POST, $_GET etc variables (although yes you should always validate data when they come from untrusted sources). The problem is that

Re: [PHP] How to Pass Parameters to a CGI

2004-12-06 Thread Richard Lynch
Yao, Minghua wrote: Hi, everyone, I want to pass several parameters to a CGI program run on another server. The following source of that program shows the parameters that need to be set manually. --

Re: [PHP] Strange Download-File Problem

2004-12-06 Thread Richard Lynch
Rahul S. Johari wrote: Richard, I had a question for you... When you said: The goal here is to change the URL that looks like this: imsafm2_download.php?F=imsafm/rahul/somefile.txt into a URL that looks like this: imsafm2_download/F=imsafm/rahul/somefile.txt Did you mean

Re: [PHP] Magic-quotes

2004-12-06 Thread Robert Cummings
On Mon, 2004-12-06 at 12:57, Jeff McKeon wrote: Does having magic-quotes=on prevent an attacker from using a urlized sql inject query? Somewhat, but I think magic_quotes=off is the preferred style since magic quotes are a big headache for portability. At any rate, understanding what you are

RE: [PHP] Magic-quotes

2004-12-06 Thread Jeff McKeon
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:45 PM To: Jeff McKeon Cc: PHP-General Subject: Re: [PHP] Magic-quotes On Mon, 2004-12-06 at 12:57, Jeff McKeon wrote: Does having magic-quotes=on prevent an attacker from

Re: [PHP] Remember me function

2004-12-06 Thread Richard Lynch
Brad Brevet wrote: Is what I have set up and it is working is a cookie that saves someones username if they check the Remember Me box. If the cookie is set it then starts the necessary session and stays active for 30 days. Are there any pitfalls to this that you can see? Are there any

Re: [PHP] Strange behaviour with PHP on Apache

2004-12-06 Thread Jason Wong
On Tuesday 07 December 2004 00:33, Stefan wrote: Users trying to access my php-scripted websites (different projects) got a 'download' message instead of the site (as if the site (.php) was a downloadable file (e.g. .tgz or something else))). It sounds like what would happen when your PHP

Re: [PHP] Strange File Download Problem

2004-12-06 Thread Jason Wong
On Tuesday 07 December 2004 01:10, Rahul S. Johari wrote: [snip] You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References:

Re: [PHP] Strange Download-File Problem

2004-12-06 Thread Rahul S. Johari
Ave, The error is The File Could Not Be Found. Don't know if you got my latest mail regarding this issue, but I did things a little differently but still the same result. This was my last post regarding this issue: Ave, Alright... Firstly thanks to everyone who's been trying to help me out.

Re: [PHP] Remember me function

2004-12-06 Thread Richard Lynch
Brad Brevet wrote: Nevermind, I figured it all out, thanks for the info. Brad Brevet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is this the all I would need to do to set a cookie with a username stored for 30 days? Sorry I am new at this. setcookie (Cookie Name, $username,

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-06 Thread Richard Lynch
I am looking to do like Hotmail, or Yahoo!, or Mail.com, or any of the other places do. I can go sign up on their site and immediately have an e-mail account that I can start using. No admin has to take the time to create my account for me. You do understand that these hosts have MAJOR

Re: [PHP] Magic-quotes

2004-12-06 Thread Richard Lynch
Jeff McKeon wrote: Does having magic-quotes=on prevent an attacker from using a urlized sql inject query? Not likely. Magic Quotes is a convenience feature, not a security feature. Magic Quotes is oft-understood, even by journeymen PHP programmers. Magic Quotes takes all incoming POST/GET

Re: [PHP] Page that checks if a user exists on a remote system

2004-12-06 Thread Jonathan Duncan
Richard, Very good point, and you are correct, I am not looking to hire an army and spend tons of time and money on it. I have since rethought this, thanks in part to this thread. I have decided to go with something more secure. Since I have a database of users already for the site on

RE: [PHP] Strange behaviour with PHP on Apache

2004-12-06 Thread Stefan
That sounds like a nice hint. Unfortunately there seems to be no error in the apache2 error logfile - This must have been near the time, when the strange behaviour began: [Mon Dec 06 14:58:07 2004] [warn] NameVirtualHost 82.165.42.181:80 has no VirtualHosts [Mon Dec 06 14:58:09 2004] [notice]

Re: [PHP] Coding Question

2004-12-06 Thread Al
Jason Wong wrote: On Monday 06 December 2004 14:19, Rory Browne wrote: If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct, and not a function, or anything that

RE: [PHP] Magic-quotes

2004-12-06 Thread Robert Cummings
On Mon, 2004-12-06 at 13:47, Jeff McKeon wrote: Assuming I have no portability needs and have magic_quotes=on, can you elaborate on somewhat? Somewhat... till someone comes along and changes your php.ini, or you transfer your code to another server and forget to enable magic quotes. At which

[PHP] Magic quotes

2004-12-06 Thread Phpu
Hi, If I have an sql interogation, for example: $sql = SELECT id, name FROM shop WHERE cat_id = $cat_id ; For my server doesn't work...only if i put ... cat_id = '$cat_id' I think i haven't set up apache.. What is the problem? Thanks

Re: [PHP] Magic-quotes

2004-12-06 Thread Matthew Weier O'Phinney
* Richard Lynch [EMAIL PROTECTED]: Jeff McKeon wrote: Does having magic-quotes=on prevent an attacker from using a urlized sql inject query? Not likely. Magic Quotes is a convenience feature, not a security feature. Magic Quotes is oft-understood, even by journeymen PHP programmers.

Re: [PHP] Magic-quotes

2004-12-06 Thread Richard Lynch
The thing that always kills me is when programmers call stripslashes on data that comes *OUT* of MySQL. No, no, no, no. Whatever it is you did, or think you are doing, or think you are fixing, that's WRONG. Maybe you called addslashes twice, once with Magic Quotes, and once by hand and

Re: [PHP] Coding Question

2004-12-06 Thread Richard Lynch
Al wrote: Essentially, I'm creating warning reports for my users, not code errors. The users can then email the warnings to our webmaster. Jason Wong wrote: On Monday 06 December 2004 14:19, Rory Browne wrote: $result = mysql_db_query($db,select count(*) from $table)

[PHP] Re:[PHP] Magic-quotes

2004-12-06 Thread Jeff McKeon
So now the big question which will undoubtly spark a lot of opinions (I hope). We use apache/php/mysql based sites for internal management of our systems and would now like to give our customers direct access to manage their accounts via the web. Naturally this raises security concerns. From

Re: [PHP] Coding Question

2004-12-06 Thread Al
Richard Lynch wrote: Al wrote: Essentially, I'm creating warning reports for my users, not code errors. The users can then email the warnings to our webmaster. Jason Wong wrote: On Monday 06 December 2004 14:19, Rory Browne wrote: $result = mysql_db_query($db,select count(*) from

[PHP] using sprinf()

2004-12-06 Thread Colin
Hi, in session.c , i try to use char *val; sprintf(val, %s, PS(id)); PS(mod)-s_write(PS(mod_data), PS(id), val, strlen(val), TSRMLS_CC); but i cant move between scripts that has session_start() on them. any ideas? cheers -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re:[PHP] Magic-quotes

2004-12-06 Thread Robert Cummings
On Mon, 2004-12-06 at 16:22, Jeff McKeon wrote: So now the big question which will undoubtly spark a lot of opinions (I hope). We use apache/php/mysql based sites for internal management of our systems and would now like to give our customers direct access to manage their accounts via the

[PHP] Parsing multiple XML documents as strings. Inbox

2004-12-06 Thread Goformusic Support
Hi, We worked with Sablotron before but switched over to the libxslt library on PHP5 to perform XSL transformations. We used the wrapper code found on http://be.php.net/xsl so that our old xslt_ functions continued to work. Now, with Sablotron we used to parse multiple XML documents as strings

[PHP] Random data loss.

2004-12-06 Thread 2wsxdr5
With out posting any code I was wondering if anyone here has been experiencing this kind of problem. I have a standard web from that PHP code then reads and saves the data into a MySQL DB. The problem is some of my users have had data lost somewhere in this process. The web site is

RE: [PHP] Random data loss.

2004-12-06 Thread Vail, Warren
Could be a problem of multiple update modules for the same table. When I've encountered this problem in the past it's been one of two causes. 1. In the process of maintaining the table one routine that has no price information, retrieves the row and notices that the something needs to be

Re: [PHP] Random data loss.

2004-12-06 Thread Raditha Dissanayake
2wsxdr5 wrote: With out posting any code I was wondering if anyone here has been experiencing this kind of problem. I have a standard web from that PHP code then reads and saves the data into a MySQL DB. The problem is some of my users have had data lost somewhere in this process. The web

[PHP] inserting html within a mail body

2004-12-06 Thread Ross Hulford
Hi, I am using the mail() function in php andI am looking for a quick and easy way to make the mail_body of an auto response email with HTML tags in it so I can add some style to it. Are the use of CSS tags possible too? Any suggestions will be much appreciated Ross -- PHP General

Re: [PHP] inserting html within a mail body

2004-12-06 Thread Ramil Sagum
On Tue, 7 Dec 2004 02:31:10 -, Ross Hulford [EMAIL PROTECTED] wrote: Hi, I am using the mail() function in php andI am looking for a quick and easy way to make the mail_body of an auto response email with HTML tags in it so I can add some style to it. Hi! The PHPs manual page on the

Re: [PHP] Parsing multiple XML documents as strings. Inbox

2004-12-06 Thread Christian Stocker
On Mon, 6 Dec 2004 23:10:15 +0100, Goformusic Support [EMAIL PROTECTED] wrote: Hi, We worked with Sablotron before but switched over to the libxslt library on PHP5 to perform XSL transformations. We used the wrapper code found on http://be.php.net/xsl so that our old xslt_ functions

[PHP] searching with mutable criteria

2004-12-06 Thread Richard Kurth
I am having a problem with this script what it does is write the sql needed to search for data based on mutable criteria. It works fine if you search with all the different fields but if you only search with one or two of the fields it creates a sql that looks like this SELECT * FROM listing WHERE