Re: [PHP] Inserting leading 0 infront of a variable

2002-02-27 Thread Andrey Hristov
This seems an endless loop for me. You do not alter the $myrowp[topic_id] so its length is untouched => if it is <6 you will never get away from the loop. May be you want this. # create topic number 6 digit $count=strlen($myrow[topic_id]) ; while ($count-- < 6){ $leading_digits .= '0'

Re: [PHP] Inserting leading 0 infront of a variable

2002-02-27 Thread Rasmus Lerdorf
$leading_digits = '0' . $leading_digits; although what you probably want is strpad() or sprintf() On Thu, 28 Feb 2002, Andy wrote: > Hi guys, > > is there a possibility to add a string in front of a veriable like the .= > commands adds it to the end? I would like to create a 6 digit number out

[PHP] Inserting leading 0 infront of a variable

2002-02-27 Thread Andy
Hi guys, is there a possibility to add a string in front of a veriable like the .= commands adds it to the end? I would like to create a 6 digit number out of a e.g. 2 digit one. Underneath is my not working code. Maybe someone knows how to solve that. Thanx Andy # create topic number 6 digi

[PHP] Re: unsetting global variables from an function

2002-02-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Enrico Weigelt) wrote: > is there a way for unsetting an global variable from an function ? > > global $var; unset ( $var ); > > does not work since, unset only removes the reference in from > local namespace. but i need to remove it from

Re: [PHP] unsetting global variables from an function

2002-02-27 Thread Andrey Hristov
Try unset($GLOBALS["var"]); Best regards, Andrey Hristov - Original Message - From: "Enrico Weigelt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 9:44 AM Subject: [PHP] unsetting global variables from an function > > hi folks, > > is there a way for

[PHP] unsetting global variables from an function

2002-02-27 Thread Enrico Weigelt
hi folks, is there a way for unsetting an global variable from an function ? global $var; unset ( $var ); does not work since, unset only removes the reference in from local namespace. but i need to remove it from the global one. any chance to do it ? ~-n -- Enrico Weigelt== meT

[PHP] Re: regex

2002-02-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Paul A. Procacci) wrote: > ticket_id=3&change_name=status&change_value=3&ticket_id=3&2=&1=& > > And all I want is 2=&1=&. Well, the closest I came was : > > $string = preg_replace("/[^0-9]+\=/", "", $QUERY_STRING); Assuming > QUERY_STRING w

[PHP] regex

2002-02-27 Thread Paul A. Procacci
Hey all, I'm been programming in php for a while, but I'm stumpt with this one. You know the funny thing? It's probably really simple. Anyway here it is. Assume I have this query string: ticket_id=3&change_name=status&change_value=3&ticket_id=3&2=&1=& And all I want is 2=&1=&. Well, th

[PHP] PHP New zealand Mailing List

2002-02-27 Thread neeraj
Hi Guys, Any one know of any new zealand php mailing list. Please do let me know. Or any one on this list working on php in New Zealand please let me know. Thanks in advance. Regards, Neeraj Rattu

[PHP] errorr log

2002-02-27 Thread Erwien Samantha Y
Hello guys, anyone can help me with this kind of error log tail -f /www/log/error_log [ cut ] PHP Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 PHP Warning: Failed to write session data (files

RE: [PHP] Hosting companies that offer PHP?

2002-02-27 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm This is your one stop shop for hosting. WeberDev.com is hosted there and I can tell you that their service is amazing. They are fast, reliable and more than anything, very professional (specially in PHP / MySQL). Sincere

[PHP] Parsing Custom Codes Embedded in DB Text

2002-02-27 Thread Monty
Hi Everyone, I'm new to PHP, and am learning a lot by reading posts here and two PHP books. I'm going to be writing some content management scripts, and one thing I want to do is allow writers to embed some simple codes in their text such as: [LINK=http://www.mysite.com]Click here for info.

[PHP] Can mysql add qty directly?

2002-02-27 Thread Jan Grafström
Hi! I have a product table and want to update the qty. $insert = "UPDATE products SET soldqty='$sqty' WHERE articelno='$articleno'"; $result = @mysql_query ($insert); I want the code to automatically add $sqty to soldqty and not overwrite it like I do above. Do I need to first make a separate que

[PHP] chroot for fopen()+friends ?

2002-02-27 Thread Enrico Weigelt
hi folks, is it possible to limit the php file access functions to specific directories (just like chroot) and disable all exec() stuff ? ~-n -- Enrico Weigelt== meTUX IT services software development, IT service, internet security solutions www: http://www.metux.de/pho

RE: [PHP] mysql php - while loops

2002-02-27 Thread Craig Westerman
Thanks for the reply. This is what I came up with and it appears to work. Thoughts? Craig ><> [EMAIL PROTECTED] $count = 1; while ($data = mysql_fetch_array($results)) { ?> - - - mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 6:51 PM To: 'Craig W

[PHP] numeric numbers to alpha strings.

2002-02-27 Thread Floyd Baker
Hello. Are there any conversion routines around for changing numeric dollar amounts to spelled out strings for putting on checks? I wrote a quick basic routine a long time ago. It took any number such as '125.32' and created a string 'one hundred, twenty-five dollars and 32 cents'. It works j

RE: [PHP] isset?

2002-02-27 Thread Niklas Lampén
If $submit is 0/NULL/FALSE and you do "if ($submit)" you'll receive FALSE. With "if (isset($submit))" you'll receive TRUE. In other words, isset() checks if variable is set at all and is() checks if the expression is true. Niklas -Original Message- From: jtjohnston [mailto:[EMAIL PRO

[PHP] testing

2002-02-27 Thread mike koldychev
testing, testing. _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if(isset($submit))

2002-02-27 Thread jtjohnston
Over kill? Martin Towell wrote: > or have a hidden field, maybe, called "submit" > > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 4:33 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] if(isset($submit)) > > So I can forget using

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, CC Zona wrote: > In that case, the "auto_prepend_file" config option may be of interest. > It's described on the page previously mentioned. Awesome... that was just what I needed. I hadn't made the connection before. Thanks TjL -- PHP General Mailing List (http://www.p

Re: [PHP] if(isset($submit))

2002-02-27 Thread Richard Baskett
Type image is great to use! Just make sure that when you are testing for the image variable you test for the x and y coordinates.. So name_x and name_y. Even better and a good habit would to make sure you have a hidden field with the same name as your submit button, because a lot of people inclu

RE: [PHP] if(isset($submit))

2002-02-27 Thread Martin Towell
or have a hidden field, maybe, called "submit" -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] if(isset($submit)) So I can forget using type="image" :( Wah, it's not fair! :)

Re: [PHP] BBEdit

2002-02-27 Thread Richard Baskett
Yep sure is! Just use a grep multi-file replace in BBEdit, and you'll have it! :) Just do some tests first with the grep to make sure you have it right before you edit all those pages :) Rick Once my heart was captured, reason was shown the door, deliberately and with a sort of frantic joy. I

[PHP] isset?

2002-02-27 Thread jtjohnston
So what is the good of isset? What does if(isset($submit)) do differently than if($submit) ?? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] BBEdit

2002-02-27 Thread Josiah Wallingford
I have a website with about 300 different pages. Each of those pages has a different description. I need to replace all of those with one description. Is there a way to replace all things within two different tags? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] if(isset($submit))

2002-02-27 Thread jtjohnston
So I can forget using type="image" :( Wah, it's not fair! :) J Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $submit_x and $

Re: [PHP] if(isset($submit))

2002-02-27 Thread jtjohnston
Nope, not following. :) More particularily why will isset accept type=submit and not type=image ? Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would g

Re: [PHP] if(isset($submit))

2002-02-27 Thread Richard Baskett
It's because when you submit using an image they submit the exact x and y coordinates that were clicked on. Hope it helps! Rick "We do not have to visit a mad house to find disordered minds; our planet is the mental institution of the universe." - Unknown > From: jtjohnston <[EMAIL PROTECTED]

RE: [PHP] if(isset($submit))

2002-02-27 Thread Martin Towell
it's a browser thing, i guess, when you use an image as a submit button Martin -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] if(isset($submit)) I s'pose, but where/why are you getting su

Re: [PHP] if(isset($submit))

2002-02-27 Thread jtjohnston
I s'pose, but where/why are you getting submit.x=118&submit.y=20 Martin Towell wrote: > I used this code > > > value="submit"> > > > when I clicked on the image, I got this url > > file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 > > so php would get this as $submit_x and $submit_

RE: [PHP] if(isset($submit))

2002-02-27 Thread Martin Towell
I used this code when I clicked on the image, I got this url file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20 so php would get this as $submit_x and $submit_y HTH Martin -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:

[PHP] Re: PHP MAIL function...why wont it work????

2002-02-27 Thread jtjohnston
Your smtp is valid? Try error checking for that? See you php.ini. If you are running it on localhost you might try the same smtp that is used in your emailer. I gaffed on that once. :) Brad Wright wrote: > Hi all... I have a line in a page that should send me an email when the page > is loaded.

[PHP] PHP MAIL function...why wont it work????

2002-02-27 Thread Brad Wright
Hi all... I have a line in a page that should send me an email when the page is loaded. Here is the line i am using: mail("[EMAIL PROTECTED]", "worked", "Line 1\nLine 2\nLine 3"); when i load the page...i get NO error msgs, but the function does not send the mail. There is no record of any ac

[PHP] if(isset($submit))

2002-02-27 Thread jtjohnston
Has anyone tried: instead of : >\"> I can't get this to work: if(isset($submit)) with: I'm not coding correctly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] a question of syntax ...

2002-02-27 Thread Tim Thorburn
Hi, First off, let me say thank you to all those who replied helping me get magic quotes turned back on my server. Now that I'm fully able to enter quotes and such into my database and do not need to put the addslashes() command in ... should I? Is it in a better style to include the addslas

[PHP] Preventing other users on my server from viewing my php.

2002-02-27 Thread Kevin Halverson
Can anyone tell me a way I can prevent other users on my server from viewing my php files? (I have mysql passwords in these files, and the way it is now, anyone with an account on my server can cd to my www directory and view my files). I could do something like this: -rw-r- me nobody i

[PHP] Hosting companies that offer PHP?

2002-02-27 Thread Tom
I think I might be about to discover that our hosting company neither supports the GD-related functions in php, nor has any plans to do so. Consequently, I may very well be looking for another hosting company, and I'd be interested in any recommendations from the php community at large, prefe

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona
In article , [EMAIL PROTECTED] (Timothy J. Luoma) wrote: > > > I have a virtual domain under Apache and do not have access to the global > > > php.ini file > > > > > > Apache lets me set site-wide configuration in an /.htaccess file > > > > > >

RE: [PHP] Re: Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Kearns, Terry
Yes, and don't put a space between hash (#) and INCLUDE. I've been cought out before ;) [TK] > -Original Message- > From: Timothy J. Luoma [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 28 February 2002 3:02 PM > To: Richie Chauhan > Cc: [EMAIL PROTECTED] > Subject: [PHP] Re: Apache Se

[PHP] Re: Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, Richie Chauhan wrote: > > > FYI I think your SSI syntax is wrong, it should be TjL ps -- I emailed Richie offlist that my experience with PHP was that it was MUCH faster than SSI, fwiw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
On Wed, 27 Feb 2002, CC Zona wrote: > > I have a virtual domain under Apache and do not have access to the global > > php.ini file > > > > Apache lets me set site-wide configuration in an /.htaccess file > > > > Is there something similar for PHP? > > Forget "similar", you can set PHP config opti

RE: [PHP] Enter the clueless newbie

2002-02-27 Thread Kearns, Terry
I don't have any solutions but here are some comments that may be useful. I would guess that your user agent (web browser) is not detecting the mime type properly. This usually happens if the web server is not properly configured to send .php files as text/html (see http.conf if applicable). Ther

Re: [PHP] Enter the clueless newbie

2002-02-27 Thread Bogdan Stancescu
This made me so curious that I copied your code - works just fine over here. What's the exact URL you're using to access this file (leave out the sensitive data). Bogdan Bob Rea wrote: >On Wednesday 27 February 2002 07:04 pm, Bogdan Stancescu >wrote: > >>Are you trying this via HTTP or on th

Re: [PHP] Enter the clueless newbie

2002-02-27 Thread Bob Rea
On Wednesday 27 February 2002 07:04 pm, Bogdan Stancescu wrote: > Are you trying this via HTTP or on the local file? > > Bogdan Oh sorry, running it on my linux box, SuSE 7.3, using apache, files in the same directory. Other files wiht php in them work well. This is my first try at forms and p

Re: [PHP] Enter the clueless newbie

2002-02-27 Thread Bogdan Stancescu
Are you trying this via HTTP or on the local file? Bogdan Bob Rea wrote: >Hi > >I am just starting to learn php. I'm using Larry Ullman's book in the >Visual Quickstart guide series.I have copied out of the book the >first example of a form in html and the corresponding php file to >display

[PHP] Enter the clueless newbie

2002-02-27 Thread Bob Rea
Hi I am just starting to learn php. I'm using Larry Ullman's book in the Visual Quickstart guide series.I have copied out of the book the first example of a form in html and the corresponding php file to display the info. When I click submit in the html page, Konqueror (KDE) asks me where I

Re: [PHP] fsockopen and HTTP Authorization

2002-02-27 Thread Bogdan Stancescu
You should have only one \r\n pair after the HTTP request AFAIK - only need two when the header ends. Bogdan Bas Jobsen wrote: >Hello, > >I try to do a HTTP Authorization with a fsockopen, but it doesn't seem to >work. Who can help? >$user and $passwd are set well, my code: >-- >$auth=base64_

Re: [PHP] 4.0.6 patch, not working

2002-02-27 Thread clarkron
> anyone else having issues with the 4.0.6 patch not downloading > correctly. I can't seem to extract it? > > __ > Mike Krisher > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Netscape opens the file as a text

[PHP] Squirrel Mail

2002-02-27 Thread Josiah Wallingford
Anybody know of a better script that Squirrel Mail? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Daily tech tip script

2002-02-27 Thread Josiah Wallingford
I will be hosting daily tech tips on www.sofast.net here shortly but need a script (perferably php using mysql) that will allow me to store about 3000 tips that he html based so that I can add pictures. If you goto http://www.sofast.net/techtips/index.htm you can see exactly what I need. I nee

[PHP] fsockopen and HTTP Authorization

2002-02-27 Thread Bas Jobsen
Hello, I try to do a HTTP Authorization with a fsockopen, but it doesn't seem to work. Who can help? $user and $passwd are set well, my code: -- $auth=base64_encode($user.":".$passwd); $header="GET /pa2/ HTTP/1.0\r\n\r\n"; $header.="Accept: text/html\r\n"; $header.="Authorization: Basic $auth\r\

[PHP] Help with Array Walk

2002-02-27 Thread Vidyut Luther
Hello, I have a question regarding array_walk.. I couldn't find any help on the website or on irc.. didn't know where else to look. I want to call a method in an object(class) , I can't seem to get it to work. the name of the array is $fieldname, when I run $check->is_aetters($textfield)

Re: [PHP] Changed localhost?

2002-02-27 Thread Jim Koutoumis
You sure Apache's still running ?? Here's a few things to check: 1. Check, that you still have the process running ? Processors dude. 2. Look at Apache's log files and see what happens after you try starting it. Errors ?? 3. Get to a prompt and type the command "netstat -na", without the quotes

[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona
In article , [EMAIL PROTECTED] (Timothy J. Luoma) wrote: > I have a virtual domain under Apache and do not have access to the global > php.ini file > > Apache lets me set site-wide configuration in an /.htaccess file > > Is there something sim

[PHP] 4.0.6 patch, not working

2002-02-27 Thread Mike Krisher
anyone else having issues with the 4.0.6 patch not downloading correctly. I can't seem to extract it? __ Mike Krisher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Writing to files

2002-02-27 Thread David Robley
In article <009701c1bf5f$1057c370$846712cb@iceberg>, [EMAIL PROTECTED] says... > > Question I have is, Anyway know of a better way to store temp > information? > > I have a problem that a script I use, uses many pages and after each > page the information from the form > Is stored and the next

[PHP] global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma
Hello folks I have a virtual domain under Apache and do not have access to the global php.ini file Apache lets me set site-wide configuration in an /.htaccess file Is there something similar for PHP? All the references I've been able to find seem to refer to php.ini but do not say if I can ma

RE: [PHP] REG_ECTYPE warning and eregi??

2002-02-27 Thread Pax
Thanks Kevin, Actually - it is my mistake while retyping the text since my development machine has no email - it is ) and I tried again and I do get this error in this line :-((( If (eregi("^([[:alnum:]]|_|\.|-)+@([[:alnum:]]|\.|-)+(\.)([a-z]{2,4})$",$HT TP_POST_VARS[email])) { } Paul --

RE: [PHP] REG_ECTYPE warning and eregi??

2002-02-27 Thread Kevin Stone
I didn't get a REG_ECTYPE warning but I did get a REG_PAREN type warning. The curly bracket '}' near the '$' should be an close parentheses ')'. :) -Kevin -Original Message- From: Pax [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 3:33 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Richie Chauhan
Thanks Martin - that does work. I was just thinking in ASP terms. But I am curious as to whether Server Side Includes can work together with php. Richie "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > why don't you just do this? > >include

[PHP] REG_ECTYPE warning and eregi??

2002-02-27 Thread Pax
Hi All, First I would like to thank you all for help with my previous questions. I am still newbie but I learning and hopefully one day, I will be able to pay it back. I am getting the REG_ECTYPE warning in the following line which verifies email address: If (eregi("^([[:alnum:]]|_|\.|-)+@([[:a

RE: [PHP] Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Martin Towell
why don't you just do this? -Original Message- From: Richie Chauhan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 6:40 AM To: [EMAIL PROTECTED] Subject: [PHP] Apache Server Side Includes mixed with PHP pages Hi all, First post to this list. I am trying to do the followi

[PHP] Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Richie Chauhan
Hi all, First post to this list. I am trying to do the following ***php file*** ***end php file In the php file the includes aren't parsed by the server, the php execution works. I have apache setup to do server side includes on .shtml files. I tried telling it

RE: [PHP] intranet security

2002-02-27 Thread Cal Evans
Scott, I too am struggling with a similar problem. I've poured over freshmeat.net and google.com looking for application frameworks for PHP that have this functionality in them. The only thing I've found of note is Alex Black and his crew over at www.binarycloud.com. This looks to be a great f

[PHP] Re: Reading a conf file

2002-02-27 Thread CC Zona
In article <01af01c1bfd7$be373ed0$0200a8c0@wiaka>, [EMAIL PROTECTED] (Brandon Orther) wrote: > Does anyone have a good idea of how I can pull the info out of a conf > file setup like this? Maybe pull it into an array. > > > ## Conf File ## > > domain.websites.com > > > newsite.worldwidew

Re: [PHP] Reading a conf file

2002-02-27 Thread Lars Torben Wilson
On Wed, 2002-02-27 at 13:43, Brandon Orther wrote: > Does anyone have a good idea of how I can pull the info out of a conf > file setup like this? Maybe pull it into an array. > > > ## Conf File ## > > domain.websites.com > > > newsite.worldwideweb.net > > > So I would get the domain.we

[PHP] Reading a conf file

2002-02-27 Thread Brandon Orther
Does anyone have a good idea of how I can pull the info out of a conf file setup like this? Maybe pull it into an array. ## Conf File ## domain.websites.com newsite.worldwideweb.net So I would get the domain.websites.com and newsite.worldwideweb.net ---

RE: [PHP] Re: Did everybody see the security warning at php.net?

2002-02-27 Thread Robert V. Zwink
According to: http://security.e-matters.de/advisories/012002.html "Finally I want to mention that most of these vulnerabilities are exploitable only on linux or solaris. But the heap off by one is only exploitable on x86 architecture and the arbitrary heap overflow in PHP3 is exploitable on most

[PHP] Re: Uploading Files through PHP

2002-02-27 Thread Andy
maybe your code is inside a function. If this is the case set the var to global. Andy "Georgie Casey" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to let users upload word files through a PHP form but its not > working! The script keeps te

[PHP] Re: Did everybody see the security warning at php.net?

2002-02-27 Thread Julio Nobrega Trabalhando
Yes :-) http://www1.dshield.org/pipermail/vuln/2002-February/07.html http://developers.slashdot.org/article.pl?sid=02/02/27/1845238&mode=thread&t id=169 http://security.e-matters.de/advisories/012002.html http://www.newsbytes.com/news/02/174818.html Doesn't affect Windows, right? --

[PHP] Unsuscribe

2002-02-27 Thread Dan Dougherty
Please unscribe me from this list I did not sign up for the stuff

[PHP] Did everybody see the security warning at php.net?

2002-02-27 Thread Robert V. Zwink
http://www.php.net/ [27-Feb-2002] Due to a security issue found in all versions of PHP (including 3.x and 4.x), a new version of PHP has been released. Details about the security issue are available here. All users of PHP are strongly encouraged to either upgrade to PHP 4.1.2, or install the patc

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
Whoops...helps if I write it legally. $dbStr = preg_replace("/'/", "/\\'/", $dbStr); $dbStr = preg_replace("/'/", "/''/", $dbStr); M On Wed, 27 Feb 2002, Matt Drake wrote: > I don't see why addslashes wouldn't work, but why not roll your own? > > $dbStr = preg_replace("/'/", "/\\'/"); > > I be

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
I don't see why addslashes wouldn't work, but why not roll your own? $dbStr = preg_replace("/'/", "/\\'/"); I believe that, in MySQL, you can also double-up single quotes to escape them: $dbStr = preg_replace("/'/", "/''/"); HTH Matt On Wed, 27 Feb 2002, Tim Thorburn wrote: > Hi, > > I've se

[PHP] Uploading Files through PHP

2002-02-27 Thread Georgie Casey
I'm trying to let users upload word files through a PHP form but its not working! The script keeps telling me that the file path doesn't exist. HERE'S THE CODE I USE IN THE FORM PAGE: is the code on the

RE: [PHP] DB2 from PHP : ODBC ?

2002-02-27 Thread Andrew Hill
Mário, It runs fine, either using the unified-ODBC or compiling PHP --with-iodbc as per the HOWTO at www.iodbc.org and using real ODBC drivers. As in every case with ODBC, the quality of your experience will be determined by the quality of the ODBC drivers you use. OpenLink provides free, non-e

[PHP] objects in sessions.

2002-02-27 Thread Aric Caley
If you register an object as a session variable, do you need to include the objects class *before* start_session()? What if I use serialize() on my object, and then register a variable with the serialized data; then I can start_session(), do some other things, then include the class definition, t

[PHP] DB2 from PHP : ODBC ?

2002-02-27 Thread Mario Bittencourt
Hi phpers, Does anybody know if accessing DB2 using ODBC runs ok ? I've never tried that and was wondering if there are any tips/limitations (like configuration settings on both ends...) ? Thanks, Mário -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Re: intranet security

2002-02-27 Thread Scott St. John
Thank you. What I am trying to avoid is doing a parsing of the string everytime a user comes in. My thought is to use a user table, a group table and then a permissions table that will allow the user to be a member of more than one group. Thank you, -Scott On Wed, 27 Feb 2002, Julio Nob

RE: [PHP] Unusual Form situation?

2002-02-27 Thread SpyProductions Support Team
Thanks for the help! Those output variables are pretty interesting - I didn't know that image maps could be built in PHP with relative ease. :) So I learned two things for the price of one. :) -Mike > -Original Message- > From: Sam Masiello [mailto:[EMAIL PROTECTED]] > Sent: We

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Julio Nobrega Trabalhando
Why isn't addslashes() working? You addslashes then you stripslashes() :-) Anyway, how about mysql_escape_string()? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=66

Fw: [PHP] maximum string length

2002-02-27 Thread DL Neil
Steven (and anyone else interested), I was working on email earlier in the day, and have just cleared my desk of all that 'junk'. Your reading for tonight (1024/1000/997 byte line length limits in email) can be found in the discussion of RFC 2646 available from sunsite.dk (and elsewhere) - one

[PHP] Re: intranet security

2002-02-27 Thread Julio Nobrega Trabalhando
I've done it :-) But be careful. There are dozens of way to implement this. My way is simple, but makes use of too many sql queries I believe. Could have stored everything in one line and grab it at user's login, but anyway My current way seems more logical to follow and update. I have

[PHP] Re: Form Annoyances

2002-02-27 Thread Lerp
Hi there :) Use the addslashes() function prior to insertion to database, and stripslashes() on retrieval from db before you display it. //prior to db insertion $myvar = addslashes($myvar); //on retrieval $myvar = stripslashes($myvar); Since you are wanting to display it to the user before in

[PHP] Re: Changed localhost?

2002-02-27 Thread Gary
Anthony Rodriguez wrote: > All of a sudden Apache is nor running correctly under Windows 98. > > It appears that somehow localhost was changed from 127.0.0.1 to > something else. > > Does the fact that I now have a 24/7cable connection to the Net cause > the problem? > > Thanks! > > Anthony

Re: [PHP] Checking for and @ and a .

2002-02-27 Thread Philip J. Newman
Yo thanks this dose work. (o; haven't got to functions in the book yet - Original Message - From: "Chris Burnett" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 28, 2002 8:25 AM Subject: Re: [PHP] Checking for and @ and a .

Re: [PHP] Form Annoyances

2002-02-27 Thread Steven Walker
James, Look into stripslashes(): http://www.php.net/manual/en/function.stripslashes.php and htmlspecialchars(): http://www.php.net/manual/en/function.htmlspecialchars.php Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Wednesday, February 27, 2002, at

[PHP] How to get the url of frameset

2002-02-27 Thread Patrick Anderson at WFW
Hi, Within a frame I would like to get the url of the frameset and include a different css dependent on the url. I am using apache and php, and first tried with HTTP_REFERER. However, this only works the first time you call the frame and not when you have a link (the referring page will be the fr

Re: [PHP] textarea

2002-02-27 Thread hugh danaher
Maybe it's just an issue of using "get" rather than "post". in the form. Hugh For every complex and difficult problem there is always a simple, easy answer--that's wrong. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002

[PHP] Getting the compression rate of a jpeg image possible?

2002-02-27 Thread Andy
Hi there, I am wondering if it is possible to get the compression rate of a jpeg file?! As I did read on php.net creating a jpeg gives you a third parameter with the compression. Default is 75 %. So asuming the user has an image compressed with 50 % and he does upload this picture through my ap

RE: [PHP] Unable to display images on browser

2002-02-27 Thread Narvaez, Teresa
Hello, Thanks for your help. This is what I have for file1.php and ddownloadfile.php. What I want is to click on "Donwnload now" link and be able to get the file out of the database and display it on the browser. Thank you in adavance, -Teresa file1.php --- SOME_HTLM_CODE_TO

Re: [PHP] appending to include_path

2002-02-27 Thread Jason Wong
On Wed, 27 Feb 2002, darcy w. christ wrote: > Jason Wong wrote: > > > > On Thursday 28 February 2002 02:30, darcy w. christ wrote: > > > Hi Jason, > > > > > > i think you misunderstood what i was asking. i am doing exactly what > > > you described below. My question is whether there is a way

Re: [PHP] Checking for and @ and a .

2002-02-27 Thread Chris Burnett
On 2/27/02 1:10 PM, "Philip J. Newman" <[EMAIL PROTECTED]> wrote: > I'm trying to make an email field and I would like to check that its valid > by checking for an @ and a . can someone point me in the right direction for > this. > > THanks > > > Philip J. Newman > Philip's Domain - Internet P

RE: [PHP] Checking for and @ and a .

2002-02-27 Thread James Hallam
Use a regular expression to test the variable submitted by the form. This is an excerpt from my usual validation script using ereg().. I'm sure you can adapt this for your purposes.. if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z

[PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Tim Thorburn
Hi, I've sent a few emails thus far regarding adding apostrophe's through a PHP script form into a MySQL database. The responses I received indicated to me that I needed to get my hosting company to activate magic_quotes_gpc. After several days of talking with what seems to be the sole tech s

Re: [PHP] appending to include_path

2002-02-27 Thread darcy w. christ
Jason Wong wrote: > > On Thursday 28 February 2002 02:30, darcy w. christ wrote: > > Hi Jason, > > > > i think you misunderstood what i was asking. i am doing exactly what > > you described below. My question is whether there is a way to not > > overwrite the include_path variable, but instea

[PHP] Question about send email through php script

2002-02-27 Thread Alex Piaz
Hi Folks! I am working on a php system which sends e-mail. The system is ready to go now, but I am asking myself and now all of you what´s the best way to send this emails throug a php script: a) Using the mail() function? b) popen sendmail and writing the messages directly on it? I am think

[PHP] Re: php-general Digest 27 Feb 2002 06:51:42 -0000 Issue 1196

2002-02-27 Thread Garth Dahlstrom
Chris, I've done some stuff on my site in PHP... certainly not big name, and maybe or maybe not cool depending on what you're into. http://www.northern.ca/ (my yahoo like directory of links) http://www.northern.ca/projects/phpwidgets/ (an semi-abandoned personalization engine... still coo

[PHP] Checking for and @ and a .

2002-02-27 Thread Philip J. Newman
I'm trying to make an email field and I would like to check that its valid by checking for an @ and a . can someone point me in the right direction for this. THanks Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012 --

[PHP] Form Annoyances

2002-02-27 Thread James Taylor
I'm having this one issue that's really bugging me - I have a textarea where you can type in something - After typing it in, it goes to another page asking you to verify, if it's correct, it inserts it into a database. The page that asks you to verify holds the value of the textbox in a hidden

  1   2   >