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
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
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
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
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
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
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]
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]>
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
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']))
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']))
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]
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
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
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
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'
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
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";
>
>
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
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
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
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
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
;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
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
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
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?
Hey guys,
Just a quickie: where are the archives for this list? What URL?
Thanks,
Nathan Taylor
Are you looking for something that job listings are added to by companies or something
that crawls the web for listings?
Nathan
$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,
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
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
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
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
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
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
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
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
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
']. 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
on.
Can anyone offer ideas? I have already tried both declaring an absolute path and
checking the variables arlready.
Thanks,
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
> 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
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
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
- 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
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
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,
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?
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
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
$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
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,
53 matches
Mail list logo