php-general Digest 20 Aug 2009 09:28:55 - Issue 6295
Topics (messages 296985 through 297002):
Re: How to make sure that the target file to read is notunder writing
by others?
296985 by: Clancy
Re: PHP/Ajax Framework - Call for Developers Testers
296986 by: Raymond
2009/8/19 Per Jessen p...@computer.org:
Jim Lucas wrote:
[snip]
I probably wouldn't have chosen PHP for the first one, but there's no
reason it shouldn't work. For the second one, did you mean to
write serial port? That's a bit of a different animal, I'm not sure
how far you'll get with
Hi,
Please help as I have downloaded a php website for my client which is
developed using model view controller pattern. Now when I am accessing this
site locally it is not showing any thing. Please tell me the what's the
problem
Thanks,
Sumit Sharma
-Original Message-
From: Ben Dunlap [mailto:bdun...@agentintellect.com]
Sent: 19 August 2009 08:18 PM
To: Angelo Zanetti
Cc: php-general@lists.php.net
Subject: Re: [PHP] SESSIONS lost sometimes
We have a server with a site that does some XML calls. After lots of
testing
I have found
Since we are on the subject: I have the following similar problem:
When testing page on internet explorer, I find that one tab's variables can
affect another tab's variables. Thus when having the same web-site open and
using SESSION variables but for different users, Internet explorer can
become
Sumit Sharma wrote:
Hi,
Please help as I have downloaded a php website for my client which is
developed using model view controller pattern. Now when I am accessing this
site locally it is not showing any thing. Please tell me the what's the
problem
Thanks,
Sumit Sharma
It should at
Good questions, I need to talk to the client to determine the exact
requirements and
specifications. Thank you every one for helping me to figure out the
potential db-scheme
and for opening my view with your answers :)
On Wed, Aug 19, 2009 at 10:39 PM, Bob McConnell r...@cbord.com wrote:
From:
-Original Message-
From: Leon du Plessis [mailto:l...@dsgnit.com]
Sent: 20 August 2009 09:44 AM
To: php-general@lists.php.net
Subject: RE: [PHP] SESSIONS lost sometimes
Since we are on the subject: I have the following similar problem:
When testing page on internet explorer, I find that
It's not an issue, it's a feature.
Thanks Arno...but it is a pain also.
If I work with user A in Tab1 (window1), I want to work with user B
separately in Tab2. When user in Tab2 logs off, I still want user A to work,
and not suddenly have to re-login. Same with bank. If I work with my company
On Thu, Aug 20, 2009 at 09:44:02AM +0200, Leon du Plessis wrote:
Since we are on the subject: I have the following similar problem:
When testing page on internet explorer, I find that one tab's variables can
affect another tab's variables. Thus when having the same web-site open and
using
Leon du Plessis wrote:
It's not an issue, it's a feature.
Thanks Arno...but it is a pain also.
If I work with user A in Tab1 (window1), I want to work with user B
separately in Tab2. When user in Tab2 logs off, I still want user A to work,
and not suddenly have to re-login. Same with bank.
On Thu, Aug 20, 2009 at 10:26:35AM +0200, Leon du Plessis wrote:
It's not an issue, it's a feature.
Thanks Arno...but it is a pain also.
If I work with user A in Tab1 (window1), I want to work with user B
separately in Tab2. When user in Tab2 logs off, I still want user A to work,
and not
It'd make sense for things to run this way, I think. After all, I'd
find it quite confusing if I log into Google Docs, open a document (by
default, it opens in a new tab) and I had to log in yet again to be able to
edit it.
Yes. I agree. But in this case the Tab being opened is used with the
That is how I know browsers to work, yet for a while the bahaviour has
changed. The question in light of this then is, should a new browser or tab
not open a new PHP SESSION ID. Session ID's should be kept if called from
existing pages or ID's? But new pages has no parent? Just wondering.
Hi all,
The site I have download was developed using cake php. Now when trying to
access the website it is showing a blank page. As Sudheer suggested I went
to error log and noted down the errors there, which are as follows:
[Thu Aug 20 14:10:16 2009] [error] [client 127.0.0.1] File does not
On Wed, Aug 19, 2009 at 02:59:43PM -0400, Floyd Resler wrote:
Does anyone know how I can find the width of a PDF in PHP?
Would this help? Search for width within the page.
http://www.php.net/manual/en/ref.pdf.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Just a re-iteration on the problem:
Browser 1 has user A details
Browser 2 has user B details
User B logs off, then user A is suddenly in logged of status also.
The method used to destroy the session is:
// Unset all of the session variables.
$_SESSION = array();
// Finally, destroy
That said, I would recommend binding parameters if you can. It's a
cleaner way of separating the logic of a query from its data, and
theoretically more reliable than mysql_real_escape_string():
http://en.wikipedia.org/wiki/SQL_injection#Parameterized_statements
I fail to understand
Thanks Paul, that was a much better explanation than the one I was
attempting. I'm guessing the OP was being thrown off by the colons in
the SELECT statement above. I can see how those could look like
comments to someone not familiar with PDO and named parameters.
It wasn't the colons being
On Thu, 2009-08-20 at 10:50 +0200, Leon du Plessis wrote:
It'd make sense for things to run this way, I think. After all, I'd
find it quite confusing if I log into Google Docs, open a document (by
default, it opens in a new tab) and I had to log in yet again to be able to
edit it.
Yes. I
On Wed, 2009-08-19 at 23:00 -1000, Sumit Sharma wrote:
Hi all,
The site I have download was developed using cake php. Now when trying to
access the website it is showing a blank page. As Sudheer suggested I went
to error log and noted down the errors there, which are as follows:
[Thu Aug 20
On Wed, Aug 19, 2009 at 11:00:46PM -1000, Sumit Sharma wrote:
Hi all,
The site I have download was developed using cake php. Now when trying to
access the website it is showing a blank page. As Sudheer suggested I went
to error log and noted down the errors there, which are as follows:
[Thu
Thanks Ashley,
I just want to iterate again that when a new page is opened by another
existing page in a new browser or Tab, the session_id is already created and
therefore the current way browsers work is in no way compremised. The new
browser/tab would receive the session id along with GET or
On Thu, 2009-08-20 at 12:04 +0200, Leon du Plessis wrote:
Thanks Ashley,
I just want to iterate again that when a new page is opened by another
existing page in a new browser or Tab, the session_id is already created and
therefore the current way browsers work is in no way compremised. The
Thanks Ashley. Will implement if the need arise again..
By limitation I actually meant annoyance.
Limitation was the wrong word to use.
(I think all browsers has something great and something not so great)
:-)
Greetings
-Original Message-
From: Ashley Sheridan
Hi Leon and all.
LEON you are misunderstanding how the sessions work. Also please start your
own thread and don't hijack mine.
To the rest that replied. Thanks, I am still stuck with the problem I have
asked the hosting company to check the storage capacity and also any other
issues with the
On Thu, Aug 20, 2009 at 12:04:08PM +0200, Leon du Plessis wrote:
Thanks Ashley,
I just want to iterate again that when a new page is opened by another
existing page in a new browser or Tab, the session_id is already created and
therefore the current way browsers work is in no way
On 8/19/09 9:56 PM, Clancy clanc...@cybec.com.au wrote:
I gather from this discussion that PHP allows two users to open a file for
R/W? I had assumed it wouldn't.
i think php does allow this. but i'm not sure all file systems do.
--
PHP General Mailing List (http://www.php.net/)
To
Hi Angelo,
No need to be nasty and touchy. If you have done trouble to read I have
closed the discussion in a prior listing and referred back to your original
thread. thanks
-Original Message-
From: Angelo Zanetti [mailto:ang...@zlogic.co.za]
Sent: 20 August 2009 01:21 PM
To: 'Leon du
Getting RSS Feeds is going really good right now, what amazing technology :)
http://www.msnnick.net Nickname Msn
Morris-25 wrote:
Hi,
I am trying to write a programme to read a rss xml file.
...
media:content url=*exampe.jpg* ...
...
scan anyone tell me how to get the url
Leon,
Sessions are used on a per-domain basis. So, no matter how many
windows or tabs you have open for mydomain.com it will be the same
session for all. Having a different session start up for each window
or tab would be a major pain. If you needed to keep track of a user
ID, for
-Original Message-
From: Tom Worster [mailto:f...@thefsb.org]
Sent: 20 August 2009 01:28 PM
To: Clancy; php-general@lists.php.net
Subject: Re: [PHP] How to make sure that the target file to read is not
under writing by others?
On 8/19/09 9:56 PM, Clancy clanc...@cybec.com.au wrote:
I
On Thu, Aug 20, 2009 at 02:34:54PM +0200, Angelo Zanetti wrote:
Hi Leon,
No harm intended :) Just thought that people were missing my post now and
only answering yours.
Angelo, excuse me if I'm bringing up something very basic, but I'm new
to this. Just trying to help.
I imagine
Hi Leon,
No harm intended :) Just thought that people were missing my post now and
only answering yours.
Anyways hope your issue got resolved.
Angelo
-Original Message-
From: Leon du Plessis [mailto:l...@dsgnit.com]
Sent: 20 August 2009 01:46 PM
To: php-general@lists.php.net
No problem! Thx
-Original Message-
From: Angelo Zanetti [mailto:ang...@zlogic.co.za]
Sent: 20 August 2009 02:35 PM
To: 'Leon du Plessis'; php-general@lists.php.net
Subject: RE: [PHP] SESSIONS lost sometimes
Hi Leon,
No harm intended :) Just thought that people were missing my post now
The original problem..
server is losing session variables.
I dont think PHP is not good at unset() ing variables while the script
is executing.
general logger will be of use in this case (especially when cant
reproduce the problem every time). PEAR, Zend, FirePHP, files... any
thing will do...
On Thu, 2009-08-20 at 18:38 +0530, kranthi wrote:
The original problem..
server is losing session variables.
I dont think PHP is not good at unset() ing variables while the script
is executing.
general logger will be of use in this case (especially when cant
reproduce the problem every
offer SEO services. It is not overwhleming, but about 5 a month.
What is the best way to stop this.
Thanks
Gary
__ Information from ESET Smart Security, version of virus signature
database 4351 (20090820) __
The message was checked by ESET Smart Security.
http
It is just strange that I have this condition now...maybe I missed it a
year ago ?
Having a different session start up for each window for tab would be a
major pain.
Why?
People must please try and understand what I mean by NEW. It does not apply
to windows/tabs being opened from a link or
I imagine redirects couldn't be the cause of the problem, right?
Thanks, this is really a life saver.. I never used
session_write_close() before any redirects...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 2009-08-20 at 15:16 +0200, Leon du Plessis wrote:
It is just strange that I have this condition now...maybe I missed it a
year ago ?
Having a different session start up for each window for tab would be a
major pain.
Why?
People must please try and understand what I mean by
addresses are used in the input field and they all
offer SEO services. It is not overwhleming, but about 5 a month.
What is the best way to stop this.
Thanks
Gary
__ Information from ESET Smart Security, version of virus signature
database 4351 (20090820
this.
Thanks
Gary
__ Information from ESET Smart Security, version of virus
signature database 4351 (20090820) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
this might be some help...
http://stackoverflow.com/questions/283087/php-mysql-sql-parser-insert-and-update
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and they all
offer SEO services. It is not overwhleming, but about 5 a month.
What is the best way to stop this.
Thanks
Gary
__ Information from ESET Smart Security, version of virus
signature database 4351 (20090820) __
The message was checked by ESET Smart Security.
http
On Thu, Aug 20, 2009 at 10:25:15AM -0400, Gary wrote:
There is plenty of commonaltiy in the submissions, all ip addresses start
with an 122. They all offer SEO services, but change the wording, so if I
tried to bannish any submissions with Search Engine, Ranking, Google etc,
they would
On Thu, 20 Aug 2009 09:11:47 -0400
Gary gwp...@ptd.net wrote:
I have a client with a form on his site and he is getting spammed.
It appears not to be from bots but human generated. While they are
coming from India, they do not all have the same IP address, but they
all have gmail addresses,
Lars Torben Wilson wrote:
2009/8/19 Per Jessen p...@computer.org:
Jim Lucas wrote:
[snip]
I probably wouldn't have chosen PHP for the first one, but there's no
reason it shouldn't work. For the second one, did you mean to
write serial port? That's a bit of a different animal, I'm not
.
What is the best way to stop this.
Thanks
Gary
__ Information from ESET Smart Security, version of virus signature
database 4351 (20090820) __
The message was checked by ESET Smart Security.
http://www.eset.com
--
PHP General Mailing List (http://www.php.net
On Wed, Aug 19, 2009 at 8:57 PM, Raymond Irving xwis...@yahoo.com wrote:
Hi Nathan,
Many thanks for the feedback. There many other useful features built into
the API but my favorite is the embedded feature.
You can see a live example here:
http://raxanpdi.com/shoutbox-embedded-example.html
services. It is not overwhleming, but about 5 a month.
What is the best way to stop this.
Thanks
Gary
__ Information from ESET Smart Security, version of virus
signature database 4351 (20090820) __
The message was checked by ESET Smart Security.
http://www.eset.com
Leon,
This is really just a function of the browser. When a session cookie is
created, if the browser is setup for a single instance, that's the session
cookie it'll use for *any* request to that domain. This functions differently
depending on what browser you're using.
For example:
Hi Tedd,
In your .htacess file add this:
# handler for phpsuexec. -- makes following prefixes considered for
php
FilesMatch \.(htm|html|pl)$
SetHandler application/x-httpd-php
/FilesMatch
Thanks for the code. I placed it in the .htaccess file for the
output templates, but
I haven't finished reading it yet - but this looks great - Thank you so
much!
On Thu, Aug 20, 2009 at 4:36 PM, kranthi kranthi...@gmail.com wrote:
this might be some help...
http://stackoverflow.com/questions/283087/php-mysql-sql-parser-insert-and-update
--
Use ROT26 for best security
Hi all,
I'm using this code to display the current time for our location on
our website:
?php
date_default_timezone_set('America/Los_Angeles');
$theTimeIs = getdate(time());
$theHour = $theTimeIs['hours'];
$theMinute = $theTimeIs['minutes']; // make
You can use sprintf or str_pad to fill in with zeros, with sprintf you
can do this:
echo sprintf('%02d', 5);
That will print the string 05.
Jonathan
On Thu, Aug 20, 2009 at 6:27 PM, sono...@fannullone.us wrote:
Hi all,
I'm using this code to display the current time for our location
On Thu, 2009-08-20 at 14:27 -0700, sono...@fannullone.us wrote:
Hi all,
I'm using this code to display the current time for our location on
our website:
?php
date_default_timezone_set('America/Los_Angeles');
$theTimeIs = getdate(time());
$theHour =
On Aug 20, 2009, at 2:38 PM, Ashley Sheridan wrote:
What's wrong with using the date() function? You can have it output
any
sort of format you wish. So, getting a 2 digit time in
hours:minutes:seconds you would put:
date(H:i:s);
Thanks, Ash. I had tried that before but I couldn't find a
On Aug 20, 2009, at 2:34 PM, Jonathan Tapicer wrote:
You can use sprintf or str_pad to fill in with zeros, with sprintf
you can do this:
echo sprintf('%02d', 5);
Thanks, Jonathan! I learned two new functions today! Both work
great but I think I like sprintf for this application
Anybody know of any tricks to make an HTML login form that sends the
credentials via HTTP AUTH?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: sono...@fannullone.us [mailto:sono...@fannullone.us]
Sent: Thursday, August 20, 2009 3:53 PM
To: Jonathan Tapicer; PHP General List
Subject: Re: [PHP] Displaying 2 digit minutes/seconds
On Aug 20, 2009, at 2:34 PM, Jonathan Tapicer wrote:
You can
I've written an application that depends heavily on Tidy for cleaning up user
inputed text.
Unfortunately, some shared hosts won't install the extension for my clients.
Is there a way I can install a stand alone version using FTP with access only in
a directory where my program resides. The
Hi Nathan,
I agree with you, and I believe that there are many persons who don't like the
idea of hosting all their applications on a third party server. IMO there are
some advantages and disadvantages to doing so but that's a discussion in itself.
The good thing about Raxan's Embeddable Apps
Hi,
I encounter a funny limitation here with switch case as below:
The value for $sum is worked as expected for 1 to 8, but not for 0.
When the $sum=0, the first case will be return, which is sum=8.
Is there any limitation / rules for switch case? Thanks for advice!
Keith
$sum=0;
switch($sum)
64 matches
Mail list logo