php-general Digest 25 Feb 2005 16:18:28 -0000 Issue 3305
Topics (messages 209335 through 209345):
Re: Cookies
209335 by: Burhan Khalid
209336 by: Andre Dubuc
how to increase maximum upload file size
209337 by: Srinadh Sannidhanam
209338 by: Jochem Maas
Problem with XML
209339 by: Juan Antonio Garrido
209342 by: Jason Barnett
Re: Word file to PDF
209340 by: Rory Browne
209344 by: Jason Barnett
Re: Server includes and Absolute URL
209341 by: Jason Barnett
Re: PHP slowness
209343 by: Brent Baisley
Re: Identifying a user who previously created a profile
209345 by: Bret Hughes
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 ---
William Stokes wrote:
Hello,
If I send a session cookie to browser where it is stored in WinXP? Or is it
stored as a separate file at all. I know that the script sends the cookie
but I can't find it in the client computer harddrive.
I am testing with Opera, IE6 and Firefox.
In Firefox :
Tools --> Options
Click on Privacy on the left
Click on the + sign next to Cookies to expand that section
Click on View Cookies
In IE :
Tools --> Internet Options (or double click on Internet Option in the
Control Panel)
Click on Settings... (in the Temporary Internet Files group)
It will tell you on the next popup dialog where your files are stored.
Generally its SystemDrive:\Documents and Settings\User Name\Local
Settings\Temporary Internet Files\
I don't use Opera, so can't help you there.
--- End Message ---
--- Begin Message ---
On Thursday 24 February 2005 06:34 am, Burhan Khalid wrote:
> William Stokes wrote:
> > Hello,
> >
> > If I send a session cookie to browser where it is stored in WinXP? Or is
> > it stored as a separate file at all. I know that the script sends the
> > cookie but I can't find it in the client computer harddrive.
> >
> > I am testing with Opera, IE6 and Firefox.
>
> In Firefox :
>
> Tools --> Options
> Click on Privacy on the left
> Click on the + sign next to Cookies to expand that section
> Click on View Cookies
>
> In IE :
>
> Tools --> Internet Options (or double click on Internet Option in the
> Control Panel)
> Click on Settings... (in the Temporary Internet Files group)
> It will tell you on the next popup dialog where your files are stored.
>
> Generally its SystemDrive:\Documents and Settings\User Name\Local
> Settings\Temporary Internet Files\
>
> I don't use Opera, so can't help you there.
In Opera (7.54 final):
Tools > Preferences > Network : Privacy >> Manage Cookies
--- End Message ---
--- Begin Message ---
Hi,
In my application I need to allow the user to upload a file with size more
than 2M.
I came to know that by default php will allow only 2M. How can change it.
I changed, that in php.ini file and restarted apache. but still not working.
How to solve this problem?
Thanks,
Srinadh
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
--- End Message ---
--- Begin Message ---
Srinadh Sannidhanam wrote:
Hi,
In my application I need to allow the user to upload a file with size more
than 2M.
I came to know that by default php will allow only 2M. How can change it.
I changed, that in php.ini file and restarted apache. but still not working.
How to solve this problem?
this has been covered in various forms on the list quite a bit already this
last week,
please have search thru the archives - I'm sure there is enough info there to
help
you fix your problem
Thanks,
Srinadh
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
--- End Message ---
--- Begin Message ---
Hi everybody
What functions should be use for XML in PHP 4? I've tried with DOM Functions
but it appears an error "not class", DOM-XML Functions(experimental) don't
work well.
Thank you...
--
-------------------------------------------
Juan Antonio Garrido Mata
Emergya, Soluciones Tecnol�gicas
Tel. +34 954 98 10 53 FAX +34 954 98 11 79
Avda. Luis Montoto, 105.
E41007 - Sevilla(Espa�a)
[EMAIL PROTECTED]
http://www.emergya.info
-------------------------------------------
--- End Message ---
--- Begin Message ---
Juan Antonio Garrido wrote:
> Hi everybody
>
> What functions should be use for XML in PHP 4? I've tried with DOM Functions
> but it appears an error "not class", DOM-XML Functions(experimental) don't
> work well.
>
> Thank you...
You want the xml_* functions. You start out with xml_parser_create() to
<surprise>create an XML parser</surprise>. Not being mean, just making
a point that most PHP functions do what you expect them to do. This
function (as well as related functions) can be found here:
http://php.net/manual/en/function.xml-parser-create.php
DOM is what you use in PHP5. If you're working on a new project I
highly recommend that you upgrade to PHP5 and use the XML facilities
there instead...
http://php.net/manual/en/ref.dom.php
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
Sorry - forgot to cc this to the list.
[off-topic] Any idea if there is any way to set up gmail so that it
automaticly replys to the list.
---------- Forwarded message ----------
From: Rory Browne <[EMAIL PROTECTED]>
Date: Thu, 24 Feb 2005 13:12:15 +0000
Subject: Re: [PHP] Word file to PDF
To: Kevin Javia <[EMAIL PROTECTED]>
You could check out wvware. I believe you can find it at
http://wvware.sourceforge.net although I'm not sure.
Alternatively you could probably find some way of automating
openoffice to do it for you. I reckon that OOo has a better filter for
converting them than wvware. If you don't need this urgently, then you
could wait until mid-march for OOo 2.0, which will aparently have
better MSOffice compatability, and use that instead.
If you're on a Windows box, and have MSWord installed, you could
probably install the PDF Printer driver, and then have MSWord open the
file, and 'print' it to the PDF driver, using OLE automation.
So to summerise: Hints: wvware or Office Word Processor + automation
If you want a simple solution that works perfectly all of the time,
then you're probably in bother.
Rory
On Thu, 24 Feb 2005 10:12:18 +0530, Kevin Javia <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> How can I convert a Word file (*.doc) to PDF file? Are there any libraries
> available?
>
> Can you give me some hint how can I do that?
>
> Thanks.
>
> Kevin.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Rory Browne wrote:
> Sorry - forgot to cc this to the list.
>
> [off-topic] Any idea if there is any way to set up gmail so that it
> automaticly replys to the list.
>
> ---------- Forwarded message ----------
> From: Rory Browne <[EMAIL PROTECTED]>
> Date: Thu, 24 Feb 2005 13:12:15 +0000
> Subject: Re: [PHP] Word file to PDF
> To: Kevin Javia <[EMAIL PROTECTED]>
>
>
> You could check out wvware. I believe you can find it at
> http://wvware.sourceforge.net although I'm not sure.
>
> Alternatively you could probably find some way of automating
> openoffice to do it for you. I reckon that OOo has a better filter for
> converting them than wvware. If you don't need this urgently, then you
> could wait until mid-march for OOo 2.0, which will aparently have
> better MSOffice compatability, and use that instead.
Thanks for this tip BTW, I'll be on the lookout for the update...
>
> If you're on a Windows box, and have MSWord installed, you could
> probably install the PDF Printer driver, and then have MSWord open the
> file, and 'print' it to the PDF driver, using OLE automation.
I will second this suggestion. There is a great library out there
called *PDFCreator* that will take print jobs in WinXP and convert them
into PDFs. I use it all the time.
http://sourceforge.net/projects/pdfcreator/
*WARNING* PDFCreator is under the GPL. If this works for you then
great, but just want you to know it isn't a PHP-style of license...
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
Jacques wrote:
> Can make use of an absolute URL when using require() or require_once()?
>
Yes, as long as you have allow_url_fopen = 1 in your php.ini
> Regards
>
> Jacques
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
I noticed you have your error_reporting level set really high (2039),
which is pretty close to everything. That may be fine on a development
server, but I wouldn't set it that high on a production server. I'd be
curious what you log looks like. Perhaps this is causing your slowness,
perhaps not.
Also, you seem to use the short open tag style '<?'. Not that it's
causing your problem, but for compatibility you should probably use the
long style '<?php'.
On Feb 24, 2005, at 4:54 AM, Gerard wrote:
Hello people,
Recently, one of my webservers became rather slow. At first we thought
it
was the MySQL backend, but when logged in on MySQL using the command
line
tool over SSH, it runs as smooth as ever.
Static content (normal html pages) also load without delay. It seems
that
the bottleneck is PHP itself.
For the sake of comparison, I created 2 test pages:
http://www.debuginc.com/test.html
http://www.debuginc.com/test.php
Everyone I asked says that the PHP page takes over 5 seconds to load
while
the HTML one instantly displays. The only code in the PHP page is <?
echo
'hello world'; ?>. No MySQL stuff, so that eliminates the initial idea
of
MySQL causing the slowness.
Nevertheless, it IS slow and I have no idea why or where to start
looking.
The phpinfo() can be found on www.debuginc.com/info.php. Any help or
hints
are highly appreciated.
Another interesting note; this problem started a couple of days ago
without
any changes in the config or anything. At first I upped the amount of
connections Apache would accept, but it soon turned out that was not
the
problem.
Thanks,
- Gerard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--- End Message ---
--- Begin Message ---
On Thu, 2005-02-24 at 04:02, Jacques wrote:
> How can I ensure that a user is prevented from creating a second profile
> after he has registered a second time with different registration details?
>
> I thought of capturing his IP Address and checking this value against my
> users table in my database where I have captured IP Addresses of users who
> have previously registered.
>
Not a good way for several reasons:
Dynamic IP addresing:
NAT based firewalls.
I suspect your best bet is to place a cookie.
Bret
--- End Message ---