php-general Digest 2 Nov 2003 23:04:04 -0000 Issue 2392
Topics (messages 168326 through 168357):
passing variables to subsequent pages
168326 by: Robb Kerr
168327 by: Justin French
168328 by: David Otton
168332 by: Robb Kerr
Dissecting an email address
168329 by: Dave Carrera
168331 by: Filip de Waard
168333 by: Joachim Krebs
Re: PHP 5
168330 by: Andi Gutmans
How to remove new line character?
168334 by: Shu Hung Yeung
168335 by: Simon Stiefel
168337 by: Shu Hung Yeung
168338 by: Simon Stiefel
168342 by: Gerard Samuel
passing an array via GET and a hidden form element
168336 by: Robb Kerr
168339 by: John W. Holmes
A question about file creation
168340 by: Shu Hung Yeung
168341 by: Ian Firla
JavaScript question
168343 by: Robin Kopetzky
168344 by: Marek Kilimajer
168347 by: Jake McHenry
Problem with apache and php on OpenBSD 3.4
168345 by: Teren
How to remove a variable from an array
168346 by: Jake McHenry
more proplems with passing arrays
168348 by: Robb Kerr
168349 by: Jake McHenry
168352 by: Lowell Allen
168353 by: Robb Kerr
PHP and Apace setup
168350 by: Teren
168351 by: Simon Stiefel
Re: recursive acronym - PHP
168354 by: Evan Nemerson
168355 by: Joachim Krebs
scalar value as array problem
168356 by: Steve Turner
time() & daylight savings
168357 by: philip lehmann
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I have a two page search. The first page queries a database and creates a
list of MANUFACTURERS from which the visitor can select all, one or
multiple entries. The page is submitted via GET to the second page of the
search. The second page uses the array of selected MANUFACTURERS to create
a selectable list of MODELS from which the visitor can select all, one or
multiple entries. This page is then submitted to the results page via GET.
The problem is that to correctly query the database for results, I need to get the
array of selected MANUFACTURERS to
the results page. I'm using a SUBMIT button and don't know how to include
this information in the URL being passed. Any
suggestions?
Thanx,
--
Robb Kerr
Digital IGUANA
Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com
http://www.cancerreallysucks.org
--- End Message ---
--- Begin Message ---
On Monday, November 3, 2003, at 12:44 AM, Robb Kerr wrote:
I have a two page search. The first page queries a database and
creates a
list of MANUFACTURERS from which the visitor can select all, one or
multiple entries. The page is submitted via GET to the second page of
the
search. The second page uses the array of selected MANUFACTURERS to
create
a selectable list of MODELS from which the visitor can select all, one
or
multiple entries. This page is then submitted to the results page via
GET.
The problem is that to correctly query the database for results, I
need to get the array of selected MANUFACTURERS to
the results page. I'm using a SUBMIT button and don't know how to
include
this information in the URL being passed. Any
suggestions?
If you're using a submit button, then you can have a hidden form field:
<form ...>
<input type='hidden' name='manufacturer'
value='<?=$_GET['manufacturer']?>' />
<input type='submit' ...>
</form>
of just add it to the URL of the form action:
<form action='nextpage.php' method='get'>
...
</form>
becomes:
<form action='nextpage.php?manifacturer=<?=$_GET['manufacturer']?>'
method='get'>
...
</form>
Make sense?
You could also consider sessions, cookies, etc etc.
Justin French
--- End Message ---
--- Begin Message ---
On Sun, 2 Nov 2003 07:44:29 -0600, you wrote:
>I have a two page search. The first page queries a database and creates a
>list of MANUFACTURERS from which the visitor can select all, one or
>multiple entries. The page is submitted via GET to the second page of the
>search. The second page uses the array of selected MANUFACTURERS to create
>a selectable list of MODELS from which the visitor can select all, one or
>multiple entries. This page is then submitted to the results page via GET.
>
>The problem is that to correctly query the database for results, I need to get the
>array of selected MANUFACTURERS to
>the results page. I'm using a SUBMIT button and don't know how to include
>this information in the URL being passed. Any
>suggestions?
Flip to POST instead of GET, for the sake of neatness.
The key to passing multiple values is the "[]" at the end of the checkbox
name in the form:
<?
if (isset ($fruit))
{
print_r ($fruit);
}
?>
<form method="post" action="<? echo($PHP_SELF); ?>">
<p><input type="checkbox" name="fruit[]" value="apple"> Apple</p>
<p><input type="checkbox" name="fruit[]" value="orange"> Orange</p>
<p><input type="checkbox" name="fruit[]" value="pear"> Pear</p>
<p><input type="checkbox" name="fruit[]" value="banana"> Banana</p>
<p><input type="checkbox" name="fruit[]" value="tangerine">
Tangerine</p>
<p><input type="submit" name="Go" value="Go"></p>
</form>
--- End Message ---
--- Begin Message ---
Both suggestions were very helpful. But, I've still got a problem. The
$MANUFACTURERS variable contains an array. I'm trying to pass this array
with either the GET or POST method. I've tried the following to no avail...
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value=<?php $manufacturer ?>>
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value=<?php echo $manufacturer ?>>
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value="<?php $manufacturer ?>">
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value='<?=$_GET['manufacturer']?>'> //as per Justin's suggestion
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value="$manufacturer">
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value=$manufacturer>
Except for the last two entries, the others all passed
"...&manufacturer%5B%5D=Array..."
Any more suggestions?
Thanx,
--
Robb Kerr
Digital IGUANA
--- End Message ---
--- Begin Message ---
Hi All,
How do you split an email address sent via form post text field.
I.e.: split [EMAIL PROTECTED] into me@ hotmail .com
It’s the domain bit I am interested in, not the username or tld.
Any help is appreciated.
Thank you in advance
Yours
Dave C
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003
--- End Message ---
--- Begin Message ---
RTFM....
http://www.php.net/explode
-Filip
On Sun, 2003-11-02 at 15:04, Dave Carrera wrote:
> Hi All,
>
> How do you split an email address sent via form post text field.
>
> I.e.: split [EMAIL PROTECTED] into me@ hotmail .com
>
> Itʼs the domain bit I am interested in, not the username or tld.
>
> Any help is appreciated.
>
> Thank you in advance
>
> Yours
> Dave C
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003
>
--
Met vriendelijke groet,
Filip de Waard
Net Collective
www.netcollective.nl
Tel. 06 - 48 01 22 40
Fax. 013 - 455 87 53
--- End Message ---
--- Begin Message ---
Hi there,
First, we have to realize that in an email there can be more than one
period, but we only want to remove the top level domain. The solution?
Remove the top level domain to begin with - You may be able to do that
using explode() and the limit argument, but this was easier, in my opinion.
<?php
$email = '[EMAIL PROTECTED]'; //for example
$email = substr($email, 0, strrpos($email, '.')); //remove the .com
$email = explode('@', $email); //turn it into an array
$email = $email[1]; //grab what's after the @
echo $email; //outputs 'hotmail'
?>
Joachim
Dave Carrera wrote:
Hi All,
How do you split an email address sent via form post text field.
I.e.: split [EMAIL PROTECTED] into me@ hotmail .com
It’s the domain bit I am interested in, not the username or tld.
Any help is appreciated.
Thank you in advance
Yours
Dave C
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003
--- End Message ---
--- Begin Message ---
Hi,
We tried to keep PHP 5 as much backwards compatible as possible.
However, due to the object model change and major improvements in the XML
extensions there might be some issues which you'll need to address.
IIRC, mysqladmin runs out of the box with PHP 5 and so do many other
applications.
In any case, porting apps over to PHP 5 will most probably not be a lot of
work.
Andi
On Sat, 1 Nov 2003, Leonel Nunez wrote:
> On Sat, 01 Nov 2003 23:42:06 +0100, Marek Kilimajer wrote:
>
> > There will certainly be security updates, but it will not be futher
> > enhanced.
> >
> > Leonel Nunez wrote:
> >> hello :
> >>
> >> When php 5 is released will there be support for php 4.3.x ?
> >>
> >> thanks
> >>
> >> leonel
> >>
>
> this is what I needed to now
>
> Security updates
>
> thanks I hope so
>
> Leonel
>
>
--- End Message ---
--- Begin Message ---
Hello,
I am a beginner of PHP.
I know a little about Perl.
In Perl, there is a chomp() function to remove newline (return) character in
a long string.
How about PHP? Can I do the same in PHP
Thankyou
_________________________________________________________________
Linguaphone : Learning English? Get Japanese lessons for FREE
http://go.msnserver.com/HK/30476.asp
--- End Message ---
--- Begin Message ---
Hi,
try it with the 'chop()'-function.
Note, that this also removes any other whitespace-characters like tabulators
and spaces.
HTH,
Simon
> -----Original Message-----
> From: Shu Hung Yeung [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 5:14 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to remove new line character?
>
>
> Hello,
>
> I am a beginner of PHP.
>
> I know a little about Perl.
> In Perl, there is a chomp() function to remove newline
> (return) character in
> a long string.
> How about PHP? Can I do the same in PHP
>
> Thankyou
--- End Message ---
--- Begin Message ---
Thanks a lot
I'd like to remove newline only.
Is there any simple way?
Koala
From: "Simon Stiefel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: [PHP] How to remove new line character?
Date: Sun, 2 Nov 2003 17:25:53 +0100
Hi,
try it with the 'chop()'-function.
Note, that this also removes any other whitespace-characters like
tabulators
and spaces.
HTH,
Simon
> -----Original Message-----
> From: Shu Hung Yeung [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 5:14 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to remove new line character?
>
>
> Hello,
>
> I am a beginner of PHP.
>
> I know a little about Perl.
> In Perl, there is a chomp() function to remove newline
> (return) character in
> a long string.
> How about PHP? Can I do the same in PHP
>
> Thankyou
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
No masks required! Use MSN Messenger to chat with friends and family.
http://go.msnserver.com/HK/25382.asp
--- End Message ---
--- Begin Message ---
Sorry, one correction:
the 'chop()'-function only removes the whitespaces an the END of the string.
But if you want to remove the newline (and only this) at the end of the
string try this:
$new_string = preg_replace("/\n$/", "", $old_string);
HTH,
Simon
> -----Original Message-----
> From: Koala Yeung [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 5:43 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] How to remove new line character?
>
>
> Thanks a lot
>
> I'd like to remove newline only.
> Is there any simple way?
>
> Koala
>
>
> >From: "Simon Stiefel" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: [PHP] How to remove new line character?
> >Date: Sun, 2 Nov 2003 17:25:53 +0100
> >
> >Hi,
> >
> >try it with the 'chop()'-function.
> >Note, that this also removes any other whitespace-characters like
> >tabulators
> >and spaces.
> >
> >HTH,
> >
> >Simon
> >
> >
> >
> > > -----Original Message-----
> > > From: Shu Hung Yeung [mailto:[EMAIL PROTECTED]
> > > Sent: Sunday, November 02, 2003 5:14 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] How to remove new line character?
> > >
> > >
> > > Hello,
> > >
> > > I am a beginner of PHP.
> > >
> > > I know a little about Perl.
> > > In Perl, there is a chomp() function to remove newline
> > > (return) character in
> > > a long string.
> > > How about PHP? Can I do the same in PHP
> > >
> > > Thankyou
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> _________________________________________________________________
> No masks required! Use MSN Messenger to chat with friends and family.
> http://go.msnserver.com/HK/25382.asp
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
On Sunday 02 November 2003 11:50 am, Simon Stiefel wrote:
> Sorry, one correction:
> the 'chop()'-function only removes the whitespaces an the END of the
> string.
>
> But if you want to remove the newline (and only this) at the end of the
> string try this:
>
> $new_string = preg_replace("/\n$/", "", $old_string);
To expand on the idea, make it capable of Windows and MAC new lines also
$new_string = preg_replace("/\n|\r\n|\r$/", "", $old_string);
--- End Message ---
--- Begin Message ---
I'm trying to pass a variable from a search page to the results page via
GET. The $MANUFACTURERS variable contains an array and is obtained from the
URL. I've tried the following to no avail...
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value=<?php $manufacturer ?>>
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value=<?php echo $manufacturer ?>>
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value="<?php $manufacturer ?>">
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value="$manufacturer">
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value=$manufacturer>
Except for the last two entries, in the URL, the others all passed
"...&manufacturer%5B%5D=Array..."
When analyzing the variable on the results page, I wind up with
$manufacturer equaling an array with one element equaling "Array"...
Array ( [0] => Array )
Any suggestions?
Thanx,
--
Robb Kerr
Digital IGUANA
Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com
http://www.cancerreallysucks.org
--- End Message ---
--- Begin Message ---
Robb Kerr wrote:
I'm trying to pass a variable from a search page to the results page via
GET. The $MANUFACTURERS variable contains an array and is obtained from the
URL. I've tried the following to no avail...
<input name="manufacturer[]" type="hidden" multiple id="manufacturer[]"
value=<?php $manufacturer ?>>
[snip]
<input name="manufacturer" type="hidden" multiple id="manufacturer"
value="<?php echo htmlentities(serialize($manufacturer)); ?>">
Then to get the array back on the receiving page:
$manufacturer = unserialize($_GET['manufacturer);
Or just stick the array in the session...
$_SESSION['manu'] = $manufacturer;
and on receiving page:
$manufacturer = $_SESSION['manu'];
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
Hi,
Silly question of beginner:
Is is possible to write a script to create and write a text file on server?
How?
P.S. Thanks Simon Stiefel for the "chomp" stuff
_________________________________________________________________
Hotmail Extra Storage讓你獲得10MB 額外儲存空間,請即申請! http://join.msn.com/?pgmarket=zh-hk
--- End Message ---
--- Begin Message ---
http://it.php.net/manual/en/function.fwrite.php
On Sun, 2003-11-02 at 19:25, Yeung Koala wrote:
> Hi,
>
> Silly question of beginner:
> Is is possible to write a script to create and write a text file on server?
> How?
>
>
> P.S. Thanks Simon Stiefel for the "chomp" stuff
>
> _________________________________________________________________
> Hotmail Extra Storageèäçå10MB éåååçéïèåçèï
> http://join.msn.com/?pgmarket=zh-hk
--- End Message ---
--- Begin Message ---
Good morning.
I know this may be off-topic but I don't know where to turn.
I'm building a dynamic web page system with PHP and need to figure out in
JavaScript how to do something. I have the timer figured out in JavaScript
but what I need is a way to automatically submit a request back to the web
server after the timer runs out. What I'm trying to do is display slides in
sequence. When the timer expires, it sends back to the web server the
parameters of slide group and the last slide displayed. The PHP on the
server end builds a new page and sends it to the browser with the next slide
in the sequence.
Any help would be greatly appreciated and my PHP skills are vastly above my
JavaScript skills (very basic beginner).
Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020
--- End Message ---
--- Begin Message ---
Would Refresh header work for you?
header('Refresh: 15; url=slides.php?page=2');
If you send this header the browser will navigate to slides.php?page=2
after 15 seconds without user intervension.
Robin Kopetzky wrote:
Good morning.
I know this may be off-topic but I don't know where to turn.
I'm building a dynamic web page system with PHP and need to figure out in
JavaScript how to do something. I have the timer figured out in JavaScript
but what I need is a way to automatically submit a request back to the web
server after the timer runs out. What I'm trying to do is display slides in
sequence. When the timer expires, it sends back to the web server the
parameters of slide group and the last slide displayed. The PHP on the
server end builds a new page and sends it to the browser with the next slide
in the sequence.
Any help would be greatly appreciated and my PHP skills are vastly above my
JavaScript skills (very basic beginner).
Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 2:03 PM
> To: Robin Kopetzky
> Cc: PHP General
> Subject: Re: [PHP] JavaScript question
>
>
> Would Refresh header work for you?
>
> header('Refresh: 15; url=slides.php?page=2');
>
> If you send this header the browser will navigate to
> slides.php?page=2
> after 15 seconds without user intervension.
>
> Robin Kopetzky wrote:
> > Good morning.
> >
> > I know this may be off-topic but I don't know where to turn.
> >
> > I'm building a dynamic web page system with PHP and need to
> figure out
> > in JavaScript how to do something. I have the timer figured out in
> > JavaScript but what I need is a way to automatically submit
> a request
> > back to the web server after the timer runs out. What I'm
> trying to do
> > is display slides in sequence. When the timer expires, it
> sends back
> > to the web server the parameters of slide group and the last slide
> > displayed. The PHP on the server end builds a new page and
> sends it to
> > the browser with the next slide in the sequence.
> >
> > Any help would be greatly appreciated and my PHP skills are vastly
> > above my JavaScript skills (very basic beginner).
> >
> > Robin 'Sparky' Kopetzky
> > Black Mesa Computers/Internet Service
> > Grants, NM 87020
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Refresh wouldn't work in this example, he needs the form to auto
submit after the timer expires. What you would need to do is add this
to your javascript at the position when the timer expires:
document.formname.submit();
Of course replace formname with the name of your form.
I believe this is correct. I didn't test it.
Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
--- End Message ---
--- Begin Message ---
Hi, I just loaded up all of the packages using the packages from Openbsd since i was
having issues with ports, and then I activated them all and that worked fine. However,
when I put the line to load the php4 module in to httpd.conf, apache won't start. It
finds the module fine, but that's it. When i run apachectl start, it says it can't be
started, when I do apachectl configtest, it says the Syntax is OK. Anyone have any
ideas? Thanks
Teren
--- End Message ---
--- Begin Message ---
I have an array variable that is set, then put into a session
variable. All is good so far, but how can I remove a specific variable
from the array?
I have tried basically copying and pasting this, and adding a foreach
loop. Inside this foreach loop, the array is split apart and I tried
using unnset, but I couldn't get it to work, so I deleted the code.
Here is how I built the array:
if ($_POST['4_Add'] != "")
{
if (($_POST['Frequent_Guest_Program'] != "") &&
($_POST['Frequent_Guest_Number'] != ""))
{
$array = array();
$new =
"{$_POST['Frequent_Guest_Program']},{$_POST['Frequent_Guest_Number']}"
;
$old = $_SESSION['Frequent_Guest'];
$array = array_merge($old, $new);
$_SESSION['Frequent_Guest'] = $array;
}
header("Location: profile4.php");
}
Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
--- End Message ---
--- Begin Message ---
I'm trying to pass an array variable from a search page to the results page
via GET. The $NAMES variable contains an array which is obtained from the
URL. Per a previous suggestion I've been trying SERIALIZE/UNSERIALIZE but
can't get the variable to pass correctly. To take a look at my test files
follow this URL...
http://www.cancerreallysucks.org/SerializeTest/Search01.htm
Attached are the HTM & PHP files. Please take a look and tell me what's
wrong. I appreciate any help. I just can't seem to get the seemingly simple
thing to work.
Thanx,
--
Robb Kerr
Digital IGUANA
Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com
http://www.cancerreallysucks.org
WebDocs.zip
Description: Attached file: WebDocs.zip
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Robb Kerr [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 2:20 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] more proplems with passing arrays
>
>
> I'm trying to pass an array variable from a search page to
> the results page via GET. The $NAMES variable contains an
> array which is obtained from the URL. Per a previous
> suggestion I've been trying SERIALIZE/UNSERIALIZE but can't
> get the variable to pass correctly. To take a look at my test
> files follow this URL...
>
>http://www.cancerreallysucks.org/SerializeTest/Search01.htm
>
>Attached are the HTM & PHP files. Please take a look and tell me
what's wrong. I appreciate any help. I just >>can't seem to get the
seemingly simple thing to work.
>
>Thanx,
>--
>Robb Kerr
>Digital IGUANA
>Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com http://www.cancerreallysucks.org
Watch names and surnames. In your select, you have surnames, and in
your input field, you have names. And since you put the surnames[]
values into a hidden input element, it's going to be retrieve via
$_POST now, not $_GET.
Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
--- End Message ---
--- Begin Message ---
> I'm trying to pass an array variable from a search page to the results page
> via GET. The $NAMES variable contains an array which is obtained from the
> URL. Per a previous suggestion I've been trying SERIALIZE/UNSERIALIZE but
> can't get the variable to pass correctly. To take a look at my test files
> follow this URL...
I have success using base64_encode before serializing an array to be passed.
Like so:
$serial_array = base64_encode(serialize($original_array));
Then in the code that gets the serialized array:
$original_array = unserialize(base64_decode($_GET["whatever"]));
HTH
--
Lowell Allen
--- End Message ---
--- Begin Message ---
On Sun, 02 Nov 2003 16:33:03 -0500, Lowell Allen wrote:
>> I'm trying to pass an array variable from a search page to the results page
>> via GET. The $NAMES variable contains an array which is obtained from the
>> URL. Per a previous suggestion I've been trying SERIALIZE/UNSERIALIZE but
>> can't get the variable to pass correctly. To take a look at my test files
>> follow this URL...
>
> I have success using base64_encode before serializing an array to be passed.
> Like so:
>
> $serial_array = base64_encode(serialize($original_array));
>
> Then in the code that gets the serialized array:
>
> $original_array = unserialize(base64_decode($_GET["whatever"]));
>
> HTH
Lowell,
Thank you VERY MUCH for your response. I've been messing with this problem
all day and your response was the first one that actually worked.
Thanx again,
--
Robb Kerr
Digital IGUANA
--- End Message ---
--- Begin Message ---
Hi, I just loaded up all of the packages using the packages from Openbsd
since i was having issues with ports, and then I activated them all and
that worked fine. However, when I put the line to load the php4 module
in to httpd.conf, apache won't start. It finds the module fine, but
that's it. When i run apachectl start, it says it can't be started, when
I do apachectl configtest, it says the Syntax is OK. Anyone have any
ideas? Thanks
Teren
--- End Message ---
--- Begin Message ---
Hi,
can you give us some lines from your error_log-file?
Usually found in /var/log/apache[2]/.
Thanks,
Simon
> -----Original Message-----
> From: Teren [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 8:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP and Apace setup
>
>
> Hi, I just loaded up all of the packages using the packages
> from Openbsd
> since i was having issues with ports, and then I activated
> them all and
> that worked fine. However, when I put the line to load the
> php4 module
> in to httpd.conf, apache won't start. It finds the module fine, but
> that's it. When i run apachectl start, it says it can't be
> started, when
> I do apachectl configtest, it says the Syntax is OK. Anyone have any
> ideas? Thanks
>
> Teren
>
--- End Message ---
--- Begin Message ---
How can you forget the Hurd???
http://www.gnu.org/software/hurd/hurd.html#name:
"According to Thomas Bushnell, BSG, the primary architect of the Hurd:
`Hurd' stands for `Hird of Unix-Replacing Daemons'. And, then, `Hird' stands
for `Hurd of Interfaces Representing Depth'. We have here, to my knowledge,
the first software to be named by a pair of mutually recursive acronyms."
On Saturday 01 November 2003 11:23 am, [EMAIL PROTECTED] wrote:
> Why PHP is a recursive acronym?, I know that before was called Personal
> Home Page, I now is Hypertext PreProcessor, but why is recursive?, I person
> told me that it could be wroten as Pre Hypertxt Processor, thanks.
--
Evan Nemerson
[EMAIL PROTECTED]
--
"Businesses may come and go, but religion will last forever, for in no other
endeavor does the consumer blame himself for product failure."
-Harvard Lamphoon
--- End Message ---
--- Begin Message ---
Perhaps it is time to break the record.
Evan Nemerson wrote:
How can you forget the Hurd???
http://www.gnu.org/software/hurd/hurd.html#name:
"According to Thomas Bushnell, BSG, the primary architect of the Hurd:
`Hurd' stands for `Hird of Unix-Replacing Daemons'. And, then, `Hird' stands
for `Hurd of Interfaces Representing Depth'. We have here, to my knowledge,
the first software to be named by a pair of mutually recursive acronyms."
On Saturday 01 November 2003 11:23 am, [EMAIL PROTECTED] wrote:
Why PHP is a recursive acronym?, I know that before was called Personal
Home Page, I now is Hypertext PreProcessor, but why is recursive?, I person
told me that it could be wroten as Pre Hypertxt Processor, thanks.
--- End Message ---
--- Begin Message ---
I have a frustrating problem. I have a shopping cart class that creates
session variable arrays to store the product_id and quantity. My development
machine is running windows 2000 with PHP 4.3.3 and my script is working
perfectly on my machine. When I upload to the remote host running FreeBSD
and PHP 4.3.2 I am getting errors. I believe I am having problems with
assigning the array values, and this is causing other problems. I am using
this statment to assign $_SESSION['cart']['product_id'] with the quantity
using a class with the add_item property.
$cart->add_item($_GET['product_id'], $_GET['quantity']);
I am getting this error.
Warning: Cannot use a scalar value as an array in
/home/designor/public_html/class.php on line 14
Warning: Cannot use a scalar value as an array in
/home/designor/public_html/class.php on line 16
I have no idea what a scalar value even is. I did verify that my form was
passing the values by using
echo $_GET['product_id'] . $_GET['quantity'];
Your help is much appreciated, as I am still a beginner.
Steve Turner
--- End Message ---
--- Begin Message ---
hi !
i'm working in a calendar software, web based with php and a windows client.
i can write appointments to my mysql database with the windows client
independent
from daylight savings. it always shows the appointments at the right time.
if i
create appointments with my php web frontend e.g.
1st @ 01.05.2003 8:00 am
2nd @ 01.11.2003 8:00 am
it shows the appointments correct. when i access them with my windows
client,
only the 2nd appointment is at 8 am the 1st is shown at 09:00 am. when i set
my windows date to may then the 1st appt is correct at 8 am but the 2nd not
!!!
does anybody know how php handles daylight saving issues ? again: the
windows
client does work under all conditions, except it accesses php created
appointments.
thanks
philip
--- End Message ---