Adrian Madrid wrote:
I've been running Turck for some time now on PHP5 and haven't had
segfault problems yet. I must say I'm running the latest CVS and using
file sessions (Turck's would give you segfaults).
I also tried latest CVS and I don't use Turcks cache. Maybe Turck has
problems with
Zareef Ahmed wrote:
But you need to do serialize and unserialize in case of array or object.
Do ::
$val_ar=array(one,two,three);
$_SESSION['val_ar_store']=serialize($val_ar);
Serialization is done automatically. You don't need to do it yourself.
You can even store simple value-objects in the
Klaus Reimer wrote:
Adrian Madrid wrote:
I've been running Turck for some time now on PHP5 and haven't had
segfault problems yet. I must say I'm running the latest CVS and using
file sessions (Turck's would give you segfaults).
I also tried latest CVS and I don't use Turcks cache. Maybe Turck
Hi Michael,
I always use
header('Refresh: 2; url=' . $_SERVER['PHP_SELF']);
to reload the current page every 2 seconds. You may want to pass $_GET
variables, depending on your needs. Also make sure you call this function
_before_ any other output has gone to the browser.
HTH,
Ivo
On Mon, 08
raditha dissanayake wrote:
I am also running turck with php5 without too many problems and that's
why i recommended it to the OP. However none of the scripts that run on
it make use of any of the new features of php5.
One example: I'm using osCommerce, which is not using any new
PHP5-features
Hi guys and gals,
I'm not screaming Bug! Bug! but this _does_ look 'illogical' to me. I've
searched the archives, but found no earlier conversation. Sorry if
I missed it. Consider the following code:
var_dump(in_array('test', array(0)));
What does this return? I expect bool(false), but it
On Tuesday 09 November 2004 01:54, [EMAIL PROTECTED] wrote:
I have written a simple page that uses fping and was working perfectly just
shelling out to it using the backtick.
The server it was on crapped out and I'm trying to get it going again on
our new server.I have installed fping,
Your question is not very clear. Do you mean to say you only want your
FTP server to be accessible by your php scripts? If so the trick is to
listen only on localhost and not on the public ip.
No, only some of the scripts shall be
accessible by other scripts in the FTP server.
Alessandro
Alessandro Rosa wrote:
Your question is not very clear. Do you mean to say you only want your
FTP server to be accessible by your php scripts? If so the trick is to
listen only on localhost and not on the public ip.
No, only some of the scripts shall be
accessible by other scripts in the
Hi guys and girls, while we are on this topic, has anyone got a good
senario of a sub select query which can remove the nested loops ? I
have been wanting to get rid of nested loops for a good while and now
Mysql 4.1 is out I would like to start using it. So the usual scenario
for nested loops
Ing. Ivo F.A.C. Fokkema wrote:
Hi guys and gals,
I'm not screaming Bug! Bug! but this _does_ look 'illogical' to me. I've
searched the archives, but found no earlier conversation. Sorry if
I missed it. Consider the following code:
var_dump(in_array('test', array(0)));
What does this return? I
Apart from Marek's reply, you should probably check the in_array()
documentation (look at the third, optional parameter) and search for
type casting on php.net.
Cheers,
Bogdan
Ing. Ivo F.A.C. Fokkema wrote:
Hi guys and gals,
I'm not screaming Bug! Bug! but this _does_ look 'illogical' to me.
That's even more confusing. You run php scripts off a
web server and not an FTP server.
Ok ... the server I'm dealing with works for both services.
But let me re-explain the question in new terms.
I have a bunch of php scripts on a web server.
I just wanted to know if it is possible to deny
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
On 06 November 2004 20:09, anders thoresson wrote:
This code seems to work. Have I got it right?
No. I have not. Sometimes the images are viewed from the
cache, just
to
I have created a registration page
http://www26a.your-server.co.za/matchm/registration4.php
On this page I have many fields, some of them pulling data out from my
database. I have a javascript validation scipt thats checks on submission of
the form to see if all required fields are filled in
On Tuesday 09 November 2004 11:10, Alessandro Rosa wrote:
That's even more confusing. You run php scripts off a
web server and not an FTP server.
Ok ... the server I'm dealing with works for both services.
But let me re-explain the question in new terms.
I have a bunch of php scripts on a
On 09/11/2004, at 2:33 PM, Michael Gale wrote:
I am working on a site where people will be updating information in a
database and should have up to date info. Now since HTTP is stateless
the user will not know about any new information until they click on a
link or hit a button on the page.
My
Alessandro Rosa wrote:
That's even more confusing. You run php scripts off a
web server and not an FTP server.
Ok ... the server I'm dealing with works for both services.
But let me re-explain the question in new terms.
I have a bunch of php scripts on a web server.
I just wanted to know if
Garth Hapgood - Strickland wrote:
I have created a registration page
http://www26a.your-server.co.za/matchm/registration4.php
On this page I have many fields, some of them pulling data out from my
database. I have a javascript validation scipt thats checks on submission of
the form to see if all
So As I understand. Session also store ID on the harddrive. I don't
see the big difference between session and cookies from privacy
point of view.
On Mon, 8 Nov 2004 17:55:03 -0500, Paul Reinheimer
[EMAIL PROTECTED] wrote:
--
I don't want to use cookies.
I want to use session. When I
I am not sure where exactly I am going so wrong, and it really is starting
to drive me crazy!
Regards
Garth
Hi Garth,
Looks like it's time to do some fairly standard debugging.
Try putting error_reporting(E_ALL) at the top of the page in question. It
may be that you're currently missing
-Original Message-
From: Garth Hapgood - Strickland [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 11:27
To: [EMAIL PROTECTED]
Subject: [PHP] using mysql in php problem
I have created a registration page
http://www26a.your-server.co.za/matchm/registration4.php
On this page I
Thanx both of you,
I know the type-casting bit and have noticed the third parameter which
'fixes' the in_array issue. I just missed 'test' == 0 implied (int) 'test'
== 0. Typecasting a string to integer indeed returned 0. Typecasting is
of course not necessary within if statements, resulting in
On Tue, 9 Nov 2004 11:43:19 +, Jerry Swanson [EMAIL PROTECTED] wrote:
So As I understand. Session also store ID on the harddrive. I don't
see the big difference between session and cookies from privacy
point of view.
Instead of
Session also store ID on the harddrive
a more correct wat
Hi All
I'm developing a fusebox PHP app and have a class in a /classes
directory that opens an xml file in a directory below the site root
using this path: ../siteconfig.xml
All of the places I have used this class from so far have been in the
site root. I am now starting some pages in a sub
I just want to give you a simple example that for diff. of session and cookie is
that---
When in our gmail account we will see that one option is there to save the
password for 2 weeks, so that eans when u check that bbox and submit then one
cookie is created for that comp. with your details nand
hi,
i manged to install php but with mysqli support only, i want to configure it
mysql and mysqli support. as it turned out the error occured when i tred to
install both mysql and mysqli support, for the time i am living with mysqli
support only untill i figure out what i wsa doing wrong. i have
thnx for your support every thing is working well
but
still one problem, that height and width are not coming so how i modify the
first regular exp. so it shows both height and width.
/img\s+.*?src=(.*?).*?/s
Thnx...
Ankur Dave
Why when I specify session.cookie_lifetime = 1 // Cookies are not created.
However, when I specify large lifetime, cookies are created.
session.cookie_lifetime = 1500
On Tue, 9 Nov 2004 08:11:46 -0500, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I just want to give you a simple
Hi,
Is there anyway to redirect php page other than using
HEADER(LOCATION:URL) ?
Header can only be called if nothing is written to HTML... Is there anyway
around it?
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
thnx for your support every thing is working well
but
still one problem, that height and width are not coming so how i modify the
first regular exp. so it shows both height and width.
/img\s+.*?src=(.*?).*?/s
Hi all,
Please tell me how to send a null string to be inserted in a MySQL database.
If I do something like:
$string = null;
mysql_query(insert ignore into table(field) values($string));
It gives me an error.
In fact, I have multiple fields to insert, and the error just tell me that
was an
Hello Victor,
Tuesday, November 9, 2004, 4:07:12 PM, you wrote:
VC Is there anyway to redirect php page other than using
VC HEADER(LOCATION:URL) ?
VC Header can only be called if nothing is written to HTML... Is there anyway
VC around it?
Not really, no. Maybe with a meta refresh tag or some
If I do something like:
$string = null;
mysql_query(insert ignore into table(field) values($string));
It gives me an error.
Pass a string value of 'NULL'.
Ie INSERT INTO table (field) VALUES (NULL);
Or, in your example:
$string = 'NULL';
mysql_query(INSERT INTO table (field) VALUES
Victor C. wrote:
Is there anyway to redirect php page other than using
HEADER(LOCATION:URL) ?
Header can only be called if nothing is written to HTML... Is there anyway
around it?
You can use output buffering. Then it doesn't matter where you call
header(). But if you do a redirect you should
I can upload just about everything with this script; but I don't
understand why it says that the videos i try to upload are zero length.
--
THE FORM
--
form method=post name=info enctype=multipart/form-data
id=x-form action=add.php
input
Victor, try this.
at the TOP of your HTML, put
?PHP
ob_start();
?
then you can have all your regular HTML/PHP/JAVASCRIPT/ETC code, and
somewhere(in the middle, in the end), you can call
?PHP
header('location: '.$URL);
?
where $URL is a variable that contains a URL and it will work.
?
-
How big are the video files(byte wise)?
Have you tried uploading a non-video file of the same size?
- Original Message -
From: Jay Fitzgerald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 12:10 PM
Subject: [PHP] Video Uploads
I can upload just about everything
Jerry Swanson wrote:
Why when I specify session.cookie_lifetime = 1 // Cookies are not created.
However, when I specify large lifetime, cookies are created.
session.cookie_lifetime = 1500
Are your times and timezones set up right? Both client and server
--
PHP General Mailing List
Giles Roadnight wrote:
Hi All
I'm developing a fusebox PHP app and have a class in a /classes
directory that opens an xml file in a directory below the site root
using this path: ../siteconfig.xml
All of the places I have used this class from so far have been in the
site root. I am now
I rewrote my framework to use some of the new OOP features in PHP5 and
haven't had a single segfault yet. Again, my only segfaults came when
using MMCache's session handler. Another caveat is that I compile my own
PHP MMCache everytime instead of using RPMs and stuff.
Anyway, just my 2 cents.
The video is 1.5 meg and yes I can upload a PSD file that is 1.8..
Jay
Minuk Choi wrote:
How big are the video files(byte wise)?
Have you tried uploading a non-video file of the same size?
- Original Message - From: Jay Fitzgerald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday,
Hello I'm having problems with the following code:
if (! ($dp = opendir($imagesdir))) die (cannot open $imagesdir.);
while($file = readdir($dp))
{
if ($file != '.' $file != '..')
{
///Second test doesn't seem to catch sub-directories under $imagesdir
if(is_dir($file)) / This
On Tuesday 09 November 2004 17:09, Dave Lampron wrote:
Hello I'm having problems with the following code:
if (! ($dp = opendir($imagesdir))) die (cannot open $imagesdir.);
while($file = readdir($dp))
{
if ($file != '.' $file != '..')
{
///Second test doesn't seem to catch
I have a page that will be redirected to a login page if the SESSION var
'authenticatedUser' is not set.
The page has a form in it.
When the page is loaded http://thePage the authentication works fine. When
the submit button is pressed it doesn't. With POST it acts as if the
required session
Pass your session along with your form action...
i.e
$s = SID;
echo form action=\.$_SERVER['PHP_SELF'].?$s\ method=post
- Original Message -
From: Sam Smith [EMAIL PROTECTED]
Date: Tuesday, November 9, 2004 1:12 pm
Subject: [PHP] POST losing SESSION vars?
I have a page that
-Original Message-
From: Giles Roadnight [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 13:07
To: [EMAIL PROTECTED]
Subject: [PHP] help with fopen path
Hi All
I'm developing a fusebox PHP app and have a class in a /classes
directory that opens an xml file in a directory
Uuuuh... Where do I set the default server extension type to .php in the
apache config? Right now the page will execute on my server, but if there is
an index.php the server won't automatically open it, but instead browses the
directory.
Thanks in advance,
-Brian
--
PHP General Mailing List
Brian A. Anderson wrote:
Uuuuh... Where do I set the default server extension type to .php in the
apache config? Right now the page will execute on my server, but if there is
an index.php the server won't automatically open it, but instead browses the
directory.
DirectoryIndex index.html index.php
Uuuuh... Where do I set the default server extension type to .php in the
apache config? Right now the page will execute on my server, but
if there is
an index.php the server won't automatically open it, but instead
browses the
directory.
Thanks in advance,
-Brian
Look for
Coolbeans guys!
:)
Thanks,
-Brian
- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: Brian A. Anderson [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 4:07 PM
Subject: Re: [PHP] silly question - setting .php as default extension
(Apache)
Brian
Octavian Rasnita wrote:
Please tell me how to send a null string to be inserted in a MySQL database.
If I do something like:
$string = null;
mysql_query(insert ignore into table(field) values($string));
This will result in the following SQL query:
insert ignore into table(field) values()
If you
On Tuesday 09 November 2004 16:04, Brian A. Anderson wrote:
Uuuuh... Where do I set the default server extension type to .php
in the apache config? Right now the page will execute on my server,
but if there is an index.php the server won't automatically open
it, but instead browses the
Hi Giles,
I'm developing a fusebox PHP app and have a class in a /classes
directory that opens an xml file in a directory below the site root
using this path: ../siteconfig.xml
All of the places I have used this class from so far have been in the
site root. I am now starting some pages in a sub
Hi,
Alas there is no any other way to redirect the page without sending
headers in PHP.
You may use javascript for this purpose.
Well it is matter of programming practice.
We must do processing before presenting the content to users.
It will be helpful in many situations.
So instead of
I just want the URL that is on the navigator bar be
printed... this is my script but it just does not do it...
why,.. please help, cheers
HTML
TITLEFirst Variables Example/TITLE
BODY
?php echo VALUE IS: $x;?
/BODY
/HTML
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Use
print $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
Zareef Ahmed
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] basic script
I just want the URL that is on the
Hi,
I'm using the Oracle database though I think this question is generic to all
databases.
If you're using bind variables and preparing the SQL statements ahead of
time, do you still need to call addslashes() before binding the strings to
the bind variables?
Thanks in advance.
Francis
--
It's Sorted Now,
It got Java'd.
Kevin Dell [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
I have a question that I can't get my head around and was hoping someone
could answer for me.
I have a form with a number of fields.
Field one is a tdselect name=thisSteamField/td
59 matches
Mail list logo