php-general Digest 29 Jun 2001 15:14:33 -0000 Issue 726
Topics (messages 55538 through 55544):
PHP Not Working
55538 by: Black S.
Re: Convert
55539 by: Chris Hayes
closing window after submit
55540 by: Richard Kurth
(slightly OT) the bad and the good (hosting recommentations)
55541 by: Justin French
referencing arrays in arrays
55542 by: Anette L�fquist
55543 by: Anette L�fquist
Re: Problem with Excel
55544 by: Jean-Arthur Silve
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]
----------------------------------------------------------------------
Very strange situation, PHP Version 4.0.3 on one of my production web
servers has started to loose different functionality?? The OS is
Apache/1.3.12 (Unix) (Red Hat/Linux 6.2) PHP/4.0.3 mod_perl/1.21, PHP was
compiled as a module with apxs. The strange thing is, some virtual host
directories have some of the things other Virtual host directories don't
have or quite working. It started with the include() function not working
and has now moved to the mail() function not working. Has anyone
excperienced similiar problems or know of a fix??
Thanks,
Blake
implode
see manual/function.implode.html
Chris
Date sent: Thu, 28 Jun 2001 17:34:41 +0530
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Convert
> Hi
>
> How do I convert arrays to string ??.
>
> ~ Karthick
>
> --
> 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]
>
--------------------------------------------------------------------
-- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
--------------------------------------------------------------------
I have a form that is in a pop up window it has an image for a submit
button how can I close the pop up after submitting. I know I can do it
with javascript with a standard submit button. but how can I do it when
I use an image for a submit button
<form method="post" action="<?echo $PHP_SELF;?>">
<input type="TEXT" name="email" size="30" maxlength="50">
<input type="image" src="fm_sub.gif" width="71" height="11" border="0">
Best regards,
Richard
mailto:[EMAIL PROTECTED]
hi all,
i'm about to change ISPs, and i'll probably be moving to a US based
server, on Unix, with Apache, PHP4, CGI, Perl 5, MySQL, etc etc.
so far the best I can find (price/service level/features) is
experthost.com.au. Has anyone got a bad experience with these guys, or
a good experience with annother ISP that they can recommend?
for what it's worth they offer a reseller package with 2-4 domains for
US$10/month each, all the way down to 25+ for US$4.99 each / month.
this is with 50 meg space, MySQL DB, 20 POPs, and much more.
i don't require dial up access, just hosting.
i'd be interested to hear of competitors to this ISP, or of any good /
bad experiences. I'm ony interested in Australian, US, Canada or UK ISPs.
many thanks
jsutin french
I have an array, $field, like following:
Array ( [0] =>
Array ( [0] => Array ( [disp] => computer
[index] => computer )
[1] => Array ( [disp] => or
[index] => @or )
[2] => Array ( [disp] => title
[index] => @at 1=4 term
[name] => ti )
)
[1] =>
Array ( [0] => Array ( [disp] => human
[index] => human)
[1] => Array ( [disp] => or
[index] => @or )
[2] =>Array ( [disp] => subject
[index] => @at 1=5 term
[name] => s )
)
[2] =>
Array ( [0] => Array ( [disp] =>
[index] => John)
[1] => Array ( [disp] => or
[index] => @or )
[2] => Array ( [disp] => tsd
[index] => @at 1=5 term @at
7=44 term
[name] => tsd)
)
[3] =>
Array ( [0] => Array ( [disp] =>
[index] => Eric)
[1] => and
[2] => Array ( [disp] => subject
[index] => @at 9=5 term
[name] => s )
)
[4] =>
Array ( [0] => Array ( [disp] =>
[index] => Main)
[1] => and
[2] => Array ( [disp] => subject
[index] => @at 9=5 term
[name] => s )
)
[5] =>
Array ( [0] => Array ( [disp] =>
[index] => Dog)
[1] => and
[2] => Array ( [disp] =>
[index] =>
[name] => )
)
)
In each string, $field[$j][2]["index"] in the array, will I replace 'term'
with the
word in "{$field[$j][0]["index"]}".
Why doesn't it work like this?:
---------------------------
1. for($j=0; $j<6; $j++){
2. $temp
=str_replace("term","{$field[$j][0]["index"]}","{$field[$j][2]["index"]}");
3. echo "<br>temp: $temp";
4. $field[$j][2]["index"]=$temp;
5. echo "<br>utskrift: ${$field[$j][2][index]}";
6. }
7. echo "<br>field: <br>";
8. print_r($field);
-------------------------
Line 3 and 6 gives the same, and correct outprint, but in line 8 nothing is
changes from how it looked before the loop. "term" is still term and not
replaced.
What am I doing wrong!?
Thanks!
anette
------------------------------------------------------------
Bra att veta:
Hardware is the part of a computer that can be kicked,
if all you can do is swear at it, then it must be software.
------------------------------------------------------------
Anette L�fquist e99al
icq#: 69648675
I have an array, $field, like following:
Array ( [0] =>
Array ( [0] => Array ( [disp] => computer
[index] => computer )
[1] => Array ( [disp] => or
[index] => @or )
[2] => Array ( [disp] => title
[index] => @at 1=4 term
[name] => ti )
)
[1] =>
Array ( [0] => Array ( [disp] => human
[index] => human)
[1] => Array ( [disp] => or
[index] => @or )
[2] =>Array ( [disp] => subject
[index] => @at 1=5 term
[name] => s )
)
[2] =>
Array ( [0] => Array ( [disp] =>
[index] => John)
[1] => Array ( [disp] => or
[index] => @or )
[2] => Array ( [disp] => tsd
[index] => @at 1=5 term @at
7=44 term
[name] => tsd)
)
[3] =>
Array ( [0] => Array ( [disp] =>
[index] => Eric)
[1] => and
[2] => Array ( [disp] => subject
[index] => @at 9=5 term
[name] => s )
)
[4] =>
Array ( [0] => Array ( [disp] =>
[index] => Main)
[1] => and
[2] => Array ( [disp] => subject
[index] => @at 9=5 term
[name] => s )
)
[5] =>
Array ( [0] => Array ( [disp] =>
[index] => Dog)
[1] => and
[2] => Array ( [disp] =>
[index] =>
[name] => )
)
)
In each string, $field[$j][2]["index"] in the array, will I replace 'term'
with the
word in "{$field[$j][0]["index"]}".
Why doesn't it work like this?:
---------------------------
1. for($j=0; $j<6; $j++){
2. $temp
=str_replace("term","{$field[$j][0]["index"]}","{$field[$j][2]["index"]}");
3. echo "<br>temp: $temp";
4. $field[$j][2]["index"]=$temp;
5. echo "<br>utskrift: ${$field[$j][2][index]}";
6. }
7. echo "<br>field: <br>";
8. print_r($field);
-------------------------
Line 3 and 6 gives the same, and correct outprint, but in line 8 nothing is
changes from how it looked before the loop. "term" is still term and not
replaced.
What am I doing wrong!?
Thanks!
anette
------------------------------------------------------------
Bra att veta:
Hardware is the part of a computer that can be kicked,
if all you can do is swear at it, then it must be software.
------------------------------------------------------------
Anette L�fquist e99al
icq#: 69648675
Hi !
I think the simplest thing to do is to convert your excel file to a CSV
file (it an ASCII format ).
jean-arthur
At 17:16 28/06/01 +0530, Sharat Hegde wrote:
>Hello,
>
>I have a web site on a Unix environment running PHP 3.0 and MySQL.
>
>I need to convert data in an Excel format to a MySQL database format
>periodically based on the input feed received in Excel format. the
>conversion to MySQL is not a problem at all.
>
>What I need help is to read data from an Excel 2000 format. How do I
>retrieve data from Excel 2000? The data is basically a 2 columnar data with
>currency names and conversion values.
>
>Thanks in advance.
>
>Regards,
>Sharat
>
>--
>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]
----------------------------------------------------------------
EuroVox
4, place F�lix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr
----------------------------------------------------------------