RE: [PHP] Displaying Results

2002-04-17 Thread Jason Soza
I used this workaround - if you see something inherently wrong with it, let me know: printf(a href='http://www.mydomain.net/index.asp?type=%s%s=%s'b%s/b (%s)/abr,$by,$by,$$by,$$by,$total) So that the output goes like a href=http://www.mydomain.net/index.asp?type=type1type1=value;type 1

[PHP] Passing Variable

2002-04-17 Thread Ben C.
I know that people have asked about this before, so let me appologize ahead of time but I need quick help. I have a url which looks like http://www.domain.com/remove/index.php?id=test. I use the echo function ? echo $id; ? to show the word test. What I want to do is send this variable along

Re: [PHP] email attachments

2002-04-17 Thread Michael Virnstein
use PEAR::Mail(); it has all you need. James E. Hicks III [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You need a Content-Disposition in yer $mime variable. I'll leave it up to you to figure out where, because I've forgotten where it goes exactly.

Re: [PHP] importing .dat SQL Data into mySQL

2002-04-17 Thread hugh danaher
Dear Wizard of Menlo Park Jr.; Similar to what you want but not exactly the same. Use the bits that you can use. I recently took an excel spreadsheet converted it to a tab delimited text file and then stored the records into a mysql table using the following code: Hope this helps, Hugh html

[PHP] Centralized logs

2002-04-17 Thread Rudy Ramirez
Hi list! I've read about a debugging connection feature of PHP3, dropped in version 4; it allowed (I argue) centralized logging through the function error_log with dest value 3; one could enable it by putting --enable-debugging in the build options. Now, if I set up more than one server for my

Re: [PHP] Passing Variable

2002-04-17 Thread Michal Dvoracek
Hello, store value in hidden field in form, like this: input type=hidden name=id value=?php echo $_GET['id']; ? when form is submitted field id contains required value. or use cookie (but here is test if cookie enabled) Regards Michal Dvoracek [EMAIL PROTECTED] --

[PHP] Re: unlink security problem

2002-04-17 Thread Yasuo Ohgaki
If you care about this problem, upgrade to 4.2.0 when it's available. -- Yasuo Ohgaki Patrick Cossette wrote: I'm running PHP 4.1.2 as an Apache module (Apache 1.3.24) under AIX 4.3.3. My problem has been covered in Bug #13447 but I still have it and the bug was under Windows 2000 but I'm

[PHP] Maths Problem

2002-04-17 Thread Meredith-Wilks, Richard
Hi, I have a maths question. I'm trying to create a html form where a user can enter formula in an input box (e.g. '$a + $b - 10') and posts it to PHP. The variables $a and $b are known but the formula can be changed on the form (e.g. '$a / $b * 2'). I want PHP to take the text

[PHP] Forms in PHP

2002-04-17 Thread Alia Mikati
Hello I hope u can help me with this problem. I dont know if it is possible to do it. I'm using PHP and XML to generate the folowing HTML: ... form method=post action=cart.php input type=hidden name=itemid value=11/input ... input type=hidden name=itemid value=22/input ... input type=hidden

[PHP] Re: Maths Problem

2002-04-17 Thread liljim
Hello, Richard Meredith-Wilks [EMAIL PROTECTED] wrote in message B1CFE9307BACD211B071D11C344102A4E8E0@UKSTONTSRV3">news:B1CFE9307BACD211B071D11C344102A4E8E0@UKSTONTSRV3... Hi, I have a maths question. I'm trying to create a html form where a user can enter formula in an input

[PHP] Images and MySQL - please help

2002-04-17 Thread DrTebi
Hi, I am trying to do this: - I have an image stored in database 'A' - a php script should load this image, and stamp it with a watermark - then the php script should save the new image (with the watermark) in database 'B' ... How can I do this? I guess somehow I have to buffer the output,

Re: [PHP] Re: Cross DB application

2002-04-17 Thread John Lim
Manuel, Prepared queries in practice are the same as what John Lim calls in this document http://php.weblogs.com/portable_sql as binding, except that he doesn't seem to be aware that it is the same thing, so he says that only some database can use it! :-) Metabase handles prepared queries

Re: [PHP] Images and MySQL - please help

2002-04-17 Thread hugh danaher
It should be possible to do exactly what you want using the image functions in php. You can get an image add text and then save the image in a directory (or database I guess). Because adding a stamp takes milliseconds, why not just do the operation when it's needed and erase it when you're

[PHP] db2 connect speed problem

2002-04-17 Thread Josep Raurell
Hello. I connected a php linux server with db2 connect personal edititon with an as400 v4r4. The connexion works ok, but all the querys have a delay. I think is the cost of a new connexion on the a400. - Somebody nows a solution ? - Somebody have a similar situacion and works

RE: [PHP] Re: Need row number from database select

2002-04-17 Thread SP
Thanks for everyone who helped. I was trying to keep track of the row number from a database select and everyone who said to pass the row number variable through the function was correct. I finally got it to work by passing the variable by reference. -Original Message- From: Kevin

[PHP] Re: smarter way to write config file?

2002-04-17 Thread Justin French
Thanks heaps Scott -- exactly what I was hoping for :) Justin French on 16/04/02 5:26 PM, Scott Houseman ([EMAIL PROTECTED]) wrote: what about something like this: $cfgAdminEmail = ( $local ) ? [EMAIL PROTECTED] : [EMAIL PROTECTED]; $cfgReportErrors = ( $local ) ? 1 : 0; $cfgSendMail =

Re: [PHP] Re: Cross DB application

2002-04-17 Thread John Lim
Hi Manuel, Manuel Lemos [EMAIL PROTECTED] wrote Most of the popular database abstraction packages support prepared queries, except for your PHP ADODb. So, think about this before you keep throwing sand to the eyes of the users that do not know better, may be you understand the point of

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Jason Wong
On Thursday 18 April 2002 00:11, Jennifer Downey wrote: I have no takers on this one? Just to let you know I have been working on this to here is some new code. What I need this to do is update the price in the db table. if I have on item it is fine. If I have two items it won't update the

[PHP] system() + $vars

2002-04-17 Thread Mark
Hi i was wondering how to get $var as an argument for a command using system() call..?? I tried something like: ? system('echo $REMOTE_ADDR bla'); ? bla is created on the system but nothing is in it, i thought it was some security measure preventing builtin $vars from entering the system but

Fw: [PHP] Re: Using one submit button

2002-04-17 Thread Kevin Stone
- I picked up your question soon after you submited it then my internet went down so I wasn't able to send it. Looks like it's been answered by someone else since then but here you go anyway. I didn't want to feel as though I'd wasted my time. :D -kevin - Looks like

Re: [PHP] system() + $vars

2002-04-17 Thread Jason Wong
On Wednesday 17 April 2002 02:23, Mark wrote: ? system('echo $REMOTE_ADDR bla'); ? You've got $REMOTE_ADDR inside a single-quoted string thus no variable expansion takes place. Instead what happens with your code is that you're echoing the *shell* environmental variable $REMOTE_ADDR into

[PHP] Re: Screen Scraping using PHP

2002-04-17 Thread Julio Nobrega Trabalhando
I read this post a few days ago and didn't know what is Screen Scrap. I thought someone would know and would reply to you. Well, a long time has passed and none replied. So I make my question, what are you trying to accomplish in simpler terms? :-) -- Julio Nobrega. Um dia eu chego lá:

Re: [PHP] Re: Screen Scraping using PHP

2002-04-17 Thread Robert Cummings
Julio Nobrega Trabalhando wrote: I read this post a few days ago and didn't know what is Screen Scrap. I thought someone would know and would reply to you. Well, a long time has passed and none replied. So I make my question, what are you trying to accomplish in simpler terms? :-) I

[PHP] subscripting an expression possible?

2002-04-17 Thread Bob Mroczka
Is it possible in php4 to retrieve an array value from an expression that returns an array without first storing the resultant array in a temporary variable? For example, I would like to do something like this: echo (posix_uname())[nodename]; Instead of: $tmp = posix_uname(); echo

Re: [PHP] Re: Screen Scraping using PHP

2002-04-17 Thread Richard Baskett
I bet he means when you open up an URL and capture part of the page or the entire page and post it onto your own site. I've done that with weather.com where you capture just part of their webpage.. So basically if I wanted to know what the weather was like in Egypt, I would go to weather.com and

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Jennifer Downey
Thank you Jason and Kevin for your time and help. Does this look like what I should have? if(isset($update)) for ($i=0; $icount($id); $i++) { if ($id[$i] == $row[id]) { $query = UPDATE {$config[prefix]}_shop SET price = $price[$i] where uid = {$session[uid]} AND id = $id[$i];

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Jennifer Downey
Thank you Jason and Kevin for your time and help. Does this look like what I should have? if(isset($update)) for ($i=0; $icount($id); $i++) { if ($id[$i] == $row[id]) { $query = UPDATE {$config[prefix]}_shop SET price = $price[$i] where uid = {$session[uid]} AND id = $id[$i];

Re: [PHP] Re: Screen Scraping using PHP

2002-04-17 Thread Robert Cummings
Richard Baskett wrote: I bet he means when you open up an URL and capture part of the page or the entire page and post it onto your own site. I've done that with weather.com where you capture just part of their webpage.. So basically if I wanted to know what the weather was like in Egypt,

[PHP] mysql quickie..

2002-04-17 Thread Kelly Meeks
Hi folks, I need to get the next auto_increment value of a mysql table thru php. Looking at my mysql manual, it makes reference to a last_insert_id() function? How would I use this via php, or is there some other way to do it? Thanks Kelly -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] mysql quickie..

2002-04-17 Thread Scott St. John
Kelly- My way may not be perfect, but this is what I do. $sql_temp = select last_insert_id() as mainid from transfers; $sql_result_temp = mysql_query($sql_temp,$connection); $row_temp = mysql_fetch_array($sql_result_temp); $file_temp_id = $row_temp[mainid]; -Scott On Wed, 17 Apr 2002,

Re: [PHP] mysql quickie..

2002-04-17 Thread Robert Cummings
Kelly Meeks wrote: Hi folks, I need to get the next auto_increment value of a mysql table thru php. Looking at my mysql manual, it makes reference to a last_insert_id() function? How would I use this via php, or is there some other way to do it? Quickly and hardly accurately... but

[PHP] Sessions / Serialized Data

2002-04-17 Thread Devin Atencio
If i have a session going with PHP4 and I want to basically pull the entire serialized data and then insert it into the database is there a variable that contains the serialized data or would I have to just basically read the /tmp/sess_sessid file and then save that into the database? -- PHP

[PHP] Re: Sessions / Serialized Data

2002-04-17 Thread Julio Nobrega Trabalhando
That would be easier. fopen the session file and store the information on a database. Later you just fwrite the contents to a new file. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho?

[PHP] SafeExtract() ... extract securily

2002-04-17 Thread Amit Arora
Hi, For security reasons ... Global Variables is to be turned off ... But the global variables was an hassle free way to get the variables into the global scope. Here is an alternate to it and do it securily ... A simple example would be ... Just use the following function on top of the code

Re: [PHP] Re: Sessions / Serialized Data

2002-04-17 Thread Robert Cummings
Julio Nobrega Trabalhando wrote: That would be easier. fopen the session file and store the information on a database. Later you just fwrite the contents to a new file. I don't use PHP4 sessions since I cook my own, but I think the above won't work. My guess is that if you read the file,

[PHP] FreeBSD + GD + PHP-4.1.2

2002-04-17 Thread Kasper
I have some problems with GD and php4.1.2. I have FreeBSD and i have gd zlib freetype jpeg and all that is required installed. My line is like this, /configure --with-pgsql --with-apxs=/usr/local/apache/bin/apxs --with-gd-dir =/usr/local/lib/gd --with-zlib --with-png-dir=/usr/local/lib

Re: [PHP] mysql quickie..

2002-04-17 Thread Richard Emery
I've seen other responses to your request answer with some VERY UGLY methods to get the last id. Instead, use mysql_insert_id() which was created specifically for the info you need. - Original Message - From: Kelly Meeks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 17,

Re: [PHP] mysql quickie..

2002-04-17 Thread Robert Cummings
Richard Emery wrote: I've seen other responses to your request answer with some VERY UGLY methods to get the last id. Hey my method wasn't ugly, perhaps not optimal, but definately not ugly! So *ptht* ;) Instead, use mysql_insert_id() which was created specifically for the info you

[PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
I am having a problem with posted variables showing up on a redirected page... When someone access the page www.mydomain.com/mypage.html - it does not actually exist so my 404 errordocument is called (which is the root index.php file) - the index.php file knows what to do and creates an

Re: [PHP] Re: Using one submit button

2002-04-17 Thread Kevin Stone
Looks good except the names in your HTML input fields are going to be id[] and price[].. no $i in there. Keep in mind there's probably a more efficient way of doing this. But sometimes programming is just about making things work.. you can worry about the details later. :D -Kevin -

[PHP] RE: [PHP-DB] Re: [PHP] Re: Cross DB application

2002-04-17 Thread SP
There must be people on this list that have ported their web apps from different databases and could share their experiences. mysql - postesql mysql - ms sql server ms sql server - oracle -Original Message- From: John Lim [mailto:[EMAIL PROTECTED]] Sent: April 17, 2002

RE: [PHP] form posting to a fake page

2002-04-17 Thread SHEETS,JASON (Non-HP-Boise,ex1)
I assume form works correctly if you go directly to your index page. You need to show us the html code for your form. Make sure your action= is set properly. If you are using PHP you need to show relevant code. Please be more specific about your domain, www.mydomain.com/mypage.html does not

RE: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
Yes it works fine if I access it directly from index.php. The action property is set appropriately. I believe the problem lies in the fact that it is redirected in the background because the page is not real, so I'm assuming it is an Apache behaviour as opposed to a PHP limitation.

RE: [PHP] form posting to a fake page

2002-04-17 Thread Jaime Bozza
Actually, I believe this is a browser problem. The browser does not resubmit POST data after a redirect (302 returned), so your final page never sees the data. I had a similar problem where I was redirecting in certain cases and could never get the POST data to come up on the final page.

RE: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
See, now that makes sense. So it sounds like there's really nothing that can be done except to have it post directly to the index.php file along with an environment variable indicating what page is posting the data. This is what I have been doing as a workaround already, it's just not the

Re: [PHP] form posting to a fake page

2002-04-17 Thread Erik Price
On Wednesday, April 17, 2002, at 03:36 PM, [ rswfire ] wrote: Yes it works fine if I access it directly from index.php. The action property is set appropriately. I believe the problem lies in the fact that it is redirected in the background because the page is not real, so I'm

Re: [PHP] form posting to a fake page

2002-04-17 Thread Erik Price
On Wednesday, April 17, 2002, at 03:49 PM, [ rswfire ] wrote: See, now that makes sense. So it sounds like there's really nothing that can be done except to have it post directly to the index.php file along with an environment variable indicating what page is posting the data. This is

[PHP] unsetting object references

2002-04-17 Thread Erik Price
Hey, sorry to bother you all but I have another obscure question about objects in PHP (yes I really do care about the answer)... I'm simply wondering if I unset() a reference to an object, whether or not it destroys that object, if there are other references to it that still exist.

Re: [PHP] form posting to a fake page

2002-04-17 Thread Barry Hoggard
That's the way apache works - it's not specific to PHP. The same happens under mod_perl, for example. Redirects ALWAYS lose any posted information. You have to save the form data a different way, such as in a session variable. -- Barry Hoggard Tristan Media LLC e: [EMAIL PROTECTED] p:

Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
Erik Price wrote: Hey, sorry to bother you all but I have another obscure question about objects in PHP (yes I really do care about the answer)... I'm simply wondering if I unset() a reference to an object, whether or not it destroys that object, if there are other references to it that

Re: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
It would still require some knowledge of the posted data. If someone clicks a submit button, and it is posting to a page that doesn't really exist, then when the index.php file gets called as a 404 errordocument, the posted variables are already lost, so it wouldn't be possible to access the

[PHP] (MySql) INSERTing into MULTIPLE tables

2002-04-17 Thread Vladislav Kulchitski
Hi, I was wondering if the way I am inserting into multiple tables is safe as far as when there are many simultaneous insertions at a given time. Basically, there are two tables, first I insert into main table where there's username and password (and first/last name, email) and then I get the

[PHP] file delete...

2002-04-17 Thread jas
How can I delete a file in php? thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] SafeExtract() ... extract securily

2002-04-17 Thread Matthew Walker
Sounds really good to be! Now if they would code this into PHP, it would be perfect. This would solve several security issues. Matthew Walker Senior Software Engineer ePliant Marketing -Original Message- From: Amit Arora [mailto:[EMAIL PROTECTED] (nospam)] Sent: Wednesday, April 17,

Re: [PHP] unsetting object references

2002-04-17 Thread Erik Price
On Wednesday, April 17, 2002, at 03:59 PM, Robert Cummings wrote: Now if what you meant was the following: $objectFoo = new MyObject(); $objectFee = $objectFoo; unset( $objectFoo ); Then the object shouldn't be deleted since $objectFee is still referencing it. You will just break

RE: [PHP] file delete...

2002-04-17 Thread Leotta, Natalie (NCI/IMS)
According to this, you should actually use unlink, but delete is available. http://www.php.net/manual/en/function.delete.php -Natalie -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 4:08 AM To: [EMAIL PROTECTED] Subject: [PHP] file delete...

Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
Erik Price wrote: On Wednesday, April 17, 2002, at 03:59 PM, Robert Cummings wrote: Now if what you meant was the following: $objectFoo = new MyObject(); $objectFee = $objectFoo; unset( $objectFoo ); Then the object shouldn't be deleted since $objectFee is still

[PHP] Global variable

2002-04-17 Thread Erich Kolb
I have developed a simple login script. Right now it will check a submitted username and password and verify it against a database. This part works fairly well, however I want to know how to assign a variable that will pass through to the next page(s) to do something like: if verified == 1

Re: [PHP] mysql quickie..

2002-04-17 Thread Richard Emery
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Richard Emery [EMAIL PROTECTED] Cc: Kelly Meeks [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 17, 2002 1:49 PM Subject: Re: [PHP] mysql quickie.. Richard Emery wrote: I've seen other responses to your

RE: [PHP] Global variable

2002-04-17 Thread Vladislav Kulchitski
The best way for this is to use sessions. What you do is you check the identity and if it's valid you create a session with name 'validuser' or whatever the name you want. Then any secure operations/actions along the script you'll check for this session name if it exists. I can demonstrate how I

[PHP] sessions protection

2002-04-17 Thread Vladislav Kulchitski
Hi, can anyone advise about another issue that occurred to me. Basically, let's say the cracker know that in my application I create a session variable named auth_user for valid users. Is there a way to hack into it if he knows this session variable name? Example:

Re: [PHP] form posting to a fake page

2002-04-17 Thread Miguel Cruz
On Wed, 17 Apr 2002, [ rswfire ] wrote: It would still require some knowledge of the posted data. If someone clicks a submit button, and it is posting to a page that doesn't really exist, then when the index.php file gets called as a 404 errordocument, the posted variables are already

Re: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
$_POST[] variables do not exist on a redirected page; that's the problem! Original Message Follows From: Miguel Cruz [EMAIL PROTECTED] To: [ rswfire ] [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] form posting to a fake page Date: Wed, 17 Apr 2002 15:56:32 -0500 (CDT) On

Re: [PHP] form posting to a fake page

2002-04-17 Thread Miguel Cruz
Your error handler would read them and then construct a redirect containing the form data in querystring format. miguel On Wed, 17 Apr 2002, [ rswfire ] wrote: $_POST[] variables do not exist on a redirected page; that's the problem! Original Message Follows From: Miguel Cruz

Re: [PHP] form posting to a fake page

2002-04-17 Thread [ rswfire ]
No, the error handler does not have access to the posted data. The problem in a nutshell: 1. Person fills out form; clicks submit 2. Form action property is called; server notices the page is not real (Data is lost here) 3. Error handler is called Original Message Follows From:

RE: [PHP] file delete...

2002-04-17 Thread Lars Torben Wilson
On Wed, 2002-04-17 at 13:12, Leotta, Natalie (NCI/IMS) wrote: According to this, you should actually use unlink, but delete is available. http://www.php.net/manual/en/function.delete.php -Natalie That's not actually what the page says...;) -Original Message- From: jas

Re: [PHP] form posting to a fake page

2002-04-17 Thread hugh danaher
You could try the following but I don't know if it would work on your set up. 1. have the form go to a php page that has no output to the screen. 2. store the input info in a database or file. 3. use a header(location: index.php) to go to your website index page. 4. use php on your index.php

Re: [PHP] file delete...

2002-04-17 Thread Rasmus Lerdorf
Did you check the manual? Like php.net/delete perhaps which tells you the PHP function that does this is actually called unlink(). -Rasmus On Wed, 17 Apr 2002, jas wrote: How can I delete a file in php? thanks in advance, Jas -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] form posting to a fake page (another idea)

2002-04-17 Thread [ rswfire ]
I'm not trying to make the page redirect anywhere. I'm trying to create the illusion of there being many pages when there is only one doing all the work. For example: http://hsdnetwork.swifte.net/technicians.html The page, technicians.html, does not really exist. The server knows this and

Re: [PHP] form posting to a fake page

2002-04-17 Thread Miguel Cruz
Gotcha. My bad. Sounds like you're in for a long night's adventure with mod_rewrite. miguel On Wed, 17 Apr 2002, [ rswfire ] wrote: No, the error handler does not have access to the posted data. The problem in a nutshell: 1. Person fills out form; clicks submit 2. Form action

Re: [PHP] (MySql) INSERTing into MULTIPLE tables

2002-04-17 Thread Miguel Cruz
That's fine, but you don't need the intermediate select step. Just use mysql_insert_id() to get the value of userid. auto_increment values are guaranteed to be unique no matter how quickly you are inserting. miguel On Wed, 17 Apr 2002, Vladislav Kulchitski wrote: Hi, I was wondering if the

Re: [PHP] sessions protection

2002-04-17 Thread Erik Price
On Wednesday, April 17, 2002, at 04:40 PM, Vladislav Kulchitski wrote: Basically, let's say the cracker know that in my application I create a session variable named auth_user for valid users. Is there a way to hack into it if he knows this session variable name? Example:

Re: [PHP] form posting to a fake page (another idea)

2002-04-17 Thread Miguel Cruz
Have a look at http://httpd.apache.org/docs/misc/rewriteguide.html which gives countless examples of using mod_rewrite rules for this sort of thing. You can direct all requests to a single page and then let that page sort things out as it pleases. These are processed internal to the server

Re: [PHP] form posting to a fake page

2002-04-17 Thread Erik Price
On Wednesday, April 17, 2002, at 04:57 PM, [ rswfire ] wrote: $_POST[] variables do not exist on a redirected page; that's the problem! They would exist if you were using a PHP script with header() to do your redirect rather than an Apache feature. I think this is what Miguel, and

Re: [PHP] form posting to a fake page (another idea)

2002-04-17 Thread [ rswfire ]
I'm really not good with the ereg stuff; I wouldn't even know where to start. It's really quite simple what I need to have happen. *.DOMAIN.COM/*.* needs to access /index.php My network handles multiple domains/subdomains; so it's important it can work with them all. Any ideas?

[PHP] verify file types when uploading to server...

2002-04-17 Thread jas
I am wondering if any one has a good idea on how to do checking based on a files extension, what I am trying to accomplish is to be able to upload files to a webserver however I only want to have .jpg files uploaded. If anyone has a good way to do this please share. Thanks in advance, Jas --

[PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
Assume I want *.domain.*/*.* to automatically call index.php (without the user knowing and without any redirecting at all): RewriteEngine on RewriteBase/ RewriteRule*.* index.php [R] I don't know what in the world the [R] is, but it's in almost all of the mod_rewrite examples... :-)

[PHP] sorry i forgot something

2002-04-17 Thread [ rswfire ]
*.domain.*/*.* AUTOMATICALLY goes to the root of my web (my isp set this up for me) _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread Miguel Cruz
On Wed, 17 Apr 2002, [ rswfire ] wrote: Assume I want *.domain.*/*.* to automatically call index.php (without the user knowing and without any redirecting at all): RewriteEngine on RewriteBase/ RewriteRule*.* index.php [R] I don't know what in the world the [R] is, but it's in

RE: [PHP] form posting to a fake page

2002-04-17 Thread Jaime Bozza
I've done some testing, and it seems that Apache messes with the server variables when it sends the error document. Basically, Apache does *NOT* send an HTTP 302 response. It sends an HTTP 404 response, but outputs the full code from the ErrorDocument. Unfortunately, it changes the

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
Miguel, if I get this working I am going to be so happy :-) I just tried putting the following in an .htaccess file in my root: RewriteEngine on RewriteBase/ RewriteRule* index.php And it came back with a server misconfiguration. So, did I do something wrong? Original Message

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread Miguel Cruz
Are you sure your server has mod_rewrite installed? miguel On Wed, 17 Apr 2002, [ rswfire ] wrote: Miguel, if I get this working I am going to be so happy :-) I just tried putting the following in an .htaccess file in my root: RewriteEngine on RewriteBase/ RewriteRule*

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
mod_bwlimited, mod_php4, mod_log_bytes, mod_frontpage, mod_ssl, mod_setenvif, mod_so, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env,

[PHP] mod_rewrite

2002-04-17 Thread [ rswfire ]
.htaccess (returns 500 misconfiguration error message) { RewriteEngine on RewriteBase/ RewriteRule* index.php } http://swifte.net/phpinfo.php (i did not use braces in the .htaccess file) _ Join the world’s largest

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
[Wed Apr 17 18:04:19 2002] [alert] [client 172.131.190.148] /home/swiften/public_html/.htaccess: RewriteRule: cannot compile regular expression '*' Original Message Follows From: Miguel Cruz [EMAIL PROTECTED] To: [ rswfire ] [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
This rewrite thing will actually be very good for me; my error log file will stop having a million file not found errors :-) I have to tell you guys, I love JTL Networks. They are the best host I have ever had ever! Original Message Follows From: Miguel Cruz [EMAIL PROTECTED] To: [

RE: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread SHEETS,JASON (Non-HP-Boise,ex1)
You actually want RewriteEngine on RewriteBase / RewriteRule *$ index.php Jason -Original Message- From: [ rswfire ] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 4:20 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Would this work? (mod_rewrite) This

RE: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread SHEETS,JASON (Non-HP-Boise,ex1)
And I fall victim to my own stupidity/cache again. You actually want RewriteEngine on RewriteBase / RewriteRule ^$ index.php This works for me on my domain, you can check it out by going to http://demo.shadotechdesigns.com and http://bug.shadonet.com Jason -Original Message- From: [

RE: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread [ rswfire ]
Well, it's half working :-( But now I am receiving a 404 error message and the following message in my error log: [Wed Apr 17 18:31:26 2002] [error] [client 172.131.190.148] File does not exist: /home/swiften/public_html/404.shtml [Wed Apr 17 18:31:26 2002] [error] [client 172.131.190.148]

[PHP] save html created by loop in variable

2002-04-17 Thread Jason Dulberg
I have a WHILE loop that I am interested in storing the html that is generated based on its results to a variable. This variable would then be echoed later on. Basically the html that is generated from the while loop is a bunch of table cell definitions and some data from the database - this

[PHP] Re: Using one submit button (long, rambling, near-total rewrite)

2002-04-17 Thread Hugh Bothwell
Jennifer Downey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I have no takers on this one? You would have more help if you didn't glumph a whole whack of code in... it takes five minutes just to sort out what's what. if I have on item it is fine. If I have two items it

[PHP] Nasty DoS in PHP

2002-04-17 Thread Dustin E. Childers
Hello. I have found something interesting that can kill the server. I'm not sure if this is because of Apache or PHP. If you use PHP to send a header() inside of a while loop, the httpd process will begin to use massive CPU and Memory until it is killed, or the server is killed. Here is what

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread Rasmus Lerdorf
Turn on the memory-limit option On Wed, 17 Apr 2002, Dustin E. Childers wrote: Hello. I have found something interesting that can kill the server. I'm not sure if this is because of Apache or PHP. If you use PHP to send a header() inside of a while loop, the httpd process will begin to use

[PHP] document root

2002-04-17 Thread Senih zkiper
What is the best way, to find out the directory, where web documents stored, on a .nix web server? I need that, because I want to install my application files on customers web server directly and automatically from my web server using ftp. Better to explain; If for example

[PHP] Arranging Data

2002-04-17 Thread Jason Soza
How would I have a script display results in a table, but make it so that once 3 or 4 results are displayed in one table row, a new table row would be started? Right now I have something like: printf(img src='%s'br,$pic1); And all the records for $pic1 come out into a single column which, if

[PHP] Registration Form

2002-04-17 Thread Vladislav Kulchitski
Hi, I am using registration form with a number of different steps. And if, for instance, the user wants to come back to correct something, I am using the back img button with the link: javascript:history.back(1) I am wondering how many people are actually using the way I do, and if it's

[PHP] Re: Nasty DoS in PHP

2002-04-17 Thread Michael Kimsal
Dustin E. Childers wrote: Hello. I have found something interesting that can kill the server. I'm not sure if this is because of Apache or PHP. If you use PHP to send a header() inside of a while loop, the httpd process will begin to use massive CPU and Memory until it is killed, or the

[PHP] mod_rewrite (the solution)

2002-04-17 Thread [ rswfire ]
RewriteEngine on RewriteBase/ RewriteRule$.* index.php Original Message Follows From: SHEETS,JASON (Non-HP-Boise,ex1) [EMAIL PROTECTED] To: '[ rswfire ]' [EMAIL PROTECTED], [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: RE: [PHP] Would this work? (mod_rewrite) Date: Wed, 17

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: But now I am receiving a 404 error message and the following message in my error log: [Wed Apr 17 18:31:26 2002] [error] [client 172.131.190.148] File does not exist: /home/swiften/public_html/404.shtml [Wed Apr 17 18:31:26 2002]

[PHP] Re: mod_rewrite (the solution)

2002-04-17 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: RewriteEngine on RewriteBase/ RewriteRule$.* index.php RewriteRule takes a regular expression as its first parameter http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule. The $ regex meta-character is an end-of-line

  1   2   >