php-windows Digest 4 May 2004 09:34:19 -0000 Issue 2236

Topics (messages 23610 through 23617):

Re: Passing a Multidimensional Array through a hidden form element
        23610 by: Ignatius Reilly
        23612 by: Gryffyn, Trevor

Re: differences between (IIS PHP GD) & (Apache PHP GD)
        23611 by: Gryffyn, Trevor
        23613 by: De Greef S�bastien

Serialization
        23614 by: Ron.Herhuth.tatumpartners.com

MCrypt Windows Problems
        23615 by: PHPDiscuss - PHP Newsgroups and mailing lists
        23616 by: DvDmanDT

Session and Cookie error on Windows+Apache
        23617 by: nemo.i2.co.id

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 ---
You can pass them in the following form:
<input type='hidden' name='gromit[1][2]' value='wallace' />

then your REQUEST var will be a 2-dimensional array

there is a splendid PEAR HTML_Javascript class that converts PHP variables
into JS variables.

HTH
Ignatius
_________________________
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 03, 2004 3:01 PM
Subject: [PHP-WIN] Passing a Multidimensional Array through a hidden form
element



I have a multidimensional array that is created on one page and I need to
send it to another page, preferrably using a hidden field in a $_POST
form.

This is what the array structure looks like:
$mArray[0][5][1]="sampleElement";

I tried implode/explode but this just creates a long nasty string of error
messages "Array to string Conversion on line x"

I don't really want to setup a session to do this but if that is the only
way I could do that.

Any suggestions?

Thanks,
Ron

--- End Message ---
--- Begin Message ---
Have you tried using the serialize() function in PHP?  That should keep
your array in order while it's being passed, then just unserialize it on
the other end.

-TG


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 03, 2004 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Passing a Multidimensional Array through a 
> hidden form element
> 
> 
> 
> I have a multidimensional array that is created on one page 
> and I need to
> send it to another page, preferrably using a hidden field in a $_POST
> form.
> 
> This is what the array structure looks like:
> $mArray[0][5][1]="sampleElement";
> 
> I tried implode/explode but this just creates a long nasty 
> string of error
> messages "Array to string Conversion on line x"
> 
> I don't really want to setup a session to do this but if that 
> is the only
> way I could do that.
> 
> Any suggestions?
> 
> Thanks,
> Ron
> 
> 
> 
> 
> 
> 

--- End Message ---
--- Begin Message ---
I'm not sure on the pixels/points thing on the two systems, you could always check a 
server variable and see what system you're on and do the compensation internally so it 
comes out properly on both systems without having to have two different scripts.

But I'm curious..  I know that if you create a word processing document and you use a 
font that isn't available on another system, if you open up that document on the other 
system it'll try to find the closest/most similar font and use that.  Sometimes that's 
just the next one in the font list alphabetically, sometimes it means going to some 
default font that's used when the requested font isn't available.


So it could just be a matter of installing the proper font on the Windows system and 
it'll work ok.  That's something to look into.

-TG

> -----Original Message-----
> From: De Greef S�bastien [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 03, 2004 5:12 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] differences between (IIS PHP GD) & (Apache PHP GD)
> 
> 
> Hi,
> i just made a little site with a nice counter, i use gd to 
> draw the number
> in a chosen TTF no problem for that, but when i run the same 
> source on IIS
> the string is much bigger and doesn't fit in the image 
> anymore. i can adapt
> it again but it will be much smaller in apache then. Somebody knows
> something about this strange thing. i didn't searched much 
> but i think under
> iis gd take size as points and under apache as pixels..
> Regards
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
well, in fact it is the same system both running windows and its the same
source directory, he finds the found ok no problem for that but sizing isn't
right. I made a loop that checks if the image is too big and resize it till
it's small enough but this doesn't really solves the problem i don't have
any size control anymore he makes the string as big as the picture...
Regards

"Trevor Gryffyn" <[EMAIL PROTECTED]> a �crit dans le message news:
[EMAIL PROTECTED]
I'm not sure on the pixels/points thing on the two systems, you could always
check a server variable and see what system you're on and do the
compensation internally so it comes out properly on both systems without
having to have two different scripts.

But I'm curious..  I know that if you create a word processing document and
you use a font that isn't available on another system, if you open up that
document on the other system it'll try to find the closest/most similar font
and use that.  Sometimes that's just the next one in the font list
alphabetically, sometimes it means going to some default font that's used
when the requested font isn't available.


So it could just be a matter of installing the proper font on the Windows
system and it'll work ok.  That's something to look into.

-TG

> -----Original Message-----
> From: De Greef S�bastien [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 03, 2004 5:12 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] differences between (IIS PHP GD) & (Apache PHP GD)
>
>
> Hi,
> i just made a little site with a nice counter, i use gd to
> draw the number
> in a chosen TTF no problem for that, but when i run the same
> source on IIS
> the string is much bigger and doesn't fit in the image
> anymore. i can adapt
> it again but it will be much smaller in apache then. Somebody knows
> something about this strange thing. i didn't searched much
> but i think under
> iis gd take size as points and under apache as pixels..
> Regards
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Okay, I am trying to use serialization to pass my multidimensional array
from one page to the other.  I wrote a simple test page that passes the
serialized data to the page and then attempts to print it out.  But for
some reason I keep getting an error that reads : "Notice: unserialize()
failed at offset 20 of 2217 bytes in D:\public\internal\serializeTest.php
on line 22" (line 22 is the unserialize call).

This script seems as harmless as can be...what could be causing the error?

***

<?

if(isset($_POST['serialArray']))
{

$keyArray = array_keys($_POST);

for ($i=0;$i<count($keyArray);$i++)
{

        if($keyArray[$i]=="serialArray")
        {
                echo unserialize($_POST['serialArray']);
        }

}






}else
{

echo "<form action='thisPage.php' method='post'>";

for($i=0;$i<10;$i++)
{
        for($j=0;$j<10;$j++)
        {
                $aTest[$i][$j] = "Test $i $j";
        }

}

$sTest = serialize($aTest);
echo "<input type='hidden' name='serialArray' value='$sTest'>";

echo '<input type="submit" name="Submit" value="Submit">';
echo $sTest;

echo "</form>";

}

?>

***








--- End Message ---
--- Begin Message ---
Hi,

Running Windows XP, using PHP Triad 2.2(Apache(1.3.23), MySQL(3.23.48) and
PHP(4.1.1)).

Been trying to install the MCrypt library and get it to work. I have tried
the php manual and several other sources of help but cannot get it to
work. 

I have downloaded the libmcrypt.dll and php_mcrypt.dll and also
uncommented the extension in the php.ini file. I have placed the
php_mcrypt.dll in the correct place, but am unsure where the libmcrypt.dll
is to be placed.

Also, once you do get it running, is there any way to test you have got
MCrypt installed correctly?

Many thanks,
Jack Carter.

--- End Message ---
--- Begin Message ---
What I did (working) was to just place libmcrypt.dll in the system32
folder.. To test, use the examples at php.net/mcrypt

-- 
// DvDmanDT
MSN: dvdmandt?hotmail.com
Mail: dvdmandt?telia.com
"Phpdiscuss - Php Newsgroups And Mailing Lists" <[EMAIL PROTECTED]>
skrev i meddelandet news:[EMAIL PROTECTED]
> Hi,
>
> Running Windows XP, using PHP Triad 2.2(Apache(1.3.23), MySQL(3.23.48) and
> PHP(4.1.1)).
>
> Been trying to install the MCrypt library and get it to work. I have tried
> the php manual and several other sources of help but cannot get it to
> work.
>
> I have downloaded the libmcrypt.dll and php_mcrypt.dll and also
> uncommented the extension in the php.ini file. I have placed the
> php_mcrypt.dll in the correct place, but am unsure where the libmcrypt.dll
> is to be placed.
>
> Also, once you do get it running, is there any way to test you have got
> MCrypt installed correctly?
>
> Many thanks,
> Jack Carter.

--- End Message ---
--- Begin Message ---
Hi, i am newby, 

My PHP Session and Cookie working fine with Windows and IIS 
webserver, but dont work at all on windows and apache web server 

php.ini and httd.conf are default setting, and folows the 
instalations instructions. 

can anyone help?



______________________________________________________________
Email gratis 4 MB dengan fasilitas POP3 dan SMTP. 
Kunjungi Indonesia Interactive http://www.i2.co.id. 

--- End Message ---

Reply via email to