Re: [PHP] Image Storage

2004-03-23 Thread James Coder
Michal Migurski wrote: 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? MySQL themselves advise you use the

[PHP] $x base64_decode(base64_encode($x)) for imagecreatefromstring

2004-03-23 Thread James Coder
I'm writing a script that does image manipulation, and trying to take some of the images I use in an imagecopy() out of the filesystem as images, and put them directly in the php file as strings assigned to variables. Of course, they're binary so they garbledygook everything if they're not

[PHP] php and email

2004-03-23 Thread Steven Mac Intye
Hi all, Im wondering if anyone can help me with this problem I have a form with the following line of code; $message .= a href=\http://127.0.0.1/devsite/activate.php?member=$realnamehash=$initPass\;Click here to activate/a\n; What I actually get is the following output; a

[PHP] Re: php and email

2004-03-23 Thread Jakes
Make sure that your header function as it set to send html mail Steven Mac Intye [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Im wondering if anyone can help me with this problem I have a form with the following line of code; $message .= a

[PHP] Re: [GLUG-chat] Re: email form

2004-03-23 Thread Steven Mac Intye
hehe, Thanks ... I got it I replaced my content type with the following: Content-Type: text/html; charset=iso-8859-15 Now it works perfectly :)) Thanks all Steven Mac Intye wrote: Hi Ray, Nope... this is what it outputs now.

[PHP] Re: Ticketing system

2004-03-23 Thread Henry Grech-Cini
Hi I am using deskpro. see http://www.deskpro.com It's written in PHP, but it is not cheap. From my brief experience I would have to say however that it certainly seems to be worth it. Such a sophisticated ticketing system would take a very significant amount of time to build from scratch. HTH

[PHP] syntax for printing multi-dimensional arrays

2004-03-23 Thread Bob Pillford
Hi all I am having problems printing members of an array that has two dimensions and am wondering if someone can help me with the syntax required to do this. If i have the follwing code: ?php $test=array('test1'='a','test2'='b'); print $test[test1]; ? I get 'a' echoed to the screen as

[PHP] syntax for printing multi-dimensional arrays

2004-03-23 Thread Bob Pillford
Just found the answer so please disregard this. Cheers Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax for printing multi-dimensional arrays

2004-03-23 Thread Tom Rogers
Hi, Tuesday, March 23, 2004, 8:03:05 PM, you wrote: BP Hi all BP I am having problems printing members of an array that has two BP dimensions and am wondering if someone can help me with the syntax BP required to do this. BP If i have the follwing code: BP ?php BP

[PHP] Java script prompt - help

2004-03-23 Thread Brent Clark
Hi all I know this is not a Javascript mailling list, and I do apologies. I someone could please help me a url or an email, this would be most appreciated. I would like to have a yes \ no prompt displayed and depending on which button is pressed take the right course of action. Kind Regards

[PHP] PHPSESSID in passthru

2004-03-23 Thread Guillouet Nicolas
Hi, I discover a surprising thing with PHPSESSID, I try something like this : $var=htmldoc -t html --quiet '' 'https://login:[EMAIL PROTECTED]/file.php?documentIdent=157typeAffiche=3PHPSESSID=068dd351a106bb6ead80e11a27f75100'; echo 'var='.$var; passthru($var); passthru is waiting for and

[PHP] string to float

2004-03-23 Thread Diana Castillo
How do I change a string to a float, when the string may be in this format : 4,999.90 , or this format: 4999,90 (european style) -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web :

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

2004-03-23 Thread Jay Blanchard
[snip] (no theories please. unless it's correct. in which case it's ok. :) [/snip] ROFLMFAO! If it is correct then it is no longer theory! Sorry Chris, maybe I should go lay down. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Constants

2004-03-23 Thread Jay Blanchard
[snip] ?php interface Foo { const MY_FOO = hello world; } class Bar implements Foo { public function displayFoo(){ print MY_FOO; } } $obj = new Bar; $obj-displayFoo(); ? The results should display hello world, but it prints out MY_FOO. [/snip] This is not a bug, but

RE: [PHP] string to float

2004-03-23 Thread Jay Blanchard
[snip] How do I change a string to a float, when the string may be in this format : 4,999.90 , or this format: 4999,90 (european style) [/snip] http://us4.php.net/settype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 23 Mar 2004 13:33:36 -0000 Issue 2663

2004-03-23 Thread php-general-digest-help
php-general Digest 23 Mar 2004 13:33:36 - Issue 2663 Topics (messages 181215 through 181251): Re: Passing by conditional IF statement...why? 181215 by: Ligaya Turmelle 181217 by: Daniel Guerrier 181219 by: Ryan A 181221 by: John W. Holmes 181224 by:

RE: [PHP] Constants

2004-03-23 Thread Vincent Jansen
Not too fast. From http://www.php.net/zend-engine-2.php PHP 5 introduces per-class constants: ?php class Foo { const constant = constant; } echo Foo::constant = . Foo::constant . \n; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Constants

2004-03-23 Thread Jay Blanchard
[snip] Not too fast. From http://www.php.net/zend-engine-2.php PHP 5 introduces per-class constants: ?php class Foo { const constant = constant; } echo Foo::constant = . Foo::constant . \n; ? [/snip] My bad. Still not a bug. -- PHP General Mailing List (http://www.php.net/) To

[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
hi in an attempt to create a login system for site administrators on a website i come into the following problem that bothers me because i cant find any way to fix it. problem: most login scripts/systems i look at for examples on how to make a login section from sessions (allow the

[PHP] Re: Constants

2004-03-23 Thread Gerben
this is probably because Foo is an interface instead of a class. interfaces can't contain any data as far as I know. Jakes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The bug server looks like its down, so I will just post the bug here, and hopefully someone will spot it PHP

[PHP] Re: php and email

2004-03-23 Thread Gerben
try using ' instead of Steven Mac Intye [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Im wondering if anyone can help me with this problem I have a form with the following line of code; $message .= a

[PHP] Re: login scripts not secure?? help!

2004-03-23 Thread Gerben
try using $HTTP_SESSION_VARS[] by the way. if hacks can find out the user-pass combination they can just use the normal way of logging in ;-) Andy B [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi in an attempt to create a login system for site administrators on a website i come

Re: [PHP] login scripts not secure?? help!

2004-03-23 Thread Matt Matijevich
snip a href=securepage.php?_SESSION[username]=admin_SESSION[pwd]=passwordgo to secure page/a /snip Turn off register globals. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] login scripts not secure?? help!

2004-03-23 Thread Red Wingate
hi, securepage.php?_SESSION[username]=admin_SESSION[pwd]=password would not register 'username' and 'pwd' to the $_SESSION array but to the $_GET and $_REQUEST-Array like: $_GET['_SESSION']['username'] = 'admin' There is no way to inject any kind of data to the super-global Arrays at all

[PHP] Re: Constants

2004-03-23 Thread Jakes
You can keep constant variables in an interface, because thay are static and do not change. Trust me, it is a bug. Gerben [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] this is probably because Foo is an interface instead of a class. interfaces can't contain any data as far as I

[PHP] session.bug_compat_42

2004-03-23 Thread James E Hicks III
What does the code look like that is causing this error? I know I can turn the error off but how do I fix the code that is causing it? Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not

[PHP] RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
[snip] There is no way to inject any kind of data to the super-global Arrays at all [snip] duhhh...how come i didnt think of that... well..guess its long nights without coffee.. tnx... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Constants

2004-03-23 Thread Jakes
If you define constants with in a interface and then implement that interface it does not work on 5RC1 This should work, but it displays the constant name rather than value it references interface Settings { const UNAME = somename; const PWORD = password; const SERVER = localhost; }

Re: [PHP] Constants

2004-03-23 Thread Red Wingate
IIRC it was changed to self::CONST_NAME recently interface Settings { const UNAME = somename; const PWORD = password; const SERVER = localhost; } class Conn implements Settings { public function __construct(){ $dbConn = mysql_connect(self::SERVER, self::UNAME,

Re: [PHP] Constants

2004-03-23 Thread Red Wingate
Give this a read: http://marc.theaimsgroup.com/?l=php-devm=107936530102181w=2 Am Dienstag, 23. März 2004 15:16 schrieb Red Wingate: IIRC it was changed to self::CONST_NAME recently interface Settings { const UNAME = somename; const PWORD = password; const SERVER = localhost; }

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

2004-03-23 Thread Scott Fletcher
In plain english, can't use the header(Location: ), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the browser perform the HTTP LOCATION event. It does work when using fsockopen() for HTTP POST or GET as stated in the

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

2004-03-23 Thread Scott Fletcher
In plain english, can't use the header(Location: ), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the browser perform the HTTP LOCATION event. It does work when using fsockopen() for HTTP POST or GET as stated in the

[PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
You can use the HTTP Authentication instead for username and password. Andy B [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] There is no way to inject any kind of data to the super-global Arrays at all [snip] duhhh...how come i didnt think of that... well..guess its long

Re: [PHP] Constants

2004-03-23 Thread Jakes
Thanks, will do. Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Give this a read: http://marc.theaimsgroup.com/?l=php-devm=107936530102181w=2 Am Dienstag, 23. März 2004 15:16 schrieb Red Wingate: IIRC it was changed to self::CONST_NAME recently interface Settings {

Re: [PHP] Bogus headers returned by firewalls

2004-03-23 Thread Christophe Chisogne
Pablo Gosse a écrit : munging up the HTTP_REFERER for a page? In HTTP, Referer is an OPTIONAL field in the HTTP/1.1 spec (see rfc 2616). I saw many strange referers (like 'Empty', 'bookmarks' 'XXX++', 'Removed by YYY', etc) sent or modified by security assistants, browsers, spiders... You can

[PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
[snip] You can use the HTTP Authentication instead for username and password. [/snip] no i cant this time because the people want the login form to follow their color setup and stuff and with www-authenticate: box you cant do that...so for this project its out of the question... -- PHP General

Re: [PHP] PHPSESSID in passthru

2004-03-23 Thread Raditha Dissanayake
Guillouet Nicolas wrote: Hi, I discover a surprising thing with PHPSESSID, I try something like this : $var=htmldoc -t html --quiet '' 'https://login:[EMAIL PROTECTED]/file.php?documentIdent=157typeAffiche=3PHPSESSID=068dd351a106bb6ead80e11a27f75100'; echo 'var='.$var; passthru($var); passthru

[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Kim L. Laage
Hi, Newbie warning - this may be extremely simple. I've been given a bit of code to get to work on our test machines, but at the moment I'm drawing a blank. As far as I can tell the problem lies in the dev. using a server environment with register_globals = On, while we use the default setting

[PHP] RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Andy B
[snip] session_start(); $_SESSION = user; $_SESSION = pass; This doesn't work of course, but as I said I'm unsure of how the $_SESSION superglobal is used, and the info I've found about it didn't shed much light... I hope I'm just tired today 8-) Another semi-related question is, is it common to

[PHP] Re: RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Scott Fletcher
$_session[user]=$_POST[user];//if using register_globals=off Actually, $_SESSION with a capital letters does work... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Then do what I did, the script below is only an example.. --snip-- ? if ($_REQUEST['dw'] == 0) { session_start() $_SESSION['username'] = ; //Wherever you got the userid from $_SESSION['password'] = ; //Wherever you got the password from //if successful

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Here's what I do, maybe this will help to give you an idea... --snip-- ? if ($_REQUEST['dw'] == 0) { session_start(); $_SESSION['username'] = ; //Wherever you got the username from... $_SESSION['password'] = ; //Wherever you got hte password from... } else if ($_REQUEST['dw']

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Pablo Gosse
snip 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. /snip A RARE case, in the world of web applications??? Hardly! I agree that in an optimal situation queries will not

[PHP] replacing chars in input

2004-03-23 Thread David T-G
Hi, all -- I would like to make things easier for my users and replace all of the garbage characters `';:[EMAIL PROTECTED]*()[]{}/?\|+= plus white space (\s) with underscores in the input. I am, however, having trouble getting my regexp to work. I can comfortably do $i =

[PHP] Re: RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Kim L. Laage
(This msg. may arrive twice, with two different senders, I've had a little trouble with the news server) Hi, thanks for your reply. first $_SESSION works like this: session_start(); $_session[user]=$_POST[user];//if using register_globals=off $_SESSION[user]=$user;//if

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

2004-03-23 Thread Michal Migurski
In plain english, can't use the header(Location: ), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the browser perform the HTTP LOCATION event. --snip-- $host = 192.168.0.2; $port = 443; $url_str =

Re: [PHP] replacing chars in input

2004-03-23 Thread Michal Migurski
I want to end up with A-Za-z0-9_- (letters, numbers, underscore and dash). If there isn't a handy character class waiting for me, what must I do to get those chars replaced? $out = preg_replace('/\W+/', '', $in); -

Re: [PHP] session.bug_compat_42

2004-03-23 Thread Rasmus Lerdorf
This has nothing to do with the browser. Instead of using session_register(last_time) and setting $last_time, do this: $_SESSION['last_time'] = time(); It's shorter and it will make the warning go away. -Rasmus On Tue, 23 Mar 2004, James E Hicks III wrote: What does the code look like

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

2004-03-23 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Tuesday, March 23, 2004 5:27 AM said: [snip] (no theories please. unless it's correct. in which case it's ok. :) [/snip] ROFLMFAO! If it is correct then it is no longer theory! Sorry Chris, maybe I should go lay down. exactly! that's what i'm

Re: [PHP] login scripts not secure?? help!

2004-03-23 Thread Chris Shiflett
--- Andy B [EMAIL PROTECTED] wrote: i run into the deal where most login scripts check to see if $_SESSION[username] or a $_SESSION var has been set or is valid. i noticed this could be a very bad thing because there is nothing stopping an outside link from doing something like: a

[PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
[snip] Then do what I did, the script below is only an example.. --snip-- ? if ($_REQUEST['dw'] == 0) { session_start() $_SESSION['username'] = ; //Wherever you got the userid from $_SESSION['password'] = ; //Wherever you got the password from //if

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Chris Shiflett
--- Michael Rasmussen [EMAIL PROTECTED] wrote: The idea is exactly not to do any queries dynamically generated based on user input! This argument still makes no sense to me. Originally, you stated that a better option to filtering and escaping data was to use a prepared statement. Some of us

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

2004-03-23 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: In plain english, can't use the header(Location: ), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. I'm asking anyway. :-) You cannot (thank goodness) connect to a remote client with fsockopen(), so

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Um, you would be able to jump out of the admin area (logged in area) to public/free area and back to the admin area (logged in area) only if either one of these two, not necessnary both is maintained on every webpage of that website, 1) session_start() or 2) session_id via links/form. But if the

[PHP] Re: session.bug_compat_42

2004-03-23 Thread Justin Patrin
James E Hicks III wrote: What does the code look like that is causing this error? I know I can turn the error off but how do I fix the code that is causing it? Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the

Re: [PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Justin Patrin
Kim L. Laage wrote: (This msg. may arrive twice, with two different senders, I've had a little trouble with the news server) Hi, thanks for your reply. first $_SESSION works like this: session_start(); $_session[user]=$_POST[user];//if using register_globals=off $_SESSION[user]=$user;//if

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

2004-03-23 Thread Scott Fletcher
Boy! Everyone here is itching for an answer!!! :-) Sigh! Well, I guess all web browsers suck at it by the way!! Michal Migurski from other posting had explained that fsockopen() do the TCP stuff or the Transport Layer. So, no wonder fsockopen() can't get to the Network layer, like the IP

[PHP] Re: replacing chars in input

2004-03-23 Thread Justin Patrin
David T-G wrote: Hi, all -- I would like to make things easier for my users and replace all of the garbage characters `';:[EMAIL PROTECTED]*()[]{}/?\|+= plus white space (\s) with underscores in the input. I am, however, having trouble getting my regexp to work. I can comfortably do $i =

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

2004-03-23 Thread Scott Fletcher
See the reply to the Chris Shiflett's reply... Michal Migurski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] In plain english, can't use the header(Location: ), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the

[PHP] Domain Sub-domain Handling with PHP

2004-03-23 Thread Galen
Hi, I've done loads and loads with PHP and MySQL and stuff like that... but never had to really deal with actually creating new domains and subdomains with PHP. Especially with subdomains, I've seen lots of sites create subdomains automatically. What is the best technique for doing all this

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread John W. Holmes
Scott Fletcher wrote: Um, you would be able to jump out of the admin area (logged in area) to public/free area and back to the admin area (logged in area) only if either one of these two, not necessnary both is maintained on every webpage of that website, 1) session_start() or 2) session_id via

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

2004-03-23 Thread Michal Migurski
And finally, for those of you who are dying to know the answer to why I can't use the header(). It's the 3rd party coding that contain the code, --snip-- if(headers_sent()) $this-Error(' '); --snip-- Why not delete that part of the 3rd party code then? Or send your Location header

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

2004-03-23 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: Sigh! Well, I guess all web browsers suck at it by the way! Suck at what exactly? Michal Migurski from other posting had explained that fsockopen() do the TCP stuff or the Transport Layer. So, no wonder fsockopen() can't get to the Network layer,

[PHP] Oracle 8i -- execution stops

2004-03-23 Thread Matthew Hillebrand
When I make a complex query to a table with 500,000 rows via PHP, my web browser thinks for a minute and then stops the execution of the script with no error messages at all. I have set the max_execution_time to 400 and called error_reporting(E_ALL) with the same results. I'm using PHP 4.3.1

Re: [PHP] Clearing Post Data with IE

2004-03-23 Thread Chris Boget
Is there a way to get it so that i can clear _post and get it so they arent in the header?? After you've finished all of the processing, just do: header( 'location: ' . $_SERVER['PHP_SELF'] ); exit(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Domain Sub-domain Handling with PHP

2004-03-23 Thread Justin Patrin
Galen wrote: Hi, I've done loads and loads with PHP and MySQL and stuff like that... but never had to really deal with actually creating new domains and subdomains with PHP. Especially with subdomains, I've seen lots of sites create subdomains automatically. What is the best technique for

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Michael Rasmussen
On Tue, 23 Mar 2004 08:25:32 -0800, Pablo Gosse wrote: A RARE case, in the world of web applications??? Hardly! I agree that in an optimal situation queries will not be based on user input, but in the world of the web this is a pipe dream. In 99.99% of the cases there will be some

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Michael Rasmussen
On Tue, 23 Mar 2004 09:27:29 -0800, Chris Shiflett wrote: This argument still makes no sense to me. Originally, you stated that a better option to filtering and escaping data was to use a prepared statement. Some of us have decided that you are referring to stored procedures. You still

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Chris Shiflett
--- Michael Rasmussen [EMAIL PROTECTED] wrote: I think you have misunderstod the concepts of making queries based on user input. It is not the users who should create the query, all to should do is provide the input to narrow down the queries. To be honest, I think Pablo understands the

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Pablo Gosse
snip PG A RARE case, in the world of web applications??? Hardly! PG PG I agree that in an optimal situation queries will not be based on PG user input, but in the world of the web this is a pipe dream. In PG 99.99% of the cases there will be some dynamic element to a query. PG The only

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

2004-03-23 Thread Scott Fletcher
Sigh! Well, I guess all web browsers suck at it by the way! Suck at what exactly? Not suck at receiving the HTTP commands from the webserver but suck at not receiving the HTTP commands from the PHP. :-) I understand how the browser/webserver communication work so no wonder why it doesn't

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

2004-03-23 Thread Scott Fletcher
Why not delete that part of the 3rd party code then? Or send your Location header before you call it? Curl won't help you here, for the same reasons that fsockopen won't work. Not sure about deleting the part of the 3rd party code though, I had thought about it alot and I had been itching for

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

2004-03-23 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: Application -- Web Browser/Web Server Presentation -- HTTP/HTTPS/SSL and language (HTML/JavaScript, etc). Session -- Browser-Server connection, etc. Transport -- Port 80/Port 443, packet transfer control, etc. Network -- IP Address/Internet/Router

[PHP] http webmail problems.

2004-03-23 Thread Tom Reed
On some webmail programs, when I send them an email from php, they appear as being blank emails. Here's the code I am using: $headers .= From: \$WEBSITE_name\ $ADMIN_email\n; $headers .= X-Sender: $ADMIN_email\n; $headers .= X-Mailer: $WEBSITE_name Mailer\n; // mailer $headers .=

[PHP] Null Variables after session_register() ( Radio Inputs Problem )

2004-03-23 Thread gohaku
Apologies if this has been asked before, I'm experiencing problems with Session Variables and Radio Inputs values. For some reason, after I use session_register(number) where $number has 3 possible values { 1,2,3 }, $number IS NULL. If I don't use session_register(number), $number IS NOT NULL.

[PHP] Re: http webmail problems.

2004-03-23 Thread Justin Patrin
Tom Reed wrote: On some webmail programs, when I send them an email from php, they appear as being blank emails. Here's the code I am using: $headers .= From: \$WEBSITE_name\ $ADMIN_email\n; $headers .= X-Sender: $ADMIN_email\n; $headers .= X-Mailer: $WEBSITE_name Mailer\n; // mailer

[PHP] Re: Null Variables after session_register() ( Radio Inputs Problem )

2004-03-23 Thread Justin Patrin
Gohaku wrote: Apologies if this has been asked before, I'm experiencing problems with Session Variables and Radio Inputs values. For some reason, after I use session_register(number) where $number has 3 possible values { 1,2,3 }, $number IS NULL. If I don't use session_register(number), $number

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Also remember to keep in mind, some user's browser had the cookie disabled. Once that happen then it wouldn't work. John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Fletcher wrote: Um, you would be able to jump out of the admin area (logged in area) to

[PHP] CGI Error

2004-03-23 Thread Alex Hogan
Hi All, I am getting this error when I trying to pass some url params; CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: And nothing Has anybody seen this before? I did a search and it seems that there are a

[PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Sheeraz fazal
Hi All, I have a list box in a page (html select tag with multiple selection option). Items are added dynamically in list box, using javascript. Can i get all elements of listbox in my php code. If i do $_POST['select_tag_name']. I get a variable not an array. Thus getting only one item.

Re: [PHP] Re: replacing chars in input

2004-03-23 Thread David T-G
Justin, et al -- ...and then Justin Patrin said... % % David T-G wrote: % % I would like to make things easier for my users and replace all of the % garbage characters % % `';:[EMAIL PROTECTED]*()[]{}/?\|+= % % plus white space (\s) with underscores in the input. I am, however, % having

RE: [PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Pablo Gosse
Sheeraz fazal wrote: Hi All, I have a list box in a page (html select tag with multiple selection option). Items are added dynamically in list box, using javascript. Can i get all elements of listbox in my php code. If i do $_POST['select_tag_name']. I get a variable not an array. Thus

Re: [PHP] Image Storage

2004-03-23 Thread David T-G
Matt -- ...and then Matt Palermo said... % % 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? This has

[PHP] Storing encrypted data in a database with

2004-03-23 Thread Jay Blanchard
Good afternoon! I am storing some encrypted data using PHP to do the encryption and a MySQL database. I have encountered a couple of times where I get back a query sytax error. INSERT INTO `test`.`tblEncTest` (`encAlg`, `encMode`, `encIV`, `reqName`, `reqSSN`, `reqEMail`) VALUES ( 'blowfish',

[PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
Hey gang, Ok here's my problem, I'm in the midst of creating a string replace to work on a rtf file that is on the server, this fuctionallity works perfect with GET but not POST, I guess I don't understand why. The reason I don't want to use GET over POST is due to the character restrictions. I

[PHP] PHP 4.3.4 EAPI

2004-03-23 Thread Jordan S. Jones
Hello all.. For some odd reason, I am having a very very difficult time compiling PHP with EAPI support.. Here is my configure line: CFLAGS= -DEAPI \ ./configure \ --with-apxs \ --with-config-file-path=/etc \ --disable-short-tags \ --with-zlib \ --with-bz2 \ --with-curl \ --with-mcrypt \

Re: [PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Sheeraz fazal
Thanks. As same select element is used in PHP and JavaScript. Naming a tag ending in sqare brackets [] is JavaScript error. Till now either PHP will not produce desired results or JavaScript will give me error :( Pablo Gosse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sheeraz fazal

Re: [PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Sheeraz fazal
My Mistake. I over looked :( Pablo Gosse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sheeraz fazal wrote: Hi All, I have a list box in a page (html select tag with multiple selection option). Items are added dynamically in list box, using javascript. Can i get all elements of

Re: [PHP] Storing encrypted data in a database with

2004-03-23 Thread John W. Holmes
Jay Blanchard wrote: You have an error in your SQL syntax near 'HXppT 7 GH' ) ' at line 1 Now, if you look closely you can see and additional single quote in R'HX. I cannot use addslashes() here can I? Or should I base64_encode each item and then decode on the way back out. Any thoughts

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread John W. Holmes
Scott Fletcher wrote: Also remember to keep in mind, some user's browser had the cookie disabled. Once that happen then it wouldn't work. Very true. If that was the case, you'd have to maintain the session ID in every URL/form for the private area and also provide it in any URLs that go from

Re: [PHP] $_POST not working with str_replace

2004-03-23 Thread John W. Holmes
PHP Email List wrote: Ok here's my problem, I'm in the midst of creating a string replace to work on a rtf file that is on the server, this fuctionallity works perfect with GET but not POST, I guess I don't understand why. [snip] $name = $_POST['FNAME']; [snip] $output =

Re: [PHP] Storing encrypted data in a database with

2004-03-23 Thread Evan Nemerson
What version of mysql are you using? IIRC, there is support for AES in newer (4+?) versions. If I were you, I'd handle are the encryption and decryption in the database, if possible. Yep, http://www.mysql.com/doc/en/Encryption_functions.html On Tuesday 23 March 2004 02:04 pm, Jay Blanchard

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
PHP Email List wrote: Ok here's my problem, I'm in the midst of creating a string replace to work on a rtf file that is on the server, this fuctionallity works perfect with GET but not POST, I guess I don't understand why. [snip] $name = $_POST['FNAME']; [snip] $output =

[PHP] REGISTER_GLOBALS set to off and other issues

2004-03-23 Thread Alisa Davis
I have REGISTER_GLOBALS set to off. I have read and read, but cannot figure out what I need to do code wise to keep from getting the following message: Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread Chris W. Parker
PHP Email List mailto:[EMAIL PROTECTED] on Tuesday, March 23, 2004 3:08 PM said: This is becoming very odd! Possible bug? I hate throwing that out there but it doesn't make sense why one would work and the other wouldn't since all any of them are doing is holding strings. Any other

Re: [PHP] Re: Null Variables after session_register() ( Radio Inputs Problem )

2004-03-23 Thread gohaku
Thanks. Below is what I changed to session.php. Are there any possible problems with my changes? On Mar 23, 2004, at 4:28 PM, Justin Patrin wrote: ? /***Session.php**/ $varcount = 0; if($name){$varcount++;} if($number){$varcount++;} session_start();

[PHP] string concatination

2004-03-23 Thread Matthew Oatham
Hi, What is the correct way, using php to join to strings, vars or other wise. i.e. how do I join $string1 = hello; $string2 = world; do i do $string1 . $string2; and what about .. $string2 = $string1 . world; Is that correct?

RE: [PHP] string concatination

2004-03-23 Thread Chris W. Parker
Matthew Oatham mailto:[EMAIL PROTECTED] on Tuesday, March 23, 2004 3:59 PM said: Hi, hi. What is the correct way, using php to join to strings, vars or other wise. [snip] i.e. how do I join $string1 = hello; $string2 = world; do i do $string1 . $string2; [snip] Is that

Re: [PHP] Clearing Post Data with IE

2004-03-23 Thread Chris Thomas
I tried using the Header('location: ') but it seems the posted data follows the redirection Im going from my main page to a processing page then back to my main page. i printed $_POST on the main page and it still has the values that were originally posted to the processing page. Also after

RE: [PHP] $_POST not working with str_replace

2004-03-23 Thread PHP Email List
what happens if you do the following? ?php $name = $_POST['FNAME']; echo ::$name::; $output = str_replace(FNAME, $name, $output); ? ?? I tried that, but I know I can get the values from the $_POST array as per John's email about using print_r($_POST) to see what was showing. And yes I get

  1   2   >