[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/1845238mode=threadt id=169 http://security.e-matters.de/advisories/012002.html http://www.newsbytes.com/news/02/174818.html Doesn't affect Windows, right? --

[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 telling

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] 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 ## ServerName domain.websites.com /ServerName ServerName newsite.worldwideweb.net /ServerName So I would get the domain.websites.com and

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 ## ServerName domain.websites.com /ServerName ServerName newsite.worldwideweb.net /ServerName

[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 ## ServerName domain.websites.com /ServerName ServerName

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

[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*** !--include virtual=/includes/header.html-- ?php echo Hello; ? !--include virtual=/includes/footer.html-- ***end php file In the php file the includes aren't parsed by the server, the

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

2002-02-27 Thread Martin Towell
why don't you just do this? ?php include includes/header.html; echo Hello; include includes/footer.html; ? -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

[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

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? ?php include

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]

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

[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

[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 page is

[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: global variables w/o access to global php.ini

2002-02-27 Thread CC Zona
In article Pine.WNT.4.44.0202271857090.3884-10@associate, [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 similar

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] 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

[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\n\r\n;

[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

[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

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 file. If

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: --

[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] 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 the

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 php

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 the

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).

[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 options in the

[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: !--include virtual=/includes/header.html-- ?php echo Hello; ? !--include virtual=/includes/footer.html-- FYI I think your SSI syntax is wrong, it should be !--#include virtual=/includes/header.html -- TjL ps -- I emailed Richie offlist

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 Server

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

2002-02-27 Thread CC Zona
In article Pine.WNT.4.44.0202272245210.1448-10@associate, [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

[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,

[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

[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

[PHP] if(isset($submit))

2002-02-27 Thread jtjohnston
Has anyone tried: input type=\image\ name=\submit\ value=\submit\ src=\nextgif\ border=\0\ align=\ABSCENTER\ instead of : input type=\submit\ name=\submit\ value=\\ I can't get this to work: if(isset($submit)) with: input type=\image\ name=\submit\ value=\submit\ src=\nextgif\ border=\0\

[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

[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.

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

2002-02-27 Thread Martin Towell
I used this code form action=/inetpub/wwwroot/top.html method=get input type=image src=none.gif width=125 height=25 name=submit value=submit /form when I clicked on the image, I got this url file:///C:/inetpub/wwwroot/top.html?submit.x=118submit.y=20 so php would get this as $submit_x and

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

2002-02-27 Thread jtjohnston
I s'pose, but where/why are you getting submit.x=118submit.y=20 Martin Towell wrote: I used this code form action=/inetpub/wwwroot/top.html method=get input type=image src=none.gif width=125 height=25 name=submit value=submit /form when I clicked on the image, I got this url

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

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 jtjohnston
Nope, not following. :) More particularily why will isset accept type=submit and not type=image ? Martin Towell wrote: I used this code form action=/inetpub/wwwroot/top.html method=get input type=image src=none.gif width=125 height=25 name=submit value=submit /form when I clicked on the

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 form action=/inetpub/wwwroot/top.html method=get input type=image src=none.gif width=125 height=25 name=submit value=submit /form when I clicked on the image, I got this url

[PHP] BBEdit

2002-02-27 Thread Josiah Wallingford
I have a website with about 300 different pages Each of those pages has a different titledescription/title I need to replace all of those with one titledescription/title Is there a way to replace all things within two different tags? -- PHP General Mailing List (http://wwwphpnet/) To

[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://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

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

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! :) J

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

[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://wwwphpnet/) To

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] testing

2002-02-27 Thread mike koldychev
testing, testing _ Send and receive Hotmail on your mobile device: http://mobilemsncom -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

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

[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 '12532' and created a string 'one hundred, twenty-five dollars and 32 cents' It works just

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)) { ? p?=$data[date]? - ?=$data[orangeprice]? - ?=$data[appleprice]? - ?=$data[pearprice]?/p ?

[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/

[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 query

[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://wwwmysitecom]Click here for

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).

[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 sessionsave_path is correct (/tmp) in Unknown on line 0 PHP Warning: Failed to write session data (files)

[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] 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=3change_name=statuschange_value=3ticket_id=32=1= And all I want is 2=1= Well, the closest I

[PHP] Re: regex

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

[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==

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 unsetting

[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 the

[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 eg 2 digit one Underneath is my not working code Maybe someone knows how to solve that Thanx Andy # create topic number 6 digit

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 of a

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';

<    1   2