RE: [PHP] sessions and domains

2003-05-28 Thread Steven Kallstrom
Bk, You would have to somehow pass all session variables onto the new host since session variables are stored server-side. You would have to have a function that took all session variables and passed them to the new domain including session id... then you would need a function that would

Re: [PHP] How can I change the timezone?

2003-05-28 Thread Erick
Thank you. I added 43200 then slove this problem. -- "Jay Blanchard" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] [snip] How to do this? [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracti

[PHP] Re: secure code

2003-05-28 Thread Anil Kumar K.
Here is exactly what you are looking for: "The Open Web Application Security Project" http://www.owasp.org/ best. Anil On Wed, 28 May 2003, Tim Burgan wrote: > Hello, > > I'm wondering if you can recommend any resources that discuss writing secure > code and how to put the best methods in

RE: [PHP] How can I change the timezone?

2003-05-28 Thread Jay Blanchard
[snip] How to do this? [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php [/snip] Use mktime http://us

Re: [PHP] How can I change the timezone?

2003-05-28 Thread Erick
How to do this? -- "Jay Blanchard" <[EMAIL PROTECTED]> ???:[EMAIL PROTECTED] [snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.n

[PHP] mysq_connect - flags

2003-05-28 Thread Armand Turpel
Hi, Is there any body who have experience with the flags in mysql_connect() in php >= 4.3 . Especially the MYSQL_CLIENT_COMPRESS flag. I dont know if it works or not. I cant make any difference. Should php must be compiled with a special flag to get work this? atur -- PHP General Mailing Lis

RE: [PHP] How can I change the timezone?

2003-05-28 Thread Jay Blanchard
[snip] I am in Hong Kong and the server is in US. I can't change the server setting. [/snip] How about getting the server time and then adding or subtracting from that to get the appropriate time? http://us2.php.net/manual/en/function.time.php HTH! Jay -- PHP General Mailing List (http://www.

[PHP] How can I change the timezone?

2003-05-28 Thread Erick
I am in Hong Kong and the server is in US. I can't change the server setting. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Update to DB

2003-05-28 Thread David Grant
Kalle Saarinen wrote: Hello, I was just wondering how to update data to database from html text field. I have a form that retrieves data from dbase and put's values into text field in a web page. I want to be able to modify data and then save it dbase by hitting save button (also form object). i

RE: [PHP] Update to DB

2003-05-28 Thread Jay Blanchard
[snip] I was just wondering how to update data to database from html text field. Anyone know what is the proper way to do this? [/snip] The action for your form can contain an SQL UPDATE statement where the values in the database are updated with the values in the form. Fairly simple. Here is an

[PHP] Trouble With FTP_PUT Please Help!

2003-05-28 Thread Adnan
Hi, i have been having trouble working out how to upload an image, the most progress ive made is putting a blank file on the server, but thats it, any suggestions anyone?? Im using PHP 4.3.2, Apache 1.3.27 here is the code im using! photoposted.php postphoto.php "; echo "Click the Browse bu

[PHP] Update to DB

2003-05-28 Thread Kalle Saarinen
Hello, I was just wondering how to update data to database from html text field. I have a form that retrieves data from dbase and put's values into text field in a web page. I want to be able to modify data and then save it dbase by hitting save button (also form object). ie. $sql="SELECT col1

[PHP] Re:Re: [PHP] About Guest Book\\\'s messages....

2003-05-28 Thread fongming
Hi, sir: I tried it but also failed. For One Chinese Character is composed with two bytes, and between every word and word in a line, there is no space " ",(Not like english). For example: English's thank you is : Thank you very much! Chinese's thank you is : ¯uªº¦hÁ±z¤F¡I and some word's sec

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread David Grant
Leif K-Brooks wrote: To maintain absolute compatibility, just use $HTTP_GET_VARS. It's availalable in all PHP versions, just deprectaed in versions here $_GET is available. I would've thought that $HTTP_*_VARS will be deprecated sometime in the future. It might be an idea to write your own ac

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Sichta Daniel
I think, you can write some wrapper arround this and in some config file just add one variable which will tell the script about PHP version. so You can than use something like this: switch (VERSION) { case 4.0: .. } DS -Original Message- From: Jay Blanc

php-general Digest 28 May 2003 11:52:08 -0000 Issue 2083

2003-05-28 Thread php-general-digest-help
php-general Digest 28 May 2003 11:52:08 - Issue 2083 Topics (messages 149176 through 149228): secure code 149176 by: Tim Burgan 149181 by: Marco Weber 149182 by: Evan Nemerson Re: how to read the stuff that got piped ("|") to the script? 149177 by: Joe Stump

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
Thanks all! I think that I'll check for both variables to be absolutely 100% sure. I could easily imagine future version of PHP slowly getting rid of deprecated stuff like this to improve speed or something... Besides, the word "deprecated" scares me ;) Daniel "There are 10 kinds of people - tho

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Jay Blanchard
[snip] To maintain absolute compatibility, just use $HTTP_GET_VARS. It's availalable in all PHP versions, just deprectaed in versions here $_GET is available. [/snip] Just to be perfectly clear on this. Let's say that I am writing an application that I am going to release to the public (for fre

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Leif K-Brooks
To maintain absolute compatibility, just use $HTTP_GET_VARS. It's availalable in all PHP versions, just deprectaed in versions here $_GET is available. [EMAIL PROTECTED] wrote: Thank you! =) Okay, okay... Sorry to keep rambling on like this, but I just need to get this 100% straight: I read

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
Thank you! =) Okay, okay... Sorry to keep rambling on like this, but I just need to get this 100% straight: I read up on the predefined variables on php.net, and as you said, in older PHP versions, the $_GET equivalent was $HTTP_GET_VARS, and that did the same as $_GET. So, the RegisterGlobals

[PHP] detect proxy

2003-05-28 Thread sonjaya
dear milist any body now script to detect browser also ip event using proxy public or high anonymous .thank's -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] flawless script

2003-05-28 Thread David Grant
sven wrote: you can use the default: statement as last case in switch, too. I always use default: to exit() the script, as something is obviously fubar if it gets there... -- David Grant Web Developer [EMAIL PROTECTED] http://www.wiredmedia.co.uk Tel: 0117 930 4365, Fax: 0870 169 7625 Wired Med

Re: [PHP] sessions and domains

2003-05-28 Thread David Grant
bk wrote: I've to set up a shared shopping cart to buy items from four different sites and pay them at once passing trough a single checkout. Provided that these sites are hosted on the same server (actually in the same directory), but have different names, is it possible to share php sessions acr

Re: [PHP] flawless script

2003-05-28 Thread sven
you can use the default: statement as last case in switch, too. "Jason K Larson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Greetings- > > I prefer to check the $_SERVER['REQUEST_METHOD'] before I do anything in a script that > operates for both GET and POST methods. Also

[PHP] Triggers & events with objects

2003-05-28 Thread Axel Tietje
Hi, I would like to do the following When an objects method is called like this: $test= new Testclass; $test->someMethod ($someArgument); I'd like to have an event handler outside Testclass to log this event, like this: function event_handler ( $method_name, $obj [, mixed parameter [, mixed...

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
Maybe they could include a quick "overview" of the latest changes as well as a link to the on-line manual in your "sign-up" message when joining the list? On Wed, 2003-05-28 at 11:46, Chris Hayes wrote: > Could someone with power over php.net please try to make this change in > variable handling

[PHP] sessions and domains

2003-05-28 Thread bk
Hi I've to set up a shared shopping cart to buy items from four different sites and pay them at once passing trough a single checkout. Provided that these sites are hosted on the same server (actually in the same directory), but have different names, is it possible to share php sessions across m

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
Sorry, I missunderstood your question about backwards compatible. YES, accessing your variables this way ($_POST[] etc), IS backwards compatibel, ie, they are placed in those arrays anyways, BUT, the method is not backwards compatible to older versions of PHP, there the arrays were called $HTTP_GE

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
It's not backwards compatible. If your code simply mentioned the variable name and not the method array, it will not work (as you noticed) when registerglobals is turned off ( for security reasons). However, there are many ways of making your old code work, the easiest is probably to extract the $

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
Hehe, guess I'm not the first to ask! =) I did actually read a lot, but at first it seemed to be my sessions that were destroyed, and indeed the session handling has changed, so... Forgot to read again I guess =) - Original Message - From: Chris Hayes To: [EMAIL PROTECTED] Sen

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
Thank you mate, this works! =) Just curious, though... I'd like to keep my scripts as compatible as possible, so can you tell me if this method is backwards compatible? I've never used this method before, the variables have just "been there" on a subsequent page. I'm kinda fearing for my previous

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread PHPSpooky
Glory! Did you try turning Register_Globals = On in your php.ini ?? PHPSpooky __ "If God had wanted me otherwise, He would have created me otherwise." - Johann Wolfgang von Goethe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Jonathan Wilkes
not being funny ... but, you should read release notes, that's what they are for regards Jonathan -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 10:46 To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables don't pass... *sniff* Could someone with power

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Chris Hayes
Could someone with power over php.net please try to make this change in variable handling very extremely clear for downloaders? Make it something you cannot miss? Not everybody reads release notes and readme.txt files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] php working with iis

2003-05-28 Thread Steve Barlow
Ok, I'm having problems with configuring all the things together. I have loaded on Php 4.3.1, Mysql, IIS 5.1 and Dreamweaver MX, but I can't get php to work from dreamweaver, well i can't say it works at all having used a piece of code to check php works in html. I have installed php but I get a

Re: [PHP] Variables don't pass... *sniff*

2003-05-28 Thread Petre Agenbag
RegisterGlobals = Off You need to access these variables by $_POST[aVariable] or in your case ( adding the variables to the end of a URL means you are using the GET method: $_GET[aVAriable] etc. On Wed, 2003-05-28 at 11:37, [EMAIL PROTECTED] wrote: > Hi all! > > I'm using Apache 2.0.45, PHP 4.

[PHP] Variables don't pass... *sniff*

2003-05-28 Thread daniel
Hi all! I'm using Apache 2.0.45, PHP 4.3.2RC4, and MySQL 3.23.49 on Windows 2003 Server Standard. I have a problem passing variables between pages. They simply get lost. Neither GET nor POST pass values, and even "hardcoding" them into the URL, like htpp://localhost/comeon.php?aVariable=ding&an

Re: [PHP] flawless script

2003-05-28 Thread Jason k Larson
Greetings- I prefer to check the $_SERVER['REQUEST_METHOD'] before I do anything in a script that operates for both GET and POST methods. Also, especially for a switch statement, I'd check for the existance of the variable first, you know some sort of isset() or !is_null() test. Hope that hel

Re: [PHP] id & name when identifying html elements

2003-05-28 Thread Jason k Larson
PHP uses only the 'name' attribute of an element to assign the variable to. You can use 'id' and 'name' together, but the two are different, for instance no two form elements should have the same 'id', but depending on multiform pages with similar inputs, an identical 'name' attribute could be u

[PHP] Re: how to process incoming mails?

2003-05-28 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > i'm using SuSE Linux 8.1 with Apache 2 and PHP 4... > here is what i want to do: > if someone writes a mail to [EMAIL PROTECTED] it should be directly > processed by a PHP script... > (I need it for a simple script, that validate

[PHP] flawless script

2003-05-28 Thread electroteque
hi guys, how does everyone usually go about posting within a script ? i usually contain everything i need to do for a script within the same script without the need for a seperate file for posting like so switch ($_POST['action']) { case 'insert': insert into db br

Re: [PHP] About Guest Book\'s messages....

2003-05-28 Thread Jason k Larson
Greetings, How about some simple word detection attempts like: $words = explode (' ',$input); //create array $new_words = ''; //empty foreach ($words as $word) { if (strlen ($word) <= 40)) { $word = wordwrap ($word,40,"\n",1); } $new_words .= ' '.$word; //add word(s) to string } $new_words

[PHP] id & name when identifying html elements

2003-05-28 Thread Roland Tarver
Hi I've got a question about about naming html components (text fields, select boxes etc) when submitting a form to a php page. First I tried identifying an element using the "id" attribute and found that it was not being posted to the php page. When I use the "name" attribute it did get posted

[PHP] About Guest Book\'s messages....

2003-05-28 Thread fongming
Hi, Sir: There may be someone leave a message like following: U and it expand the width of

Re: [PHP] simple "while" loop terminated for no reason

2003-05-28 Thread Raymond
hi david. thanks for your reply. the error will occur even when value is reduced to 500. by clicking on the refresh button several times, it will produce different output. sometimes it might display garbage even before the http header too. realising that it might be a problem beyond the codes, su

Re: [PHP] My Sincere Request!![Scanned]

2003-05-28 Thread Gerhard Petrowitsch
This is actually not even fun. If you would do 'business' with them, it could be that you end up in Nigeria and your family gets blackmailed to get you back (best case), or you just get killed (worst case)... Regards, Gerhard - Original Message - From: "David Grant" <[EMAIL PROTECTED]> To:

Re: [PHP] php 4.3.1 / latest

2003-05-28 Thread David Grant
[EMAIL PROTECTED] wrote: where can i find php (version 4.3.1 or latest ) rpm? i need to upgrade php on my RHL 8.0 box for its running on 4.2.2 and i cant use many inbuilt functions. http://rpmfind.net//linux/RPM/PLD/dists/ra/updates/security/i686/php-4.2.3-9.i686.html If this is the wrong proces

Re: [PHP] My Sincere Request!![Scanned]

2003-05-28 Thread David Grant
Michael Egan wrote: And what exactly has this got to do with PHP :-) It's important to know that there are PHP users all around the world, including Nigeria! Perhaps Rev. Dr. Ego Momoh wants someone on the list to build him a web site, so he can provide even more information on this scam^H^H^H

Re: [PHP] Regexp question...

2003-05-28 Thread David Grant
Andrew D. Luebke wrote: > OK, here is the regexp command I am trying to use: > > $split_filename = preg_split('/\./', $_FILES["userfile"]["name"], -1); > > However, when I do a count($split_filename) I don't get what I expect. > For instance if the input is: > > abc.xyz.123 > > I get 2 fro

[PHP] Re: Error with directories

2003-05-28 Thread Catalin Trifu
Hi, It seems to me that a script from /var/www/wahtever/ includes a script called algo.php which can not be found by PHP, because, probably it is in the /var/www/ dir. Either you add /var/www/ to the php.ini include_path, or when you include files you give the full pat

[PHP] Re: cheap PHP+SQL WebHosting

2003-05-28 Thread nabil
www.spiderhosts.com i'v been for so long with them, and the service is good Nabil www.cabms.org www.d2ue.com "Arcadius A." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello! > Please, do you know of any cheap PHP+SQL web hosting company? > > I know we always get what we pay for

Re: [PHP] ANY POSTNUKER? Security problem!

2003-05-28 Thread nabil
Thanks so much, it's done "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You might still have the old cookie set with long lifetime, and while > this cookie exists, no new is created. > > nabil wrote: > > >I set the life time to 0 and still logged in even I dis

[PHP] php 4.3.1 / latest

2003-05-28 Thread km
Hi all, where can i find php (version 4.3.1 or latest ) rpm? i need to upgrade php on my RHL 8.0 box for its running on 4.2.2 and i cant use many inbuilt functions. kindly enlighten, regards, KM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.