Hello,
I have some files off of the web root which I'd like to be able to serve up
to users (*.doc, *.xls). I know I can do this with header(), but how do I
reference a file that's outside of the webroot? Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
on. Thanks much!
stas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
r))
{
echo "$key is $val";
}
This doesn't do the trick, as it creates a regular array with values from my list, as
in form_array['1'] = "firstname"; whereas I need form_array['firstname']
Is this possible without being overly complicated? Thanks.
stas
, $form_val_list);
while (list ($key, $val) = each ($form_arr))
{
$new_arr[ $val] = "some test value";
}
stas
- Original Message -
From: "Boget, Chris" <[EMAIL PROTECTED]>
> > I am trying to create an associative array dynamically.
> > Here
Hello,
What is the correct syntax for registering a variable that's a part of an array. I
tried these variations (i'm doing this in a loop):
session_register('$form_val[$val]');
session_register($form_val[$val]);
This registers _something_, but not what I need. Thanks for any help!
stas
Sean, as I said, I'm trying to accomplish this in a loop, and the variable
is in array. To use your approach I would have to get rid of the loop and
type out the code manually. This purpose of this is to create persistant
form values in case form validation fails. Here's my code:
";
echo "test
Hello,
Is it that correct that only non-empty variables get inserted into HTTP_POST_VARS? I
am trying to do server side form validations, and this represents a bit of difficulty
in terms of notifying a user about which fields are missing values.
rrect?
stas
- Original Message -
From: "Colin May" <[EMAIL PROTECTED]>
To: "Kike" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 14, 2001 11:01 AM
Subject: Re: [PHP] Problems with mail function
>
> Quoting Kike (Wed, Mar 1
Hello,
I am receiving the following error from my app, and I'd be gratefull if
somebody would point out the usual cause of it. I am doing a redirect
based on a form validation routine. Thank you.
Warning: Cannot add header information - headers already sent in
/usr/home/stas/html/cath
(YearsDifference*12)+FullMonthsDifference :)
Regards, Stas.
- Original Message -
From: "Brian McGarvie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 1:50 PM
Subject: [PHP] Date Stuff...
> Given a date how would you work out
www.phpclasses.org
Stas
- Original Message -
From: "Andrew Perevodchik" <[EMAIL PROTECTED]>
To: "Michael Sims" <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 3:06 PM
Subject: Re: [PHP] Embeding images in HTML emails
> Hello, Michael Sims!
&
"Outside" would be in '/var/www/secure' in your case. Or any other place
your scripts have access to, save under '/var/www/html/'.
HTH, Stas
- Original Message -
From: "Andre Dubuc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
o be that much
specific.
HTH, Stas
- Original Message -
From: "Charlotte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 1:04 PM
Subject: [PHP] check unread messages in a forum
> I have made a forum in PHP, and the users are logged in
This should help you. This way the browser will look for images directory in
the root of your webserver.
Regards, Stas
- Original Message -
From: "Ivan Carey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 1:50 PM
Subject: [PHP] prob
Hi,
There should be a new entry like "XSLT enabled" under "XML enabled" in your
PHPinfo in case of successful set-up.
I'm not very familiar with the Unix build, but just to be sure can you check
if you uncommented the xslt extension in your php.ini file (if any)?
task.
HTH, Stas
- Original Message -
From: "Rick Selby" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 12:02 PM
Subject: [PHP] Window/Page/Browser/Screen width
> Hi,
>
> I've seen similar questions in archives so sorry if I
The "$index&1" construct will return either 0 or 1 for even and odd rows, so
the proper color will be selected.
HTH, Stas
- Original Message -
From: "Remon Redika" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 28, 2002 2
mask you need to "shift-right" (another binary operator)
your number to the certain number of bits you want to omit:
$result = ($yourNumber & 0x0F00) >> 8; // for the third "quartet"
Hope this helps,
Stas
- Original Message -
From: "David Buerer" <
If you need plaintext newsletter, you can not use HTML at all, even
pretending that it is a plain-text.
It will be screwed badly on the plaintext-only e-mail clients anyway.
Stas
- Original Message -
From: "Brian McGarvie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
t;');
header('HTTP/1.0 401 Unauthorized');
HTH, Stas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
may be used from a shared user agent. Requests for how
to force 'logout' appear almost daily in the netnews html and cgi authoring
groups, and are one of the most common support questions received by Agranat
Systems from their customers developing embedded systems web interfaces."
Try www.moreover.com
HTH Stas
- Original Message -
From: "Brian McGarvie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 1:52 PM
Subject: [PHP] News Feeds
> Hi
>
> I'd like to get some news fro
The easiest and safest way to get around this problem is to place all your
include files outside of your webroot directory (say one level up), so they
will be accessible locally via includes, but NOT accessible via http.
HTH, Stas
- Original Message -
From: "John Wards&quo
The benefit would be in dividing business logic from presentation layer.
Stas.
- Original Message -
From: "Simon Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 7:35 AM
Subject: RE: [PHP] Re: PHP & XML
> To me this is
First get all the table names in your db:
mysql_query("show tables from [your_db_name]");
Then crawl thru the table list and get index information for each of them:
mysql_query("show index from [your_table_name]");
HTH Stas
- Original Message -
From: <[EMAIL
the following error from my app, and I'd be gratefull if
>> somebody would point out the usual cause of it. I am doing a redirect
>> based on a form validation routine. Thank you.
>>
>> Warning: Cannot add header information - headers already sent in
>> /usr/home
Hi!
I've released PHP 5.4.6RC1 which can be found here:
http://downloads.php.net/stas/
Windows binaries as always are at:
http://windows.php.net/qa/
This is a regular bugfix release, the full list of issues fixed can be
found in the NEWS files. Please test and report if anythi
The PHP development team announces the immediate availability of PHP
5.4.9 and PHP 5.3.19. These releases fix about 15 bugs. All users of PHP
are encouraged to upgrade to PHP 5.4.9, or at least 5.3.19.
The full list of changes are recorded in the ChangeLog on
http://www.php.net/ChangeLog-5.php
Fo
Hi!
> Johannes Schlüter in php.internals (Thu, 31 Jan 2013 16:00:17 +0100):
>> If no critical issues is found in this RC, the final version will be
>> released in two weeks.
>
> Just curious: what is keeping 5.3.22 and 5.4.12 from being released?
> Are there any issues?
We had 5.4.12 RC2 last we
The PHP development team announces the immediate availability of PHP
5.4.13 and PHP 5.3.23. These releases fix about 15 bugs, including fixes
for CVE-2013-1643 and CVE-2013-1635. All users of
PHP are encouraged to upgrade to PHP 5.4.13. PHP 5.3.23 is recommended
for those wishing to remain on the 5
Hello!
The PHP development team announces the immediate availability of PHP
5.4.15 and PHP 5.3.25. These releases fix about 10 bugs. All users of
PHP are encouraged to upgrade to PHP 5.4. PHP 5.3.25 is recommended
for those wishing to remain on the 5.3 series.
The full list of changes are recorde
Hello!
The PHP development team announces the immediate availability of PHP
5.4.16 and PHP 5.3.26. These releases fix about 15 bugs, including
CVE-2013-2110. All users of PHP are encouraged to upgrade to PHP 5.4.16.
PHP 5.3.26 is recommended for those wishing to remain on the 5.3 series.
For sour
Hello!
The PHP development team announces the immediate availability of PHP
5.4.17. About 20 bugs were fixed. All users of PHP are encouraged to
upgrade to this release.
For source downloads of PHP 5.4.17 please visit our
downloads page: http://www.php.net/downloads.php
Windows binaries can be f
Hello!
The PHP development team announces the immediate availability of PHP
5.4.19 and PHP 5.5.3. These releases fix a bug in the patch for
CVE-2013-4248 in OpenSSL module and compile failure with ZTS enabled in
PHP 5.4, which were introduced in previously released 5.4.18 and 5.5.2.
All PHP users
Hello!
The PHP development team announces the immediate availability of PHP
5.4.20. About 30 bugs were fixed. All users of PHP 5.4 are encouraged to
upgrade to this release.
For source downloads of PHP 5.4.20 please visit our
downloads page: http://www.php.net/downloads.php
Windows binaries can
Hello!
I've packed PHP 5.4.0beta2 which you can find here:
http://downloads.php.net/stas/
The Windows team provides windows binaries which you find here:
http://windows.php.net/qa/
Please test it carefully, and report any bugs in the bug system, but
only if you have a
the NEWS file.
You can download the packages from:
http://downloads.php.net/stas
The Windows team provides windows binaries for the release.
As always you find them at:
http://windows.php.net/qa/
This is also the first release we are making from our brand new Git
setup, please tell us if
file.
You can download the packages from:
http://downloads.php.net/stas
The Windows team provides windows binaries for the release.
As always you find them at:
http://windows.php.net/qa/
This is also the first release we are making from our brand new Git
setup, please tell us if you
38 matches
Mail list logo