Re: [PHP] Debug code

2004-01-19 Thread Nathan Taylor
Aye, PHP is compiled by the executable, nothing else- what are you using? - Original Message - From: Robin Kopetzky To: PHP General Sent: Monday, January 19, 2004 10:32 AM Subject: [PHP] Debug code Good morning! Is there any way to keep the compiler from adding 'debug co

Re: [PHP] PHP Calendar.

2004-01-15 Thread Nathan Taylor
No, but HotScripts.com and PHPClasses.org (><) will have classes to do them. I'm a fan of BosDates (can be found on HotScripts.com), but I think it might cost something to get it. Cheers, Nathan Taylor - Original Message - From: Carles Xavier Munyoz Baldó To: [EMAI

Re: [PHP] run a command on a remote host

2003-12-09 Thread Nathan Taylor
When you say remote host do you mean the server executing the script or the person accessing it? If you mean the latter, it is not possible. - Original Message - From: Ivone Uribe To: [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 5:44 PM Subject: [PHP] run a command on a

Re: [PHP] php2c

2003-12-05 Thread Nathan Taylor
Hello, BinaryPHP is still at a dev state and is incomplete, if you're having specific problems try stopping by #binaryphp on freenode and talking to Daeken there regarding them. Best Wishes, Nathan - Original Message - From: Volvo To: [EMAIL PROTECTED] Sent: Friday, December

Re: [PHP] Accessing .bat file from PHP

2003-11-30 Thread Nathan Taylor
I believe... that the .bat file MUST be on the server for PHP to execute it. Nathan - Original Message - From: Reidar Solberg To: [EMAIL PROTECTED] Sent: Sunday, November 30, 2003 1:10 PM Subject: [PHP] Accessing .bat file from PHP I want to start a .bat file on my local p

Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Nathan Taylor
You're not making any sense my friend. If you want to fill form field then supply them with a value="" value. There's nothing more to it. - Original Message - From: Anonymous To: [EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 5:37 AM Subject: Re: [PHP] PHP script that f

Re: [PHP] HTML email enconding

2003-11-24 Thread Nathan Taylor
There is a nice function called sendmail available in the comments on php.net/mail. I use that regularly as it inserts all the necessary headers and supports multiple attachments. It's well worth considering... Nathan - Original Message - From: Eugene Lee To: [EMAIL PROTECTED]

Re: [PHP] Re: Form with browse for file to upload "ftp"

2003-11-22 Thread Nathan Taylor
Glad to be of service. =) - Original Message - From: PAUL FERRIE To: [EMAIL PROTECTED] Sent: Saturday, November 22, 2003 3:52 PM Subject: [PHP] Re: Form with browse for file to upload "ftp" Got it working :) thanks for the help Paul "Paul Ferrie" <[EMAIL PROTECTED]>

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Nathan Taylor
Oh and also, don't forget to set: enctype="multipart/form-data" in the tag. Nathan - Original Message - From: Nathan Taylor To: PAUL FERRIE ; [EMAIL PROTECTED] Sent: Saturday, November 22, 2003 2:20 PM Subject: Re: [PHP] Form with browse for file to upload &qu

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Nathan Taylor
There is nothing special to be done with the form itself for it to support file uploading aside from supply a browse field: As for uploading it, here's some untested code: if(!empty($_FILES['file']['tmp_name'])) { $name = strtolower(eregi_replace('#| |\?|!', '', $_FILES['file']['name']))

Re: [PHP] Form with browse for file to upload "ftp"

2003-11-22 Thread Nathan Taylor
There is nothing special to be done with the form itself for it to support file uploading aside from supply a browse field: As for uploading it, here's some untested code: if(!empty($_FILES['file']['tmp_name'])) { $name = strtolower(eregi_replace('#| |\?|!', '', $_FILES['file']['name']))

Re: [PHP] Prefilled forms

2003-11-18 Thread Nathan Taylor
This shouldn't have anything to do with your server config, but rather the forms themselves. What method are you sending the form(s) with? Nathan - Original Message - From: b b To: Jay Blanchard ; [EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 4:24 PM Subject: RE: [PHP]

Re: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Nathan Taylor
That's simple, just modify your Apache httpd.conf on the line where it says something along the lines of: AddType application/x-httpd-php .php4 .php .php3 .inc change it to: AddType application/x-httpd-php .php4 .php .html .php3 .inc - Original Message - From: BennyYim To: [EMAI

Re: [PHP] Include an encoder into PHP distribution?

2003-11-15 Thread Nathan Taylor
Well that's all good and grand but why increase the size of the distribution when it's not necessary to? Nobody wants to download something they don't necessarily need included. Nathan - Original Message - From: John Smith To: [EMAIL PROTECTED] Sent: Saturday, November 15, 20

Re: [PHP] Who controls PHP?

2003-11-15 Thread Nathan Taylor
Hello, Zend in no way dictates PHP, they are simply a major player in it's development and are just as important as the PHP community. Zend develops much of the core extensions for PHP but at the same time, they do not own or even run. Nathan - Original Message - From: John Smith

Re: [PHP] Pausing in PHP

2003-11-12 Thread Nathan Taylor
sleep() should do what you need. www.php.net/sleep Regards, Nathan - Original Message - From: Donpro To: php list Sent: Monday, November 10, 2003 12:49 PM Subject: [PHP] Pausing in PHP Hi, Is there a PHP function that would allow the script execution to pause 'N'

Re: [PHP] Beveled text

2003-11-08 Thread Nathan Taylor
Well, I'm speaking from imagination here but I imagine the effect could be obtained by creating a series of layers to one item in a loop, changing the alpha transparency slightly each time as well as shrinking the size of the image. You'd start with 75ish alpha level and then loop through one l

Re: [PHP] text input truncated

2003-11-04 Thread Nathan Taylor
Your html is very sloppy actually. Use: $xyz = 'Hello World'; echo ''; - Original Message - From: Daniel Clark To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 6:49 PM Subject: Re: [PHP] text input truncated > $xyz = "Hello World"; > >

Re: [PHP] recursive acronym - PHP

2003-11-01 Thread Nathan Taylor
Why must the powers that be create such mind-bendingly painful terms such as these? They are the sort of things that send my brain into an infinite loop. Nathan - Original Message - From: Joachim Krebs To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 3:23 PM Subject: R

Re: [PHP] recursive acronym - PHP

2003-11-01 Thread Nathan Taylor
Why must the powers that be create such mind-bendingly painful terms such as these? They are the sort of things that send my brain into an infinite loop. Nathan - Original Message - From: Joachim Krebs To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 3:23 PM Subject: R

Re: [PHP] Web Applications and C++?

2003-11-01 Thread Nathan Taylor
They tend to use dlls and the sort, but that question is rather inappropriate for this list... - Original Message - From: John Ryan To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 12:33 PM Subject: [PHP] Web Applications and C++? I assume sites like Amazon and Ebay

Re: [PHP] Re: IRC

2003-10-31 Thread Nathan Taylor
Sure Jon, pimp Daeken's channel...   BinaryPHP is not what he needs   Nathan - Original Message - From: Jon Kriek To: [EMAIL PROTECTED] Sent: Friday, October 31, 2003 4:11 PM Subject: [PHP] Re: IRC server: irc.freenode.netchannels: #phpfreaks, #php, #binaryphp-- J

[PHP] Handling Notices

2003-10-27 Thread Nathan Taylor
Undefined index: _blah_ in _blah_." Most of these are array indices in super globals such a $_GET, $_SESSION, etc. How can I get rid of these little buggers? Thanks, Nathan Taylor

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Nathan Taylor
;s make sure it isn't used. ini_set('arg_separator.output', '&'); Cheers, Nathan Taylor - Original Message - From: Burhan Khalid To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Friday, October 24, 2003 3:43 PM Subject: Re: [PHP] w3c-compliant for

Re: [PHP] HTTP request contents

2003-10-24 Thread Nathan Taylor
Perhaps $_SERVER['REQUEST_URI'] in combination with $_SERVER['QUERY_STRING'] ? Nathan - Original Message - From: Hanuska Ivo To: [EMAIL PROTECTED] Sent: Friday, October 24, 2003 6:10 AM Subject: [PHP] HTTP request contents Hi everyone, I need to know, if there is a poss

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Nathan Taylor
I am a recent fan of the single-quotes. I used to use double only but when some gurus told me the disadvantages I converted my entire project over to single quotes. Single quotes are ideal because as far coding goes it greatly decreases the time of development when you don't have to worry abou

Re: [PHP] Archives

2003-10-22 Thread Nathan Taylor
Thanks John and and Chris. - Original Message - From: John Nichel To: [EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 2:26 PM Subject: Re: [PHP] Archives Nathan Taylor wrote: > Hey guys, > > Just a quickie: where are the archives for this list?

[PHP] Archives

2003-10-22 Thread Nathan Taylor
Hey guys, Just a quickie: where are the archives for this list? What URL? Thanks, Nathan Taylor

Re: [PHP] need help designing a job search agent

2003-10-20 Thread Nathan Taylor
Are you looking for something that job listings are added to by companies or something that crawls the web for listings? Nathan

Re: [PHP] $PHP_SELF

2003-10-20 Thread Nathan Taylor
$PHP_SELF is a variable that is a variable that has limited scope and as a rule of thumb should never be used. It is a very sloppy way to code. I advise you stick to $_SERVER['PHP_SELF']. - Original Message - From: Boris Sagadin To: [EMAIL PROTECTED] Sent: Monday, October 20,

Re: [PHP] Need Charting Utility

2003-10-09 Thread Nathan Taylor
Look into JpGraph, it rocks my world. http://www.aditus.nu/jpgraph/ Nathan - Original Message - From: rick rice To: [EMAIL PROTECTED] Sent: Thursday, October 09, 2003 2:30 PM Subject: [PHP] Need Charting Utility Can anyone suggest a good charting utility for PHP running

Re: [PHP] function to show time passed since event

2003-10-08 Thread Nathan Taylor
Sure, this isn't tough at all as long as you keep track of your times. When the user logs in store the time() in a cookie or database. Then to check the time since do this \n"; echo "Then: ".date("m/d/y g:ia", $timesince)."\n"; ?> That should be right, I think... - Original Message

Re: [PHP] Credit Card Validation

2003-10-08 Thread Nathan Taylor
I'll take a look through that and do as much further research as is possible. Thanks. - Original Message - From: Craig Lonsbury To: Nathan Taylor ; php-general Sent: Wednesday, October 08, 2003 4:04 PM Subject: RE: [PHP] Credit Card Validation this is a good explan

Re: [PHP] Credit Card Validation

2003-10-08 Thread Nathan Taylor
doesn't make the process any easier. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Nathan Taylor" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, 08 October, 20

[PHP] Credit Card Validation

2003-10-08 Thread Nathan Taylor
ating a credit cards with both preprocessing by the form to determine the pattern validity and post processing by a bank to confirm the actual card validity. Your help would be greatly appreciated. Best Wishes, Nathan Taylor

Re: [PHP] Congratulations You Win

2003-10-08 Thread Nathan Taylor
WTF is this? - Original Message - From: Francis Weeny To: [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:30 PM Subject: [PHP] Congratulations You Win SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. ALFONSTRAAT B56, 1002 BS AMSTERDAM, THE NETHERLANDS. TO THE MAN

Re: [PHP] .htaccess - Still asking for login information although already sent through address bar

2003-10-06 Thread Nathan Taylor
Does it continuously ask or just twice? I've found a weird issue with .htaccess where if the domain name is a mask for a subdomain host and you try to access an .htaccess protected page it will prompt you for the password, redirect you to the subdomain and then prompt you again. Nathan

Re: [PHP] hotscripts style program

2003-10-04 Thread Nathan Taylor
Are you looking to make a new HotScripts style website or just a similar menu system? - Original Message - From: Ryan A To: [EMAIL PROTECTED] Sent: Saturday, October 04, 2003 9:28 AM Subject: [PHP] hotscripts style program Hey, Anybody have any code or links to explain ho

Re: [PHP] dir size

2003-10-03 Thread Nathan Taylor
ze() function. That function takes the integer which is your total size of the directory and converts it into a nice formatted number either in kb, mb, or gb accordingly. You'll find it uses true file size as well, not "industry standard" sizing. Enjoy, Nathan Taylor - O

[PHP] Possible Bug With $_FILES Global

2003-09-18 Thread Nathan Taylor
']. Somehow this doesn't seem quite right to me. Granted, it still works just as well but it sort of breaks the traditional naming structure for an array and really jumbles the logical flow of things. Do you think this is worth reporting? Regards, Nathan Taylor

[PHP] Procedural Code Issue

2003-09-07 Thread Nathan Taylor
on. Can anyone offer ideas? I have already tried both declaring an absolute path and checking the variables arlready. Thanks, Nathan Taylor

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Nathan Taylor
Open your browser, right click and hit properties on any page. - Original Message - From: "Brian McGarvie" <[EMAIL PROTECTED]> To: "Nathan Taylor" <[EMAIL PROTECTED]>; "Bret L Conard" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tu

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Nathan Taylor
> if (!session_is_registered("SESSION")){ > print ("You must Log-In to access this page\n"); > print (""); > print ("Click here to Log In"); > } print (""); should be: print("Sign-in"); // or something like that But anyways, I don't think that's quite what he wanted. I t

[PHP] Don't send the reciept

2002-06-18 Thread Nathan Taylor
Please do not click yes when it asks you to send the reciept on the email about hiding a download link, I hadn't realized the reciept function was on and it's really getting annoying. Cheers, Lakario -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Nathan Taylor
has a non specific name. //Step 3: Update Location (don't want to lose the location) $query = "update file_locations set location=$newlocation where file_name='secure.zip'"; mysql_query($query) Best of Luck to you, Nathan Taylor ModDev.net

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Nathan Taylor
- Original Message - From: "Fargo Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 12, 2002 4:14 PM Subject: [PHP] How do I hide download link ... > Hi, my customers go through a password authentication to access a link on my > site to download a file. I want to pr

Re: [PHP] Parsing Text File

2002-06-15 Thread Nathan Taylor
This is all really straight forward stuff. Here's some code that will get the file parsed to an array, what you do from there is up to you. Note: if you have a precise structure for your lines you can say to read from point a to b using substr(). For example, let's say the first name is exa

Re: [PHP] Can't set a cookie?

2002-06-15 Thread Nathan Taylor
The 3rd parameter is an optional time to expire parameter, if you don't want to set it, leave it out. setcookie(cookiename,"value"); works fine - Original Message - From: Lazor, Ed Sent: Saturday, June 15, 2002 11:48 AM To: php-general Subject: [PHP] Can't set a cookie? Hi Everyone,

Re: [PHP] saving a jpeg via HTTP

2002-06-15 Thread Nathan Taylor
Perhaps you could try a cURL or some other FTP approach? - Original Message - From: Jeff Bearer Sent: Saturday, June 15, 2002 11:16 AM To: [EMAIL PROTECTED] Subject: [PHP] saving a jpeg via HTTP What is the best way using only PHP to grab a image file off a website a d save it locally?

Re: [PHP] PHP timeout

2002-06-15 Thread Nathan Taylor
Hmm, I haven't heard of such a thing. That's kinda weird though because just yesterday I modified my timeout settings for my script that parses logfiles that are several thousand lines long, and it worked. Did you perhaps forget to reboot the server? If you have my suggestion is perhaps taking

Re: [PHP] Downside to using login sessions?

2002-06-15 Thread Nathan Taylor
As a general rule it is always good to store data that is secure in a encrypted format. My website for example uses a mysql database and I store the encrypted mysql password in the cookie so I get somethign like 435gcg34tsskhj57 to equal 123. It's far more secure because cookies are on the u

Re: [PHP] Confusion with the $_name $_type $_size Variable Extensions

2002-06-15 Thread Nathan Taylor
$Size/1023; $Size = number_format($Size, 2); $Size = $Size." mb"; } $type = GetExtension($row[filename]); if($type == "jpg" or $type == "gif" or $type == "png" or $type == "txt" or $type == "sql") $details = "Details"; else $det

[PHP] Confusion with the $_name $_type $_size Variable Extensions

2002-06-14 Thread Nathan Taylor
I am having a lot of trouble with the $_name, $_size, and $_type variable extensions. I have a basic file upload system however it is within a function. Sometimes when I declare the aforementioned variables in a global statement such as global $file_name I can get a value for _name, other times,