Tim Burgan wrote:
Hello,
I've developed my site, and tested on a web host (Apache, PHP 4.3.9).
Now I've uploaded to a different host (IIS, PHP 4.3.1) where I want to
keep it, and I get session error messages like:
Warning: session_start() [function.session-start
Terje Slettebø wrote:
I don't find this answer satisfactory. Yes, PHP has loose/weak typing,
but
at any one time, a value or a variable has a distinct type. In the
example
in the quote above, you'd have to ensure that the value you pass is of
the
right type.
Well, like it or not, that
From: Matthew Weier O'Phinney [EMAIL PROTECTED]
* Terje Slettebø [EMAIL PROTECTED]:
(I've posted this to the PHP newsgroups, as well, but as many here might
not
read them, I post here, as well. I hope that's not considered
overboard,
and if so, please let me know)
The newsgroups are
John Taylor-Johnston wrote:
With my counter, I track RemoteHost and IPAddress and save it in a mysql table.
One of my colleagues asked me these questions (below).
I can track number of hits per month. Is there any OS code anywhere that I
might implement to see geographical tendencies?
John
Is
I have the following multi-dimentional array and I want to sort it by
the score key value
print_r($data);
Array
(
[0] = Array
(
[video_id] = 71
[old_id] = 7854
[title] = When the fire comes
[video_copies] = 1
[running_time] = 48
From: Matthew Weier O'Phinney [EMAIL PROTECTED]
* Terje Slettebø [EMAIL PROTECTED]:
In PHP5, you can provide type hints for functions, like this:
class Person {...}
function f(Person $p)
{
...
}
Since this is optional static typing for objects, why not make the same
Terje Slettebø wrote:
From: Matthew Weier O'Phinney [EMAIL PROTECTED]
Ah, I didn't know about that one. I didn't find it here:
http://www.php.net/mailing-lists.php How can I subscribe to it?
its alternatively call 'php internals', I have read a lot of your
questions/arguments regarding
Terje Slettebø wrote:
...
I certainly know that a number of bugs I've encountered could have been
found with type hints for built-in types, so I think it would be useful. The
question, of course, is whether most PHP developers don't think so. Also, we
don't have any experience with it in PHP.
I recently saw a super mode that does just what you want.
Try this link http://www.emacswiki.org/cgi-bin/wiki/HtmlModeDeluxe
dayton
Song == Song Ken Vern-E11804 [EMAIL PROTECTED] writes:
Song Hi, I would like the behaviour of turning on the cc-mode
Song indentation in the ?php ? tags
Jeffery Fernandez wrote:
I have the following multi-dimentional array and I want to sort it by
the score key value
...
any ideas. Thanks
A long time ago I had this problem, came up with the following class (based
on
someone else's stuff that I found in the comments section of the php manual) to
Use usort (stealing from php docs):
function cmp($a['score'], $b['score'])
{
if ($a['score'] == $b['score']) {
return 0;
}
return ($a['score'] $b['score']) ? -1 : 1;
}
$data = array(...);
usort($data, cmp);
On Jan 23, 2005, at 8:39 AM, Jeffery Fernandez wrote:
I have the
-Original Message-
From: Tony Di Croce [mailto:[EMAIL PROTECTED]
Sent: 22 January 2005 23:21
To: php-general@lists.php.net
Subject: [PHP] Is this even possible?
Is it even possible to connect to a postgres server (thats running on
linux) from a windows CLI php script?
I'm seeing a
Good morning. In Windows XP, MYSQL, PHP and using the following code
snippet:
?
$conn = mysql_connect('localhost', 'odbc', '') or die (Can't Connect To
Database);
$db = mysql_select_db(wwpbt, $conn) or die (Can't Select Database);
$echo (Congratulations - you connected to MySQL);
?
I initially
Hello All,
I've been trying for days now to make this work.
I'm trying to search my array for a value and return the key.
I get the visitor's IP and try this -- this is the latest,
I've tried a few functions to echo the name associated with the viz_ip.
$viz_ip= $_SERVER['REMOTE_ADDR'];
Malcolm wrote:
Hello All,
I've been trying for days now to make this work.
I'm trying to search my array for a value and return the key.
I get the visitor's IP and try this -- this is the latest,
I've tried a few functions to echo the name associated with the viz_ip.
$viz_ip=
I've been trying for days now to make this work.
This worked for me (with my IP address for 'John'):
?php
$viz_ip= $_SERVER['REMOTE_ADDR'];
echo (Your IP is $viz_ip);
$byte_ip= array(
204.126.202.56=Mark,
63.230.76.166=Bob,
84.196.101.86=John,
);
function _array_search
Thank you Sirs,
I was echoing the viz-ip so I know it was getting set but
I couldn't get it.
both work .. I got the clue from John, the last echo line did the
trick.
On Sun, 23 Jan 2005 17:26:58 +0100, Jochem Maas [EMAIL PROTECTED]
wrote:
Malcolm wrote:
Hello All,
I've been trying
probably missing something but php have a function called array_search.
Ben
On Sun, 23 Jan 2005 11:33:16 -0500 (EST), [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I've been trying for days now to make this work.
This worked for me (with my IP address for 'John'):
?php
$viz_ip=
Malcolm wrote:
Hello All,
I've been trying for days now to make this work.
I'm trying to search my array for a value and return the key.
I get the visitor's IP and try this -- this is the latest,
I've tried a few functions to echo the name associated with the viz_ip.
$viz_ip=
Ah so -- array_search only works on values ?
That probably accounts for my first day or so, thanks.
I've got it now.
On Sun, 23 Jan 2005 19:22:32 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote:
Malcolm wrote:
Hello All,
I've been trying for days now to make this work.
I'm trying to search my
I had a php routine on a shared server running as a CGI script that
encrypted and sent email text.
It was running fine under PHP version 4.3.6. Then the ISP upgraded to
4.3.10 on December 16, 2004 and several of the features in the gpg
encryption script running in cgi-bin stopped working.
Dear Jason,
Thanks!
Such a stupid misstake (however in the earlier version of php I did not
received any notice). But I am not a programmer ;-)
Regards,
Tamas
On Saturday 22 January 2005 08:28, Tamas Hegedus wrote:
define( HOST, 'localhost');
define('HOST', 'localhost');
--
Jason Wong
Hi,
I'm trying to output a text file from a pdf file using an external function,
pdftotext, using either PHP's 'passthru' or 'exec' functions.
The following code sort of works (at least I see localhost busy doing
something for about three seconds, but the expected output of 'content.txt'
is
Have you tried using the backtick (``) operator? I don't know if it makes
any difference, but it might be worth a try...
HTH,
Mikey
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]
Sent: 23 January 2005 21:08
To: php-general@lists.php.net
Subject: [PHP] Attempting to use
From: Jochem Maas [EMAIL PROTECTED]
Terje Slettebø wrote:
From: Matthew Weier O'Phinney [EMAIL PROTECTED]
Ah, I didn't know about that one. I didn't find it here:
http://www.php.net/mailing-lists.php How can I subscribe to it?
its alternatively call 'php internals'
Ah. I thought that
Kurt Yoder wrote:
Use usort (stealing from php docs):
function cmp($a['score'], $b['score'])
{
if ($a['score'] == $b['score']) {
return 0;
}
return ($a['score'] $b['score']) ? -1 : 1;
}
$data = array(...);
usort($data, cmp);
This won't work for me as I have 500+ records to sort
hi, i have a script that parses data from xml document
my problem is sometimes i get error when getting file content from xml
file fails
so how can u make the script ignore that part when it fails to pull
the data from the xml file.
here is the script :
$xp = xml_parser_create();
Burhan Khalid wrote:
Tim Burgan wrote:
Hello,
I've developed my site, and tested on a web host (Apache, PHP 4.3.9).
Now I've uploaded to a different host (IIS, PHP 4.3.1) where I want to
keep it, and I get session error messages like:
Warning: session_start() [function.session-start
I've installed Apache 2 and PHP 5 on Windows XP, and I'm having some
issues with sessions. Everything else I've tried to do in PHP works
fine, but for some reason every time I try to use session_start() i
get the following errors:
Warning: session_start() [function.session-start]:
We are evaulating the idea of writing a PHP application server. Its aimed
to be a stateful environment for writing PHP applications and we believe
it will be quite advantegous to the entire community.
Any ideas if there are a similar solutions that already exists out there,
and what is the
Thankyou. That solved the issue.
I didn't know that function existed.
Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 24 January 2005 05:08, Andre Dubuc wrote:
I'm trying to output a text file from a pdf file using an external
function, pdftotext, using either PHP's 'passthru' or 'exec' functions.
The following code sort of works (at least I see localhost busy doing
something for about three
Good morning. In Windows XP, MYSQL, PHP and using the following code
snippet:
?
$conn = mysql_connect('localhost', 'odbc', '') or die (Can't Connect To
Database);
$db = mysql_select_db(wwpbt, $conn) or die (Can't Select Database);
Change the above line to the following for a more useful
Jeffery Fernandez wrote:
Kurt Yoder wrote:
Use usort (stealing from php docs):
function cmp($a['score'], $b['score'])
{
if ($a['score'] == $b['score']) {
return 0;
}
return ($a['score'] $b['score']) ? -1 : 1;
}
$data = array(...);
usort($data, cmp);
This won't work for me as I
Jochem Maas wrote:
Jeffery Fernandez wrote:
Kurt Yoder wrote:
Use usort (stealing from php docs):
function cmp($a['score'], $b['score'])
{
if ($a['score'] == $b['score']) {
return 0;
}
return ($a['score'] $b['score']) ? -1 : 1;
}
$data = array(...);
usort($data, cmp);
This won't
I've taken over the system administration of our servers, and have been
migrating from PHP4 on Redhat, to PHP5 on a FreeBSD system setup.
Few questions,
Is this version of the ZPS compatible with PHP5, I mean, the software was
bought back in dec. 2003 and never updated since. (the new Zend
M. Sokolewicz [EMAIL PROTECTED] writes:
Raj Shekhar wrote:
M. Sokolewicz [EMAIL PROTECTED] writes:
Raj Shekhar wrote:
$n_elts = count($myarray);
for ($i=0; $i $n_elts ; $i++)
{
if ($i = $n_elts -1)
^^^
Use of == required to make it work
{
37 matches
Mail list logo