On 07/09/11 13:42, Richard Quadling wrote:
On 7 September 2011 12:32, Paul Waring wrote:
On 07/09/11 12:16, Richard Quadling wrote:
On 7 September 2011 11:20, Paul Waringwrote:
Can anyone suggest things which I could try? I cannot work out why this
problem is happening for some users
On 07/09/11 12:16, Richard Quadling wrote:
On 7 September 2011 11:20, Paul Waring wrote:
Can anyone suggest things which I could try? I cannot work out why this
problem is happening for some users but not me.
For browsers/extensions that do automatic read ahead (I load page A
and linked
On 07/09/11 12:20, vikash.i...@gmail.com wrote:
Just confirm once that you are not calling session_destroy somewhere.
The only place session_destroy is called is in the logout function,
which itself is only called if a user clicks the logout link.
--
Paul Waring
http
ous logins.
--
Paul Waring
http://www.phpdeveloper.org.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 07/09/11 11:47, Nilesh Govindarajan wrote:
On 09/07/2011 03:50 PM, Paul Waring wrote:
I'm having trouble with a PHP website which requires users to be logged
in to access all content other than the home page and a couple of static
pages (about us, contact us etc.). Several users have
s permission to write to the save_path directory,
and I can see session files being created.
5. No output buffering functions are being used.
Can anyone suggest things which I could try? I cannot work out why this
problem is happening for some users but not me.
Thanks in advance.
Paul
-
On 04/11/10 20:23, Tomás Corrales Lemoine wrote:
I have this two files (“index.php” and “include.php”). They both work
fine, but I want to substitute the code for de onchange event in the
tag. Can I use PHP to code this event? How?
xajax will allow you to call PHP code as if it was JavaScript:
On 04/11/10 14:56, Alexander Holodny wrote:
Inc session.cache_expire. You have only 3 minutes.
This means browser will drop cookie containing session id in three
minutes, or even less, of clients inactivity.
According to the PHP manual:
"session.cache_expire specifies time-to-live for cached s
I'm having trouble with a PHP site whereby some users are being logged
out on a regular basis. This will usually happen after they have been
using the site for a few minutes, they can login without any problems
and access a few pages, but then suddenly they will request a page and
be sent to th
David McGlone wrote:
On Thursday 06 May 2010 07:19:48 Paul Waring wrote:
David Otton wrote:
On 6 May 2010 11:52, Paul Waring wrote:
If I was designing the system from scratch, that's what I'd do.
Unfortunately this is an add-on to a legacy system where currency values
are already
David Otton wrote:
On 6 May 2010 11:52, Paul Waring wrote:
If I was designing the system from scratch, that's what I'd do.
Unfortunately this is an add-on to a legacy system where currency values are
already stored as strings in the database (yes, not ideal I know, but you
have to
Unfortunately this is an add-on to a legacy system where currency values
are already stored as strings in the database (yes, not ideal I know,
but you have to work with what you've got).
--
Paul Waring
http://www.pwaring.com
--
PHP General Mailing List (http://www.php.net/)
To
a user-entered value of '37.12' and add that to '0.18' it won't
necessarily be equal to '37.30'.
Currency must have two decimal places, otherwise how would you represent
five pounds and sixteen pence (£5.16) for example?
--
Paul Waring
http://www.pwaring.co
ting currency
values, and see if they're equal to another float, but I need to convert
them to ints first because I can't guarantee than there won't be
something after the second decimal place.
Thanks,
Paul
--
Paul Waring
http://www.pwaring.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 1 Jan 2007 16:14:06 -0500, tedd <[EMAIL PROTECTED]> wrote:
> Does this technique work to detect your browser's javascript setting?
Not for me, it says "Javascript has not been detected on the client." when in
fact I've got JavaScript enabled (Firefox 1.5.0.8 on Ubuntu Linux).
Paul
--
On Mon, 1 Jan 2007 10:50:04 -0500, tedd <[EMAIL PROTECTED]> wrote:
> However, does the php logo change for those in the southern
> hemisphere? In other words, for oz programmers, do they see a
> different logo? If so, how does one (or can) detect the user's
> hemisphere?
Detecting a user's geogra
On 10/05/06, Richard Collyer <[EMAIL PROTECTED]> wrote:
Does this do the same with PHP5? Remember mod_php5 has gone from ports
so lang/php5 then make config and select build apache option.
I've no idea whether it does that with PHP5, but I'm not ready to
upgrade to that version yet (perhaps ove
On 10/05/06, Riemer Palstra <[EMAIL PROTECTED]> wrote:
These are rather recent versions of both, so I'm suspecting an upgrade
was done recently which didn't make PHP all that happy. This is PHP
built from the port /usr/ports/lang/php4? Go to that dir, type 'make
config', make sure the APACHE knob
On 10/05/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
the php may be being loaded in via an include conf file
do you havbe a line in httpd.conf that start with 'Include' ?
Only one, and that includes some virtual host files (I don't think
those are the problem, as Apache usually complains if
I restarted Apache this morning in order to allow some new virtual
hosts to be recognised, and now I've got a problem whereby all of my
PHP scripts are being served up as source code instead of being
executed by the web server. I don't know why this is, as far as I'm
aware I haven't changed anythi
On 19/04/06, Shannon Doyle <[EMAIL PROTECTED]> wrote:
> Trying to get a session to destroy correctly, however the darn thing just
> refuses to destroy. I call the following in a separate webpage in a effort
> to destroy the session, only to find that the session still persists.
>
> session_start()
On 18/04/06, Vernon Webb <[EMAIL PROTECTED]> wrote:
> I've recently upgraded a server from Fedora Core 3 to Core 5 in the process
> php had
> been upgraded from either 3 or 4 to php 5. In doing so I had to do a major
> overhaul of
> a web site as many things stopped working (.i.e $HTTP_POST_VAR,
On 18/04/06, Chris Grigor <[EMAIL PROTECTED]> wrote:
> Was wondering if there is an easier way to get returned variables into
> the $_SESSION rather than going through each one??
First of all, why are you using mysql_fetch_object and then passing in
MYSQL_ASSOC? You should be using $line = mysql_f
On 12/30/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> The suggestions so far are good, but watch out for this:
>
> If you do one record at a time, and are using LIMIT, and then
> something gets inserted into the original table...
>
> Boom!
You could always lock the tables whilst performing the u
On 12/28/05, William Stokes <[EMAIL PROTECTED]> wrote:
> I have one MySQL table with about 500 rows. I need to read the table one row
> at a
> time, make some changes to data in one field and then store the changed data
> to another table.
>
> I'm using PHP to change the data but I have no idea how
On 12/28/05, Bagus Nugroho <[EMAIL PROTECTED]> wrote:
> Is mysqli module enable by default on php 4 as mysql module.
No, because it's a PHP5 module (if you look at the documentation for
it, all the php.ini settings for it have only been available since
5.0.0).
> If not enable by default, where I
On 12/25/05, John Meyer <[EMAIL PROTECTED]> wrote:
> Hi, does the PHP document come in a PDF form?
No, it comes in the online format, HTML for offline viewing and
Windows HTML help. However, there is a guide to editing the XML
sources that can be found at the following URL:
http://doc.php.net/ph
On Wed, Nov 16, 2005 at 12:40:21PM +0100, Petr Smith wrote:
> Who uses PEAR? Mess of old unsupported and undocumented libraries which
> only their authors (maybe) can use?
I use PEAR for a few things, such as database abstraction. I admit that
a lot of the less popular modules haven't been update
On Mon, Nov 07, 2005 at 01:50:59PM -0800, Richard wrote:
> I've heard that php is not particularly secure, making it problematic if you
> intend to create a web site with commerce, etc. Is there a particular news
> group that addresses security issues? I'm looking for some guidlines on
> ensuring t
On Sat, Nov 05, 2005 at 01:23:01PM +0200, Dotan Cohen wrote:
> How can I shorten it to something like this:
> print $number." ".$number+2."\n";
> ?>
Try:
I think putting the $number + 2 in brackets will cause PHP to evaluate
that part of the expression before printing it.
Paul
--
Rogue Tory
On Wed, Nov 02, 2005 at 02:35:47PM -0700, Phillip S. Baker wrote:
> I seem to remember a built in php function that will take a huge block of
> text.
> Then just spit out X number of characters from it and follow it with an
> additional string value.
> But I cannot remember what it is.
I don't kno
On Mon, Oct 31, 2005 at 12:56:01PM +0200, Clive wrote:
> Thanks I actually want to send 24 000 emails with 2 meg attachments.
Oh. You definitely don't want to be using an external SMTP server if you
can help it then, and you should really be splitting those up into
chunks (no more than 1,000 at a
On Mon, Oct 31, 2005 at 12:38:09PM +0200, Clive wrote:
> what I mean is: im using a class called phpmailer and it has the option
> to sent to a smtp server, I suppose this means that they do open a
> socket to the smtp server.
All that means is that you can specify an external SMTP server (e.g.
On Mon, Oct 31, 2005 at 12:10:02PM +0200, Clive wrote:
> does anyone know whats better/uses less resource etc:
>
> If I run a loop to send a 1000 emails, should I use php's mail fucntions
> or send directly to the servers smtp server.
What do you mean by "send directly"? Are you thinking of send
On Mon, Oct 24, 2005 at 03:34:23PM +0200, Jacob Friis Saxberg wrote:
> Is it possible to use Php, Rails and ajax via some open source system?
> How do you do it?
I don't know what exactly you mean by "rails", as it seems to be a
buzzword for half a dozen different things at the moment. However, I
On Sun, Oct 16, 2005 at 05:25:12PM +0200, Dotan Cohen wrote:
> You say that it worked for you? Where did it take you? It _should_
> take you to another lyrics site. Did you stay on http://lyricslist.com
> or go somewhere else?
If I go to lyricslist.com and click the logo or the "Song Lyrics" link,
On Sun, Oct 16, 2005 at 05:04:09PM +0200, Dotan Cohen wrote:
> header ("Location: ".$url);
> ?>
>
> Does this seem like it should work? It doesn't. What is the correct
> syntax for these things?
That code should work, and the example on your site seems to work for
me. The only thing you should ma
On Wed, Oct 05, 2005 at 03:12:51PM -0400, Scott Fletcher wrote:
> What is the safest way to destroy or take out the
> $xml['NEWSFEED']['0']['MESSAGE']['2']. associative arrays starting with
> ['2'] and those arrays inside of the ['2'] array path?
>
> The unset() would make it not possible to r
On Thu, Oct 13, 2005 at 02:13:37PM +0300, Turgut Hakk? ?ZDEM?R wrote:
> I'm looking for a document describing differences between C and PHP,
> important points for programmers who already know C,C++, and things that
> must be taken care.
> I'm googling for about an our but i can't find anything. An
On Wed, Oct 12, 2005 at 05:24:11PM +0100, Alan Lord wrote:
> I'm really struggling here! I have a large, multi-dimensional array that
> I want to "clean-up" a bit before committing to a database.
How big an array? You could just go create another array of the same
structure and copy the values acr
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote:
> Should it? Is it possible to write a doesexists.php script which would
> cause the 404 directive to be triggered?
>
> I also tried: header("Status: 404 Not Found"); but this did not work either.
Try searching the archives for this list
On Mon, Aug 08, 2005 at 05:10:27PM -0700, Jimmie wrote:
> But an errors occurred when the page run. Some information liked this:
>
> Warning: get_meta_tags(): php_network_getaddresses: gethostbyname failed
> in d:\apache\htdocs\meta_tag.php on line 3
>
> Warning: get_meta_tags(http://www.pconli
On Fri, Aug 05, 2005 at 03:53:41PM +0200, Sabine wrote:
> may anybody give me a tip where to find a documentation for 4.0.6?
> Perhaps I'm a little bit blind, but I don't find it.
> Unfortunatedly I have to develop an application on this release.
Does the documentation at php.net not suffice? It u
Does anyone know of an open source wrapper class for the Amazon Web
Services API (version 4)? The only ones I can find are either years out
of date (such as Amazon_Services in PEAR) and so no longer work, or they
require me to parse the XML myself. All I want is something relatively
simple that I c
On Thu, Jul 21, 2005 at 11:22:25AM +0530, balwant singh wrote:
> Have anybody tried PHP & AJAX, may please share your experience. also
> pls. suggest good link of tutorial on this.
I haven't tried it myself, but this looks rather good, article on how to
implement Google Suggest in PHP:
http://t
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
> My money is being stored in a database. And I want everythign to be in
> PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after you've
checked to see whe
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
> And I have 100 points. How would I make it so when I click BUY!!
> My money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A cookie?
Do you want the "buy" link to wo
On Mon, Jul 11, 2005 at 03:25:33PM +0100, Mark Rees wrote:
> with no single quotes round it. Putting quotes round integer values is
> counter-intuitive - is it necessary in some cases?
If the field is a numeric type (e.g. INT) as opposed to numeric data
being stored in a character field (e.g. a te
On Mon, Jul 11, 2005 at 11:20:05AM +0100, Ross wrote:
> But I have having trouble assiging them to the variable $recipients. Really
> what i want is to convert
>
> $email_addresses[0] = [EMAIL PROTECTED]
> $email_addresses[1] = [EMAIL PROTECTED]
> $email_addresses[2] = [EMAIL PROTECTED]
>
> into
On Sun, Jun 26, 2005 at 04:33:30PM +0200, Alessandro Rosa wrote:
> But, when I'm in the new page of (c), the $_SESSION variables stored
> in (a) are no longer available and I can get anymore their values then,
> (I can't say if they have been unset or erased).
You have to pass the session ID betwe
On Sat, Jun 25, 2005 at 06:29:16PM +0300, vlad georgescu wrote:
> i want to make a "reminder" application which sends emails at certain hour
> in php. is this posibile ? if not, what else can I use ?
It's sort of possible - I know vBulletin uses a hidden image or
something to call a file called c
On Sat, Jun 25, 2005 at 10:32:41AM -0400, Matthew Weier O'Phinney wrote:
> If somebody could offer some *constructive* criticism of PEAR -- PEAR as
> it is TODAY, not "3 years ago, when I last tried it" -- these comments
> would have more weight. As it is, I feel they're just FUD based on
> ignoran
On Mon, Jun 20, 2005 at 10:48:41AM +0200, Cruonit wrote:
> I tryed this simple PHP script that uses SimpleXML control:
In future, please don't post the same thing to the list three times,
there really is no point. If your post isn't showing up, at least have
the patience to wait a few minutes bef
On 6/10/05, Leila Lappin <[EMAIL PROTECTED]> wrote:
> Have you tried changing the subscription options through the website? I
> think you can do it by just checking the type of list you're interested in
> subscribing.
I don't know about other people, but I've had lots of problems trying
to subscr
On 6/8/05, Greg M. Price <[EMAIL PROTECTED]> wrote:
> Please help - I got " Error message:
>
> "Your PHP version does not have support for MySQL"
>
> when I did http://x.x.x.x/install.php on windows 2003 with Php 5.04 and
> MySQL 5.0.
PHP 5 doesn't come with the MySQL client libraries built-in.
On 6/8/05, Dave Sayer <[EMAIL PROTECTED]> wrote:
> What would be the best method of validation a large (8 stages) form written
> in php? The form validates using php at the moment but it only displays the
> errors in a group, what we want it to do is highlight the fields or labels
> for the incorre
On 6/5/05, Jack Jackson <[EMAIL PROTECTED]> wrote:
> I'd like to stop the NY Sun from appearing twice! What have i missed here?
There's nothing wrong with your PHP code as such (although you could
filter out duplicates there if you wanted), all you should need to do
is add the DISTINCT keyword to
On 6/5/05, Dotan Cohen <[EMAIL PROTECTED]> wrote:
> I don't want to strip out all the tags, just certain ones.
You can use strip_tags() and tell it not to strip certain tags if you
want, that feature has been available since PHP 3.
--
Rogue Tory
http://www.roguetory.org.uk
--
PHP General Mailin
On 5/31/05, Ryan A <[EMAIL PROTECTED]> wrote:
> Can anybody recommend a real bare bones forum that i can modify
I don't know what you mean by "bare bones" exactly (how stripped down
are you looking for?) but here are three fairly small forum systems
you might want to have a look at:
punBB - http:
On 5/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am changing my e-mail address and I tried to suscribe to this list through
> the php.net automated subscription service. It didn't work. Suggestions?
Try emailing [EMAIL PROTECTED] from the new address
that you want to subscribe with
On 5/28/05, Gary C. New <[EMAIL PROTECTED]> wrote:
> I am trying to compile phpcap-0.2e with php-4.2.3 and get the following
> configure error:
Is there a *really* good reason why you're still running 4.2.3? It's
over two years out of date and a lot of bugs and security holes have
been fixed since
On Tue, 5 Oct 2004 12:29:53 -0400, Gary Hotko <[EMAIL PROTECTED]> wrote:
>Could you provide more information, code example or a how to to do this..
Have a look at the Mcrypt functions in PHP (you need to complie
support for this extension to access these features):
http://www.php.net/manual/e
> Just, the result returned by the fuinction is mainly used to creatre
> links in the pages, only in some very special cases will be used with
> the header function. Just I use the & entity in links because I
> want all my pages being validated by the W3C validator service.
As well as that, you sh
> If you have other suggestions, please tell us!
Lots of people have written classes/functions to see whether domain
names are available for pretty much every top level domain and country
code. One that I've used in the past is:
http://phpclasses.vextron.com/browse/package/360.html
there are sev
> I think you used header() after put out some data or php installed on server
> as CGI. Because send header possible only if php installed as apache module.
Not so - I've used header('Location: http://www.xyz.com/'); with PHP
as a CGI binary under both Apache 1 and Apahce 2 without problems.
Pau
> the following error occuring in above line.
> Warning: Cannot modify header information - headers already sent by
> (output started at E:\PHPMySql scripts\bugtrack\connection.php:3)
> in E:\PHPMySql scripts\bugtrack\index.php on line 117
Have you got any space before you output anything to the
> Tell me how t use the rsync command with ssh and without prompting for password
A little bit of politeness (including the word 'please') would go a long way...
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Is it bad practice for a class to have a variable and method of the same name?
Well, it's a matter of opinion what is and isn't bad practice, but
personally I would never give a variable and a function the same name
- if only to avoid confusion (PHP shouldn't mind if you do so though).
Paul
--
I get bounces from both addresses mentioned, but not every time it
seems (must only happen why I reply to one of their questions and CC
them I think). I also used to get vacation messages off someone but
that's stopped now.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
> Tried installing PEAR. But "pear" is an unknown command after the
> install in my DOS box. There's no "pear.bat" file anywhere. There's an
> "pear.bat_old" file but no "pear.bat".
Last time I installed PHP on Win32, I didn't have to run any commands
to install PEAR. You just need to alter your i
> When I use the variable it shows the numbers like 192.168.10.25 (I know this
> is an internal network address, it is just for example.)
Use $_SERVER['REMOTE_HOST'] to get the hostname instead of the IP
address. This will only work if Apache has HostNameLookups enabled.
See:
http://uk.php.net/m
> The problem with that request is that some employers require you to have a
> vacation message set.
They can use another email account or mail from home then, it's not
like there's a shortage of free web-based email providers.
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Another thing I'd like to add: if you're on a public mailing list
don't leave a vacation message set when you go away, it's *extremely*
annoying.
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> The constructor for Content accepts an
> object ... why is &$db used instead of $db?
&$variable means to pass the variable by reference (as opposed to
passing by value, which is the default). Instead of making a copy of
the variable, you are telling $this->db to point to the same point in
memor
74 matches
Mail list logo