RE: [PHP] Uploading a File Solution

2005-02-26 Thread Jason Bennett
Sorry all, I found the problem. I had put in an entry in post_max_size as "2G" however PHP seems to think that meant 2 bytes. I lowered it down to something reasonable in "M" and it worked fine. I'm not sure if that is a bug or not regardless of whether or not 2G is smart for that variable, it

[PHP] Uploading a File

2005-02-26 Thread Jason Bennett
Hi all, I'm having this problem trying to upload a file using PHP. I am using Apache (compiled from source) and PHP 5.0.3 The entire contents of the page is: The entire script is: The returned message I get is: Notice: Undefined index: myfile in /www/htdocs/upload.php on line 6 No U

Re: [PHP] http referer

2005-02-26 Thread John Holmes
Sebastian wrote: ok, so i made a file manager and i need to prevent people from linking directly to files that do not come from another part of the site. i know i can use http_referer, but i wonder how fool proof it is, i dont want to spit out errors to a legit user that actually came from a valid

Re: [PHP] HOWTO read PHP source code into a textarea

2005-02-26 Thread John Holmes
Tim Burgan wrote: I was trying to use file(), with some problems.. thank you for your suggestions to use file_get_contents(). Perfect! You're all right, it works really well. I hope you didn't miss the mention of htmlentities(), also. If you did, then you'll figure it out the first time you try

Re: [PHP] http referer

2005-02-26 Thread Stan F
- Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: Sent: Saturday, February 26, 2005 8:31 PM Subject: [PHP] http referer > ok, so i made a file manager and i need to prevent people from linking > directly to files that do not come from another part of the site. > > i know i

Re: [PHP] getting mac id

2005-02-26 Thread Tyler Replogle
do you think i could get it with javascript? From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: Re: [PHP] getting mac id Date: Sat, 26 Feb 2005 21:15:47 +0100 MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by MC6-F37.hotmail.com with Microsoft SMTPSVC

Re: [PHP] getting mac id

2005-02-26 Thread Tyler Replogle
Yeah i thought of that but banning the ip iwon't do any better. From: Lancer Emotion 16 <[EMAIL PROTECTED]> Reply-To: Lancer Emotion 16 <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: Re: [PHP] getting mac id Date: Sat, 26 Feb 2005 12:59:15 -0500 MIME-Version: 1.0 Received: from lists.ph

[PHP] mail() takes a long time to process

2005-02-26 Thread Dustin Krysak
Hi there, I have a script that uses the mail() function, but for some reason the script takes a really long time to finish processing (like 5 minutes). there are some other functions performed (like sql insert, etc) that happen immediately as they should. But the mail takes some time to finish

Re: [PHP] HOWTO read PHP source code into a textarea

2005-02-26 Thread Tim Burgan
Thank you everyone, I was trying to use file(), with some problems.. thank you for your suggestions to use file_get_contents(). Perfect! You're all right, it works really well. Thanks Tim ... Tim Burgan. Website & E-Commerce Developer Web: ... -- PHP General Mailing List (http://www.php.net/) T

[PHP] file uploads

2005-02-26 Thread Jeremy Freedman
I got the files to upload correctly using

Re: [PHP] Re: help with adding

2005-02-26 Thread Guillermo Rauch
You really don't have to put the index in a single dimension input array. Just put qty[] And you'll get it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP slowness

2005-02-26 Thread Rasmus Lerdorf
Gerard wrote: How would I go about stracing page requests? I never know which apache child is going to handle which page. Run Apache in non-forking mode with -X -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] source code protection

2005-02-26 Thread Guillermo Rauch
> Hi there! > > What's the point of doing that? The PHP-codes are well protected if they are > on a well > configured server. Sometimes you want to sell protected code $.$ > > /G > @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] source code protection

2005-02-26 Thread Gustav Wiberg
Hi there! What's the point of doing that? The PHP-codes are well protected if they are on a well configured server. /G @varupiraten.se - Original Message - From: "shabanip" <[EMAIL PROTECTED]> To: Sent: Saturday, February 26, 2005 4:43 PM Subject: [PHP] source code protection is there

[PHP] Trouble Compiling 4.3.10 on FreeBSD 5.X

2005-02-26 Thread Tim Traver
Hi all, for some reason, I cannot get php to compile a shared object to work with apache 1.3.33... Here are the config commands that I used for apache and php : EAPI_MM=SYSTEM ./configure --enable-module=so --enable-module=info --enable-module=status --enable-module=rewrite --enable-module=ssl

[PHP] seach engines that don't suck

2005-02-26 Thread Colin Olkowski
Hi All, So I've been using my own php to search my site (http://hiptingle.spydigital.com) and for a while it was fine...But recently I put in a logging system just to see what people were searching for and realized they aren't finding what they're seeking. I wrote all search code to split words o

Re: [PHP] getting mac id

2005-02-26 Thread M. Sokolewicz
you can't get the mac-address from a remote (client) computer via PHP because PHP is server-sided (server). The mac-address isn't part of any sort of standard header the browser sends, thus the server will never see it. And if the server can't see it, then PHP can't see it either. The only way

Re: [PHP] getting mac id

2005-02-26 Thread Lancer Emotion 16
But think that not everbody has a computer in his house,especially in 3rd world countries. Here in Peru and in another countries from Sudamerica,lot of people play this mmorpgs,like Knigths Online,WoW or Mu,in lan houses. If you ban the pc, none of the users who will play at this computer will be a

Re: [PHP] source code protection

2005-02-26 Thread Joe Wollard
Shabanip, Zend provides a package for doing just this, but it comes with a price tag starting nigh to $1,000. You can find it here: http://www.zend.com/store/products/zend-encoder.php They do offer a free evaluation so you can "try before you buy" ;-) shabanip wrote: is there any way to protect

[PHP] http referer

2005-02-26 Thread Sebastian
ok, so i made a file manager and i need to prevent people from linking directly to files that do not come from another part of the site. i know i can use http_referer, but i wonder how fool proof it is, i dont want to spit out errors to a legit user that actually came from a valid page before tryi

Re: [PHP] Quoting and $_POST['Name'] problem

2005-02-26 Thread John Holmes
zzapper wrote: Hi, It's been a long day, but what's wrong here?. echo $_POST['Location']; # good echo ""; echo "$_POST['Location']"; # bad nothing appears If you're going to display an array value within a string, put it in brackets. echo "my value: {$array['key']}"; This also works: echo "my val

Re: [PHP] Difficulty with SQL LIKE clause

2005-02-26 Thread Stan F
- Original Message - From: "David Freedman" <[EMAIL PROTECTED]> To: Sent: Friday, February 25, 2005 11:27 PM Subject: [PHP] Difficulty with SQL LIKE clause > When I use this query in PHP it works, and I get all things with the YEAR of > 1977, as I expected. > > $query= "SELECT * FROM my

[PHP] convert MS DOC -> PDF

2005-02-26 Thread mbneto
Hi, I have a bunch of M$ WORD documents (rtf and doc) that I'd like to transform to pdf. It would simple except that I'd like to allow the user to fill a couple of variables (name, email, telephone) and replace this before if generates the pdf. After searching the net I found some classes but in

[PHP] source code protection

2005-02-26 Thread shabanip
is there any way to protect PHP files source code? thanks, Payam Shabanian shabanip -at- avapajoohesh.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quoting and $_POST['Name'] problem

2005-02-26 Thread zzapper
Hi, It's been a long day, but what's wrong here?. echo $_POST['Location']; # good echo ""; echo "$_POST['Location']"; # bad nothing appears zzapper (vim, cygwin, wiki & zsh) -- vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?" http://www.vim.org/tips/tip.php?tip_id=30

[PHP] Re: help with adding

2005-02-26 Thread Jamie Alessio
I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . ''; } The question is, how would I take add each of th

[PHP] Re: Web Browser Timeout on Upload Script

2005-02-26 Thread zzapper
On Wed, 23 Feb 2005 13:01:18 -0800, wrote: >Hi, > >I am running a simple Upload script in PHP using a HTML Form with a File >field. The user can browse their computer and upload a file. It works great, >except for large files, where the browser will timeout. The timeout appears >to happen a

Re: [PHP] PHP slowness

2005-02-26 Thread Randy Johnson
Did you try rotating your logs so your logs are fresh? Randy Gerard wrote: <--snip--> I'm no expert on this stuff, but I'd be checking my swap space usage and RAM usage with 'top' or any other tools available... I suppose you probably already did that, but... Top shows that there's still normal n

Re: [PHP] PHP slowness

2005-02-26 Thread Bostjan Skufca @ domenca.com
Create profiling information for your application with pear's Timer class or something similar. regards, Bostjan On Saturday 26 February 2005 11:50, Gerard wrote: > > Hi there, just for testings sake, you should get a script that figures > > out the page generation time for a php script... As

Re: [PHP] Re: PHP and Access

2005-02-26 Thread Bruno Santos
pete M wrote: Check this out http://adodb.sourceforge.net/ http://phplens.com/adodb/code.initialization.html#init have fun Pete Bruno Santos wrote: Hello. I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP t

[PHP] Re: help with adding

2005-02-26 Thread pete M
Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right. Maybe I need sleep :-) The code below is echoing the qty correctly (10, 5, 25) $total = 0; for ($i = 1; $i <= $sendnum; $i++) { $qty = $_POST['qty'.$i]; echo $qty . ''; $total += $

[PHP] Re: PHP and Access

2005-02-26 Thread pete M
Check this out http://adodb.sourceforge.net/ http://phplens.com/adodb/code.initialization.html#init have fun Pete Bruno Santos wrote: Hello. I need to to an application in PHP with graphics creation. The database where i need to go and fetch the values is access. is possible for PHP to fecth values

RE: [PHP] PHP slowness

2005-02-26 Thread Gerard
<--snip--> > > I'm no expert on this stuff, but I'd be checking my swap space usage and > RAM usage with 'top' or any other tools available... I suppose you > probably already did that, but... Top shows that there's still normal non-swap memory available, so I don't think that's it. - Gerard --

RE: [PHP] PHP slowness

2005-02-26 Thread Gerard
> Gerard wrote: > > Another interesting note; if you click from page to page fast enough, it > > doesn't take as long to load. For some reason, after the > initial 5 second > > startup hic, it loads consequent pages smoothly. If you wait > for 10 seconds > > and then click a link, it loads for 5 se

RE: [PHP] PHP slowness

2005-02-26 Thread Gerard
> Hi there, just for testings sake, you should get a script that figures > out the page generation time for a php script... As luck would have it, > I made a class for this not too long ago. give this a whirl. > > First, create a php script with this in it... <--snip--> > It will color code it f