Fwd: [PHP] Password Protecting a page and email notification

2008-06-17 Thread Philip Thompson
I forgot about the mail thing... Begin forwarded message: From: Philip Thompson <[EMAIL PROTECTED]> Date: June 17, 2008 6:52:15 PM CDT To: PHP-General List Subject: Re: [PHP] Password Protecting a page and email notification On Jun 17, 2008, at 5:33 PM, R.C. wrote: I'm going to ask you PHP g

Re: [PHP] Password Protecting a page and email notification

2008-06-17 Thread Philip Thompson
On Jun 17, 2008, at 5:33 PM, R.C. wrote: I'm going to ask you PHP gurus if someone can give me a hand in trying to get this resolved. I'm fairly new to PHP and learning as I go. I've got two page "login.php" and video.php. Video.php is supposed to be protected i.e. if someone clicks on th

[PHP] Re: Password Protecting a page and email notification

2008-06-17 Thread Jon Drukman
R.C. wrote: I'm going to ask you PHP gurus if someone can give me a hand in trying to get this resolved. I'm fairly new to PHP and learning as I go. I've got two page "login.php" and video.php. Video.php is supposed to be protected i.e. if someone clicks on the direct link or brings up the pag

[PHP] Password Protecting a page and email notification

2008-06-17 Thread R.C.
I'm going to ask you PHP gurus if someone can give me a hand in trying to get this resolved. I'm fairly new to PHP and learning as I go. I've got two page "login.php" and video.php. Video.php is supposed to be protected i.e. if someone clicks on the direct link or brings up the page in a browser

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Ryan S
Thanks for replying m8, but if you check the rest of the thread you will see this has alraedy been solved and the result is http://ezee.se/ezeeurl.php?do=1 Cheers! Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Kindla 0T, but here goes...

2008-06-17 Thread Ryan S
Hey, > I agree with Daniel. Your most likely solution is to use a Flash player > (or similar implementation) and populate a portion of your page with the > object via AJAX (which you are already apparently comfortable with). Or make your own Flash player with Ming and PHP. Working on that mysel

Re: [PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Richard Heyes
It's *WRONG*. So are vegetables. Long live the waffle! BTW, anyone seen this: http://code.google.com/apis/chart/ ...? More to the point, is anyone using it commercially? -- Richard Heyes Employ me: http://www.phpguru.org/cv ++ | Access SSH wi

[PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Jon Drukman
Nate Tallman wrote: Why is an ErrorDocument "insufficient" or "not the elegant way"? It accomplishes the goal in a clean way, no? It's *WRONG*. ErrorDocument still preserves the 404 error code, it just gives it a prettier face. If the page really is there, returning a 404 for it is not corr

[PHP] Re: Search like php.net's URL thingy

2008-06-17 Thread Jon Drukman
Ryan S wrote: Hey! Thanks for replying. Digging a bit more i found RewriteEngine On RewriteRule ^([a-z][0-9][A-Z][aA0-zZ0])$ jj.php?show=$1 But it does not work :( do you see any fault with the above? this is an apache issue, not a php issue, so you'll probably have better luck on an a

Re: [PHP] substr?

2008-06-17 Thread Jim Lucas
Jason Pruim wrote: Hi everyone, I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip files in excess of 200 MB... Yes I know that is large, but it's for a print shop and they get HUGE file

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-17 Thread Stut
On 17 Jun 2008, at 15:22, Michelle Konzack wrote: Am 2008-06-16 12:02:27, schrieb Per Jessen: Check client IP-addresses? And then? I am DoS'ed from several 1000 IPs and since legitim uploaders are mostly on dynamic IPs I can not block by IP. OK, last Saturday I have installed a COOKIE whi

[PHP] CAD file decoding

2008-06-17 Thread Lester Caine
Has anybody seen any software that could be used with PHP to extract the preview pictures from CAD files such as DXF and the like. I'm looking to keep thumbnails of the drawings in much the same was as we generate thumbnails of images. So I can display a list of previews before downloading the w

Re: [PHP] mkdir() Cannot Create Directories

2008-06-17 Thread Nitsan Bin-Nun
As far as I remember, when I was on shared windows I had something similar (no access to upload/create folders), the tech guy at the company i was hosting at changed something in my privileges and it solved it. You may have no creating privileges. On 17/06/2008, Wei, Alice J. <[EMAIL PROTECTED]>

RE: [PHP] mkdir() Cannot Create Directories

2008-06-17 Thread Wei, Alice J.
Hi, Daniel: Thanks, I didn't realize that is the only problem. It sure is working pretty good now. One question, why didn't I get "Permission Denied" when I tried to do it before the execution permissions were set properly? Alice == Ali

Re: [PHP] mkdir() Cannot Create Directories

2008-06-17 Thread David Giragosian
On 6/17/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > > Hi, > > > [snip!] > > > > This is my PHP code: > > > > mkdir("C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die ("Cannot create > directory C:/Inetpub/wwwroot/TPU/test/$

Re: [PHP] mkdir() Cannot Create Directories

2008-06-17 Thread Daniel Brown
On Tue, Jun 17, 2008 at 2:43 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote: > Hi, > [snip!] > > This is my PHP code: > > mkdir("C:/Inetpub/wwwroot/TPU/test/$id, 0755) or die ("Cannot create > directory C:/Inetpub/wwwroot/TPU/test/$id"); > > What is strange is that I don't get permission denied erro

[PHP] mkdir() Cannot Create Directories

2008-06-17 Thread Wei, Alice J.
Hi, I have a code here that I am intending to create new directories by creating a parent and then proceed on to create the children one by one. I am trying to create directories in the server I am running my script from as shown in the snippet below. My problem is that although the code se

Re: [PHP] substr?

2008-06-17 Thread Daniel Brown
On Tue, Jun 17, 2008 at 8:39 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am attempting to adopt some code to work more reliably then how it is > now... > > What I am doing is coding a upload form where people could be uploading .zip > files in excess of 200 MB... Yes I know that

Re: [PHP] substr?

2008-06-17 Thread tedd
At 9:01 AM -0400 6/17/08, Dan Shirah wrote: > The code I'm having issues with is this: $filename = $_FILES['userfile']['name']; // Get the name of the file (including file extension). $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); // Get the extension

Re: [PHP] Re: Strategy to protect images

2008-06-17 Thread Daniel Brown
On Tue, Jun 17, 2008 at 1:02 PM, Børge Holen <[EMAIL PROTECTED]> wrote: > > Oh, how many distros have you tried? > Just wondering, cus as I see it; you just took a chance and called it a fact Who, me? I didn't call it a fact, I called it a myth. ;-P -- Dedicated Servers - Intel 2.4GHz w/2

Re: [PHP] Re: Strategy to protect images

2008-06-17 Thread Børge Holen
On Tuesday 17 June 2008 00:08:48 Daniel Brown wrote: > On Mon, Jun 16, 2008 at 5:23 PM, Jonesy <[EMAIL PROTECTED]> wrote: > > On Sun, 15 Jun 2008 14:07:14 -0400, tedd wrote: > >> At 4:11 PM +0100 6/15/08, Richard Heyes wrote: > But, a sophisticated user will find a way around that. > >>> > >>>A

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-17 Thread Nathan Nobbe
On Tue, Jun 17, 2008 at 8:22 AM, Michelle Konzack < [EMAIL PROTECTED]> wrote: > Am 2008-06-16 12:02:27, schrieb Per Jessen: > > Check client IP-addresses? > > And then? I am DoS'ed from several 1000 IPs and since legitim uploaders > are mostly on dynamic IPs I can not block by IP. > > OK, last Sa

[PHP] Re: How to prevent DoS on PHP script?

2008-06-17 Thread Michelle Konzack
Am 2008-06-16 12:02:27, schrieb Per Jessen: > Check client IP-addresses? And then? I am DoS'ed from several 1000 IPs and since legitim uploaders are mostly on dynamic IPs I can not block by IP. OK, last Saturday I have installed a COOKIE which worked for the weekend but today morning the DoS'er

Re: [PHP] conversion of unicode characters into utf-8

2008-06-17 Thread Wolf
valsaraj <[EMAIL PROTECTED]> wrote: > > Thanks. > But in php 5.2.2 it's not compiled with mbstring. But in version 5.2.0 it's > compiled with mbstring support, but I don't get information aboout what > settings is required by htmlentities() to work properly. Could you help to > find out th

Re: [PHP] conversion of unicode characters into utf-8

2008-06-17 Thread valsaraj
valsaraj wrote: > > > valsaraj wrote: >> >> Hi, >> I am using code >> $val = htmlentities($val, ENT_QUOTES, "UTF-8"); >> >> but it's not working in version 5.2.0. Is there any additional >> configuration needed for this. it's working well in 5.2.2. Could you >> please help me??? >> > > >

Re: [PHP] conversion of unicode characters into utf-8

2008-06-17 Thread valsaraj
Thanks. But in php 5.2.2 it's not compiled with mbstring. But in version 5.2.0 it's compiled with mbstring support, but I don't get information aboout what settings is required by htmlentities() to work properly. Could you help to find out this? valsaraj wrote: > > Hi, > I am using code > $val

Re: [PHP] substr?

2008-06-17 Thread Stut
On 17 Jun 2008, at 14:04, Jason Pruim wrote: On Jun 17, 2008, at 9:01 AM, Dan Shirah wrote: The code I'm having issues with is this: $filename = $_FILES['userfile']['name']; // Get the name of the file (including file extension). $ext = substr($filename, strpos($filename,'.'), s

Re: [PHP] substr?

2008-06-17 Thread Stut
On 17 Jun 2008, at 14:05, Jason Pruim wrote: On Jun 17, 2008, at 8:46 AM, Stut wrote: On 17 Jun 2008, at 13:39, Jason Pruim wrote: I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip fil

Re: [PHP] substr?

2008-06-17 Thread Dan Shirah
Jason, If you don't expressly need it to run server side, you could always use a simple little javascript check if you want. * function checkFileType() { // for mac/linux, else assume windows if (navigator.appVersion.indexOf('Mac') != -1 || navigator.appVersion.indexOf('Linux') != -1) v

Re: [PHP] substr?

2008-06-17 Thread Jason Pruim
On Jun 17, 2008, at 8:46 AM, Stut wrote: On 17 Jun 2008, at 13:39, Jason Pruim wrote: I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip files in excess of 200 MB... Yes I know that is

Re: [PHP] substr?

2008-06-17 Thread Jason Pruim
On Jun 17, 2008, at 9:01 AM, Dan Shirah wrote: The code I'm having issues with is this: $filename = $_FILES['userfile']['name']; // Get the name of the file (including file extension). $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); // Get the extension

Re: [PHP] substr?

2008-06-17 Thread Dan Shirah
> > The code I'm having issues with is this: > >$filename = $_FILES['userfile']['name']; // Get the name of the file > (including file extension). >$ext = substr($filename, strpos($filename,'.'), > strlen($filename)-1); // Get the extension from the filename. > > All I want to do is

Re: [PHP] substr?

2008-06-17 Thread Stut
On 17 Jun 2008, at 13:39, Jason Pruim wrote: I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip files in excess of 200 MB... Yes I know that is large, but it's for a print shop and they

[PHP] substr?

2008-06-17 Thread Jason Pruim
Hi everyone, I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip files in excess of 200 MB... Yes I know that is large, but it's for a print shop and they get HUGE files to print from.

Re: [PHP] A somewhaat better example of CANVAS

2008-06-17 Thread Jason Pruim
On Jun 17, 2008, at 8:05 AM, Richard Heyes wrote: Again, FF only. This is a somewhat better example of what can be done with CANVAS. Not quite on par with what some have shown, but hey I only started yesterday... :-) http://www.phpguru.org/graph/graph.html The bars maybe a few pixels off,

[PHP] A somewhaat better example of CANVAS

2008-06-17 Thread Richard Heyes
Again, FF only. This is a somewhat better example of what can be done with CANVAS. Not quite on par with what some have shown, but hey I only started yesterday... :-) http://www.phpguru.org/graph/graph.html The bars maybe a few pixels off, but really, who cares? -- Richard Heyes Empl

Re: [PHP] mysqliconnect issue

2008-06-17 Thread Jason Pruim
On Jun 16, 2008, at 10:49 PM, Chris wrote: Jason Pruim wrote: Okay, So I'm going to just assume that my issue is the fact that I'm tired... and my mind won't work properly. [Mon Jun 16 22:27:58 2008] [error] PHP Warning: mysqli_connect() expects parameter 5 to be long, string given Now para

RE: [PHP] looping through a database

2008-06-17 Thread Ford, Mike
On 16 June 2008 21:58, Richard Kurth advised: > I am looping through a database of files that are numbers 1 through 10 > if number 1 is in the database I what to print out the first table > below if it is not then print the else section below. Then > loop through > the database to see if 2 throug

Re: [PHP] conversion of unicode characters into utf-8

2008-06-17 Thread Nathan Nobbe
On Mon, Jun 16, 2008 at 11:26 PM, valsaraj <[EMAIL PROTECTED]> wrote: > > Hi, > I am using code > $val = htmlentities($val, ENT_QUOTES, "UTF-8"); > > but it's not working in version 5.2.0. Is there any additional > configuration > needed for this. it's working well in 5.2.2. Could you please help

[PHP] Re: how can convert phonetic symbols and chinese pinyin to NCR(Numeric character reference)

2008-06-17 Thread gege wan
php 5.2.6+debian linux "gege wan" <[EMAIL PROTECTED]> дÈëÏûÏ¢ÐÂÎÅ:[EMAIL PROTECTED] > hello all, > i want convert the phonetic symbols and chinese pinyin to NCR. > i use the function mb_encode_numericentity do it, but i can't > got the true convmap table, so i can't convert the phonetic symbols an