check out the serialize() and unserialize() functions in the manual.
replace this:
print(" sort ");
with this
sort
Excerpt from the manual:
http://www.php.net/manual/en/function.serialize.php
If you are passing serialized data between pages in hidden form
fields (or in a query string), you n
You are completely right. Do intensive error checking. In thousands and
thousands of lines of code, I think i only used @ in 3 places - in the
functions that connect to the database - I have more robust error checking
in place.
-Jason Garber
deltacron.com
At 09:26 AM 9/27/2001 +0200, * R&z
And I get no warning about $Test not being declared before (like C
declaration).
Any1 has an example about forcing variable declaration?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
On Thu, 27 Sep 2001, it was written:
> $Test=3;
> echo $Test;
> ?>
>
> And I get no warning about $Test not being declared before (like C
> declaration).
>
> Any1 has an example about forcing variable declaration?
What do you mean force declaration? That's what you are doing with this
line:
Oh, by the way, I modified your script a bit and made it load an indexed
PNG file instead. This is the modified script:
http://www.php.net/~rasmus/reductor.phps
And here is the result: http://www.php.net/~rasmus/reductor.php
Not sure why you used a $ sign for the character. It sort of throws
The imagecolorat() function doesn't work for truecolor images. You will
need a an indexed image for this to work. And worse, imagecolorat()
actually segfaults when run on a non-indexed image as far as I can tell.
Will commit a fix for that shortly.
-Rasmus
On Thu, 27 Sep 2001, ReDucTor wrote:
Pretty much impossible to answer. If you know what you are doing, you can
use just about anything to build a solution that will work on a heavily
loaded site. JSP is typically not faster than PHP or even ASP though.
But chances are your scripting language won't be your limiting factor
anyway.
> What do you mean force declaration? That's what you are doing with this
> line:
>
> $Test = 3;
Nop! This is just starting to use a variable. Something like:
integer $Test;
is declaring a variable. But FAFAIK it's not possible in PHP :(
--
* R&zE:
--
-- Ren
> > What do you mean force declaration? That's what you are doing with this
> > line:
> >
> > $Test = 3;
>
> Nop! This is just starting to use a variable. Something like:
>
>integer $Test;
>
> is declaring a variable. But FAFAIK it's not possible in PHP :(
Like I said, that line does both.
Thanks Ramus..
It appears to work nice...
I find the $ looks nicer, then an #
- James "ReDucTor" Mitchell
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "ReDucTor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 5:29 PM
Subject: Re
> Like I said, that line does both. It sets the type internally to an
> integer and assigns the value.
>
> -Rasmus
What he (Alberto) is looking for, and what I would prefer to, is to
really explicitly declare a variable. There's a difference between a
compiler that requires you to declare (inte
That is the nature of a loosely typed scripting language. If you prefer a
strongly typed compiled language, there are plenty of those available.
-Rasmus
On Thu, 27 Sep 2001, * R&zE: wrote:
> > Like I said, that line does both. It sets the type internally to an
> > integer and assigns the valu
> That is the nature of a loosely typed scripting language.
I know.
> If you prefer a strongly typed compiled language, there are plenty
> of those available.
I know to. But those are not as powerful for building websites as
PHP. I mean... don't get me wrong here, I think PHP is great (or
even
./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --prefix=/us
r/local/php --enable-ftp --with-gd --with-pgsql
Works OK
then Make and I get:
/bin/sh /home/soft/src/php-4.0.5/libtool --silent --mode=compile
gcc -I. -I/home/soft/src/php-4.0.5/ -I/home/soft/src/php-4.0.5/main -I/home
Hello!
How can I make the session-id ONLY be stored in the url, even if the
user has cookies enabled? I have no access to the php.ini-file.
Any ideas?
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
Hello. I have a weird problem. I have apage where a user can see the
different files & directories between 2 servers using RSYNC.
However files deleted on the source server are not listed in the output of
exec() (I am using the --delete parameter with the RSYNC command). All of
the rest of the ou
On Thursday 27 September 2001 09:09, * R&zE: wrote:
> > How do I turn off the error messages that appear at the top of the
> > page? I have this function below that if an image is not there for
> > $url, it give a "warning".
> >
> > $size = GetImageSize("$url");
> >
> > Example error message bel
On Thu, 2001-09-27 at 10:56, Alberto wrote:
> /usr/bin/ld: cannot find -lpq
this is the PostgreSQL client library. It is needed when you configure
with "--with-pgsql". If you don't need PostgreSQL Support remove it,
otherwise you have to install a package named sth like postgres-client
and postgre
> Right in principle. But there are cases (common ones), like the one shown
> above, where errors are unavoidable and normal. For these cases the @
> operator is the right thing. Generally you're right though - error
> reporting should be set to E_ALL and reasons of avoidable errors/warnings
>
On Thursday 27 September 2001 12:00, * R&zE: wrote:
> > Right in principle. But there are cases (common ones), like the one
> > shown above, where errors are unavoidable and normal. For these cases
> > the @ operator is the right thing. Generally you're right though -
> > error reporting should be
Wondered if you could contact me as I lost your address when formatting my
PC and I have found your help with PHP invaluable.
Ian.
--
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
Both will do good jobs, but is the site is very loaded PHP might take
less resources than jsp and asp from the server. Yet has to be well
configured. It all depends on how you use it.
PHP is a great solution for most heavy sites. I never had any problems
with it on a 4+ million pv/month site. Mos
> According to my docs (08 Sep 2001) it can.
> And http://php.net/getimagesize says the same..
Okay! I never use the function. Yesterday that was a "conversation"
on this list in which they/he/she said it couldn't. But indeed if it
can there would be a reason to use @.
...
I've now made some te
Hello there,
Anyone has done this before? Would like to see some sample code to build a
converter from HTML table to a MySql table. Someone put an enourmous amount
of data in HTML tables and now we would like to put it in MySQL database. We
would not like to do this manually.
Thank you!
--
P
Warning: Unable to connect to PostgreSQL server: No pg_hba.conf entry for
host myhost, user myuser, database mydb in /path/to/principal.php on line 27
that's
$bdConexion = pg_connect ("host=".$bdHost." port=".$bdPuerto."
dbname=".$bdBD." user=".$bdLogin." password=".$bdPassword);
PHP is alrea
Uff.. Don't envy you...
Anyway, if someone (hopefully) was cuting&pasting the cells in you could
do a combination of fopen/explode/regex to split the data into
coma-separated values. For example, stripping out every HTML tag
replacing it with a coma and a space will create you a dump file.
Also
Please i want to know how to pass variables (such as $PHP_AUTH_USER and
$PHP_AUTH_PW) from php to Perl script which is in apache cgi-bin
directory.
Thanks in advance for help
--
Moise Bertrand TACHAGO
Computer scientist
Volunteer DBMS Specialist
SDNP Cameroon, 506 Hajal Center Building
Yaounde C
I have a 2D array wherein each row is an associative array (which has keys that are
column names of
a certain MySQL table)
the array name is "sess_arrayPhotos".
I need to match PhotoId (2nd dimension key) for every row (numeric index) of the 2D
array.
I tried--
$keyPos=array_search($searchedfor
Can I use the PHP XML functions to add and remove data
from a XML file?
It's possible? Or the PHP XML Functions are only for
read a XML file?
regards,
Augusto
___
Yahoo! GeoCities
Tenha seu lugar na Web
Hi,
I wrote a program where the session gets created, but on subsequent page the session
does not work or i could not retrieve the value kindly help me, I have put the coding
below
The operating system I use is Win98 and Personal Web Server, PHP version used is 4.0.6
File 1 : where the sessio
You need to configure you database in the pg_hba.conf. The pg_hba.conf is in
your postgres directory. Put one line like this in your pg_hba.conf
host yourdatabase yourhost 255.255.255.255 trust
- Original Message -
From: "Alberto" <[EMAIL PROTECTED]>
To: <[EMAIL
> echo session_is_registered("uname");
> echo session_name("uname");
> ?>
> click here to go to next page
try here:
click here to go to next page
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
try putting all your session_register's above any html and see if that
works. I believe you need to do this before any html is output. It's been
awhile since I've worked with sessions, but try it :)
Rick
> Hi,
>
> I wrote a program where the session gets created, but on subsequent page the
>
Well I don't have Access, nor Excel, but there is the Freeware Staroffice
that did it for me. Thank's for the tip. I thought of this myself, but your
message encouraged me to try it and it works.
Method I used:
- Open HTML with Staroffice
- Delete irregular header fields
- Select the whole table
try 'phpmychat' search in google. its the best chat in php available till now.
/sagar
- Original Message -
From: Tom Beidler
To: Maxim Maletsky (PHPBeginner.com) ; php list
Sent: Wednesday, September 26, 2001 8:51 PM
Subject: Re: [PHP] PHP Chat recommendations
I did, that
try using the die function. it might help out.
or u can use the mysql_affected_rows functions. check out.
http://www.php.net/manual/en/function.mysql-affected-rows.php
/sagar
- Original Message -
From: Joseph Bannon
To: PHP (E-mail)
Sent: Thursday, September 27, 2001 1:17 AM
its really a big headache with compilers like c bugging all the way just for
declarations.
its cl to have the freedom of using any variable at any place wherever v want in
bet
ween the code. chao of PHP.
/sagar
- Original Message -
From: * R&zE:
To: Rasmus Lerdorf
Cc: [
session must be registered before any code is sent to the browser. so the syntax
should be
html code here
/sagar
- Original Message -
From: Krushna Kumar R
To: [EMAIL PROTECTED]
Sent: Thursday, September 27, 2001 5:43 PM
Subject: [PHP] session not working
Hi,
I w
i've seen many members seeking for a good php chat.
so my suggestion is use phpmychat. its the best php
chat i've ever come across. here is the site where u can
download your version. www.phpheaven.net
its also very easy to install and configure with good admin.
ejoy your chat server,
/sagar
From: sagar N Chand <[EMAIL PROTECTED]>
Date: Thu, Sep 27, 2001 at 06:01:26PM +0530
Message-ID: <005101c14750$c3189b10$0101a8c0@inferno>
Subject: Re: [PHP] Variable declaration
> its really a big headache with compilers like c bugging all the way just for
>declarations.
> its cl to have the
> > its really a big headache with compilers like c bugging all the way just for
>declarations.
One remark, btw. Using explicit declarations isn't really more of a
headache then _not_ using expl.decl. When you don't
use explicit declarations, you'll need to check wether or not a
variable is defi
Does anyone know what kind of encoding/decoding RTF uses for images?
I tried using base64 in PHP, but it didn't do the trick.
Any thoughts?,
// Tobias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Hello,
This is just a curiosity, not a technical question, but (I hope) it's
interesting anyways..
Where is it possible to find something about the history of PHP?
(old announcements of the first releases, why it was born, which were
the major changes between one major release and the next, etc
Hi all,
how do you flush the buffer in PHP?
IE, running through code but wanting to output to the browser at specific
points, in a while loop for instance.
Cheers
Nic
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
From: Nic Skitt <[EMAIL PROTECTED]>
Date: Thu, Sep 27, 2001 at 02:13:52PM +0100
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] buffers...
> Hi all,
>
> how do you flush the buffer in PHP?
>
> IE, running through code but wanting to output to the browser at specific
> points, in a while loop fo
Flush() is the right call, but please note (from the manual):
--
Note: flush() has no effect on the buffering scheme of your webserver or the
browser on the client side.
Several servers, especially on Win32, will still buffer the output from your
script until it terminates before trans
How might I post a ?bariable in the http stream using a javascript dynamic menu?
Do I need to turn it into a form to do this.
andrew
Hello,
it's quite urgend, I need some help... I'm writing on a webinterface for
our LDAP-Server. I build an class which works with its advantages fine.
But i need to get the second entry from multivalued telephonenumber.
Below you see my code. Generally it works like this:
1) Instantiate an obje
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Nic Skitt) wrote:
> how do you flush the buffer in PHP?
http://www.php.net/manual/en/ref.outcontrol.php
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
49 matches
Mail list logo