John Taylor-Johnston wrote:
Jason wrote:
RTFM again.
Jason, again, I RTFM, but did not get it working.
Otherwise I wouldn't have dared ask a question.
Sessions depends on a number of factors
including your version of PHP and the setting of register_globals.
The FM manual says:
"$_SESSION
Sport4ever wrote:
PHP version: 4.2.1
OS: RedHat Linux 8
Apache version: 2.0
My problem is that I can't execute more than one (SSI include) on my website JUST for PHP file.. so there is NO problems at all if I include HTML or SHTML files.
Anyway, if I include 2 PHP files into any page, the first
Instead of
while(list($k,$v)=each($_POST)){
$_SESSION[$k]=$v;
//echo "_name_ ".stripslashes($k)." _value_
".stripslashes($v)."";
}
why not just
$_SESSION = array_merge($_SESSION,$_POST);
???
Michael Kimsal
http://www.phpappserver.com
734-480-9961
--
PHP General Mailing List (http://www.php
Yes, that is indeed true.
On Sun, 15 Dec 2002, Justin French wrote:
> I assume you know that running PHP on Apache 2 is NOT RECOMMENDED YET, or at
> the very least, listed as "experimental"??
>
> Justin
>
>
> on 15/12/02 11:13 AM, r.vellinga ([EMAIL PROTECTED]) wrote:
>
> > Hello,
> >
> > still t
PHP version: 4.2.1
OS: RedHat Linux 8
Apache version: 2.0
My problem is that I can't execute more than one (SSI include) on my website JUST for
PHP file.. so there is NO problems at all if I include HTML or SHTML files.
Anyway, if I include 2 PHP files into any page, the first INCLUDE statement
Hi people,
I have a question, i would like to use PEAR in some of my applications,
how can i download and iinstall PEAR on windows. I have Apache 2.0.43
with PHP 4.3.0 RC3 installed on a windows XP machine. I read on
http://pear.php.net/manual/en/faq.windows.php .
To make PEAR work on Wind
John,
PHP looks for "$vars or {$vars} to parse in the string" when double quotes
are used... whereas when single quotes are used, it won't parse/substitute
the vars.
So, when you're not using $vars, using single quotes will be marginally
faster... perhaps not important on small sites, but very
I assume you know that running PHP on Apache 2 is NOT RECOMMENDED YET, or at
the very least, listed as "experimental"??
Justin
on 15/12/02 11:13 AM, r.vellinga ([EMAIL PROTECTED]) wrote:
> Hello,
>
> still trying to get PHP 4 support on Apache 2. (Windows ME)
> Mysql is working Fine, Apache al
Marco (or anyone)
What is the difference between:
$familyname = getvar("familyname");
and
$familyname = getvar('familyname');
What do single quotes do, as a general rule, that double cannot (he asks remembering
something, but not sure what)?
Marco Tabini wrote:
> I haven't followed the rest
Thanks.
John
> When faced with this problem I tried the following (works)
>
> The top section of PHP code just reads the POST return array
> and plops it into a series of successive _SESSION vars
>
> Included is a FORM to use that shows the simple code at work
>
> HTH
> TomHenry
>
> ===
Why not:
1. place a .htaccess file in each existing client/developer directory
switching the value to ON -- being careful to ensure you don't wipe over an
existing .htaccess file!!
2. switch the value to OFF in php.ini
This means all current clients will have continued support for ON, and all
n
Not sure if it will be quicker or not, but I don't think you NEED a regex:
- get rid of 'for more information'
- split on 'See' into $pre and $code
- trim the bits down
- wrap $code in a URL
- glue it all back together
UNTESTED CODE:
http://support.microsoft.com/default.aspx?scid=kb;en-us;";;
$su
When faced with this problem I tried the following (works)
The top section of PHP code just reads the POST return array
and plops it into a series of successive _SESSION vars
Included is a FORM to use that shows the simple code at work
HTH
TomHenry
Tested =
Hi all,
Anyone out there have significant experience using the PHP/ldap
interface? It appears to me that it's missing some important
functionality, but I might just not be seeing how to do it.
I have a user-management application which needs to manage an openLDAP
user base of several thousand us
Hello,
still trying to get PHP 4 support on Apache 2. (Windows ME)
Mysql is working Fine, Apache also.
but when i insert the 2 or 3 lines " Load module etc." the server will shut down
can somebody help me please ?
ricardo
I haven't followed the rest of the thread, but how about using a
function?
function getvar ($varname)
{
if (isset ($_POST[$varname])
{
$_SESSION[$varname] = $_POST[$varname];
return $_POST[$varname];
}
elseif (isset ($_SESSION[$varnam
>Jason wrote:
>RTFM again.
Jason, again, I RTFM, but did not get it working.
Otherwise I wouldn't have dared ask a question.
>Sessions depends on a number of factors
>including your version of PHP and the setting of register_globals.
The FM manual says:
"$_SESSION (or $HTTP_SESSION_VARS with PH
Hi all,
I have several tables from which I have to fetch certain products &
categories based on customer selection. The tables are as follows:
Table 1 - Categories
catid (autonum)
catname
Table 2 - Sub categories
subcatid (autonum)
subcatname
Table 3 - Products
prodid (autonum)
prodname
Table
Andy,
> I am a PHP beginner so this error may be a stupid one. Anyway, I'm
> trying to write a simple addition script. The client enters two numbers,
> then my script (adder.php) adds them. However, when the script is run, I
> get "Parse Error On Line 3" I have no idea exactly what I have done wro
I am a PHP beginner so this error may be a stupid one. Anyway, I'm
trying to write a simple addition script. The client enters two numbers,
then my script (adder.php) adds them. However, when the script is run, I
get "Parse Error On Line 3" I have no idea exactly what I have done wrong.
Here is the
I got a generic ³text to png on the fly² script which works fine but I want
to change it so that the image only the size of the text. (so the text has
no border, or padding around it) For and example of what I want to do check
out: http://www.spoono.com/font/?string=This is what i want to do&.png
I
Marco Tabini <[EMAIL PROTECTED]> wrote in message:
> Hey Anthony--
>
> It's definitely a register_globals problem. Your ISP has turned it off
> because it's generally considered a significant security risk.
>
> The best way to solve it is to use the superglobal $_POST to access your
> post data. In
Hey Anthony--
It's definitely a register_globals problem. Your ISP has turned it off
because it's generally considered a significant security risk.
The best way to solve it is to use the superglobal $_POST to access your
post data. In your PHP script, change all the variables that you take
from t
>"Marco Tabini <[EMAIL PROTECTED]> wrote in message:
> Best guess, your local server has register_globals on and your ISP
> doesn't. However, without seeing your code it's going to be difficult to
> tell for sure! :-)
>
>
> Marco
Thanks for the
Best guess, your local server has register_globals on and your ISP
doesn't. However, without seeing your code it's going to be difficult to
tell for sure! :-)
Marco
--
php|architect - The Magazine for PHP Professionals
The monthly magazine dedicated to the world of PHP programming
Using MS Win 98 / Apache Server:
I'm trying to test a form box using the php mail() function.
All is well when I fill in the text boxes and hit submit.
I receive the e-mail.
The form action in the html page is:
http://localhost/getform.php"; METHOD="POST">
_Now_
when I copy both of those fi
> I was just looking at the date/time functions
> (http://www.php.net/manual/en/function.time.php) and I can't seem to
find
> a
> function that can format a date that is supplied in the format of a
> DATETIME
> column.
>
> So, I was wondering, is there a function that can format it properly
or
> s
You should be able to use strtotime() to transform the datetime string
into a UNIX timestamp, which you can then format back using date().
However, this is a very circuitous way--either use SQL to format it or,
if your DBMS supports it, have it returned already as a UNIX timestamp.
The actual SQL c
Hey there,
I was just looking at the date/time functions
(http://www.php.net/manual/en/function.time.php) and I can't seem to find a
function that can format a date that is supplied in the format of a DATETIME
column.
So, I was wondering, is there a function that can format it properly or
should
php-general Digest 14 Dec 2002 19:55:50 - Issue 1763
Topics (messages 128272 through 128292):
Re: Text Fields - How Big Can They Be?
128272 by: Jason Wong
Re: Problems with text files from a Mac
128273 by: Justin French
Re: Is there any alternative to FuseBox?
12827
On Saturday 14 December 2002 23:57, Javier wrote:
> [EMAIL PROTECTED] (Jason Wong) wrote in
> [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
>
> Hi, sorry that I didn't make it clear.
> I'm looking for an alternative to php-fusebox.
For processing of forms, there are a number of classes on www.phpcla
Todd Cary wrote:
I am new to Linux, so the syntax is still quite foreign for setting up
compiles. Here is what I need to do:
Compile PHP with MySQL, Interbase, and the GD library and then compile
Apache so that it has the newly compiled PHP integrated. Can someone
refer me to some
The INS
I am new to Linux, so the syntax is still quite foreign for setting up compiles.
Here is what I need to do:
Compile PHP with MySQL, Interbase, and the GD library and then compile Apache
so that it has the newly compiled PHP integrated. Can someone refer me to
some literature on the correct s
Hello List,
I want to know all about copiling, installing and configuring php with gd-support.
Anybody knows a good site or book to read about?
Oliver Etzel
[EMAIL PROTECTED] (Jason Wong) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
Hi, sorry that I didn't make it clear.
I'm looking for an alternative to php-fusebox.
So I was asking how do you process the data from forms and so.
> On Saturday 14 December 2002 12:25, Javier wrote:
>> I was
> Lately we discovered that, by mistake, we've run PHP with
register_globals
> on for a few months for all our customers.
>
> Since we want to turn it off, we need to figure out which customers
use
> the
> 'register_globals' functionality so we can ask them to modify their
> scripts.
Why do you w
Hello,
Lately we discovered that, by mistake, we've run PHP with register_globals
on for a few months for all our customers.
Since we want to turn it off, we need to figure out which customers use the
'register_globals' functionality so we can ask them to modify their scripts.
However, checking
Hello List,
I want to know all about copiling, installing and configuring php with gd-support.
Anybody knows.
Oliver Etzel
On Saturday 14 December 2002 17:19, John Taylor-Johnston wrote:
> I did call session_start() before anything is output to the browser.
> http://www.php.net/manual/en/function.session-start.php
>
> I only have one php file so I know I'm recyling my code each time:
>
> session_name("TestALS");
> sess
On Saturday 14 December 2002 18:26, Paul Roberts wrote:
> the legend starts here
> http://www.php.net/manual/sk/features.file-upload.php
>
> "The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must
> precede the file input field and its value is the maximum filesize
> accepted. Th
Ok, have you tried
");
print_r($_FILES);
echo("");
?>
at the beginning of the 2nd script? What does it say?
Bogdan
Miro Kralovic wrote:
Hi Bodgan..
yes, I have globals On, Uploads On and SafeMode=off.. no luck...
I did it exactly by the book, damn it..:-(
-Original Message-
Fro
what version of php are you using?
- Original Message -
From: "Miro Kralovic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 14, 2002 3:52 AM
Subject: RE: [PHP] File Upload
Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile
variable at all
the legend starts here
http://www.php.net/manual/sk/features.file-upload.php
"The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must precede the
file input field and its value is the maximum filesize accepted. The value is in
bytes."
it also notes
"The MAX_FILE_SIZE is adv
I did call session_start() before anything is output to the browser.
http://www.php.net/manual/en/function.session-start.php
I only have one php file so I know I'm recyling my code each time:
session_name("TestALS");
session_start();
session_register("studentid");
if (isset($_SESSION["studentid"
I used to think I knew how to do this ... take pity :)
I start my session:
session_name("TestALS");
session_start();
I register a variable:
session_register("studentid");
if (isset($_SESSION["studentid"]))
{
$id = $_SESSION["studentid"];
echo "\$studentid= $studentid";
}
Pretend $studentid con
On Saturday 14 December 2002 16:40, Tom Rogers wrote:
> Just clutching at straws as there was no mention of which browser was being
> used and it may have been needed as this is a browser directive. I have
> never had trouble uploading files with or without that setting.
Ah, so in your case you'r
Hi,
Saturday, December 14, 2002, 5:55:12 PM, you wrote:
JW> On Saturday 14 December 2002 11:35, Tom Rogers wrote:
>> You are missing this bit:
>>
>>
JW> I am curious as to why so many people say this in response to file upload
JW> problems?
JW> In practice, none of my upload forms have that
On Saturday 14 December 2002 11:34, Manuel Ochoa wrote:
> I have a Windows server running Apache 2 and PHP 4.3
>
> I got the following error while using the mail() function:
> Warning: mail() [function.mail]: SMTP server response: 550 User not local.
> We don't relay in C:\Apache2\htdocs\mymail.php
On Saturday 14 December 2002 12:25, Javier wrote:
> I was reading FuseBox's beginners' guide but I didn't completely understood
> the way that framework works.
>
> How do you process the data obtained from forms? Is it the same script that
> displays the form?
Doesn't fusebox have it's own mailing
1. they can export the CSV as DOS/Windows from Excel on the Mac with ease
2. they can pipe the CSV thru any text editor that lets them choose between
mac/win/unix line endings (BBEdit/Lite for example)
3. $filecontents = str_replace('\r', '\n', $filecontents); //should work
on 13/12/02 1:22 PM,
On Saturday 14 December 2002 15:46, Monty wrote:
> Hi John, I'm using POST for the form. But it's the HTML form field itself
> that won't allow me to paste in a large amount of text. If I can get the
> field to accept the text, there's no problem sending it via POST to the PHP
> script.
I think th
51 matches
Mail list logo