I just came across http://www.w3schools.com/php/php_file_upload.asp, and
tested it..
It works fine, when the file is uploaded via a form.
It does seem that the client-method might indeed play a role.
Here is my Java code for uploading the file ::
Shahina Rabbani wrote:
Hi,
I have done some modifications to the php source code and i tested it with
php bench and I observed some improvement.
I wanted to upstream these code changes to PHP community.
I searched the wed but i didnt find proper guide to upstream the code to
php.
Il Sun, 04 Aug 2013 20:47:37 +0430, Farzan Dalaee ha scritto:
Please use better quoting.
So best way is use a script(javascript) to send ajax to server every 5
second to check users is logged in or not? Is that okey?
It depends.
I want to write chat module like facebook and i need a
Il Sun, 04 Aug 2013 13:32:55 +0430, Farzan Dalaee ha scritto:
hi i want to write online user module for my site and i want to check
$_SESSION['userID'] to find all users id who loged in but when i echo
this code its return only current user detail how i can see all
sessions?
You can't.
or
On 04 Aug 2013 at 11:28, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
Like Matijn said, unless you're using some kind of client-side method to
continually poll the server, you can't know if they've just closed their
browser. There are Javascript events for exiting a page, but they don't
On Sun, 2013-08-04 at 13:27 +0100, Tim Streater wrote:
On 04 Aug 2013 at 11:28, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
Like Matijn said, unless you're using some kind of client-side method to
continually poll the server, you can't know if they've just closed their
browser.
On 8/2/2013 6:58 AM, Karl-Arne Gjersøyen wrote:
Hello again, folks!
I wish to delete records in my database that is older than 3 months.
$todays_date = date('Y-m-d');
$old_records_to_delete = ???
if($old_records_to_delete){
include(connect.php);
$sql = DELETE FROM table WHERE date =
On Jul 23, 2013, at 12:15 AM, elk dolk elkd...@yahoo.com wrote:
I study for MSc degree at university.
Are you in an advanced class?
Ok, congratulations -- you are studying for an MSc -- but that didn't answer
the question.
So, let me repeat the question:
[1] Are you in an advanced PHP
Csanyi Pal csanyi...@gmail.com wrote:
Tamara Temple tamouse.li...@gmail.com writes:
Csanyi Pal csanyi...@gmail.com wrote:
It is interesting.. that when I switch to English language for
Moodle installation ( on the web interface ), then I get not this
error, but if I switch back to
Tamara Temple tamouse.li...@gmail.com writes:
Csanyi Pal csanyi...@gmail.com wrote:
Tamara Temple tamouse.li...@gmail.com writes:
Csanyi Pal csanyi...@gmail.com wrote:
It is interesting.. that when I switch to English language for
Moodle installation ( on the web interface ), then I get
Csanyi Pal csanyi...@gmail.com wrote:
Tamara Temple tamouse.li...@gmail.com writes:
My ../apache2/conf.d directory is a symlink to the ../conf.d
directory. This might indeed be the problem.
Yes.
My system was Debian Squeeze and I just upgraded it to Debian
Wheezy. Some configuration
Adam Szewczyk adam...@gmail.com writes:
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote:
Hi,
I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP
extension: I can't enable it.
I have installed following packages related to this issue:
curl, libcurl3,
Tamara Temple tamouse.li...@gmail.com writes:
Csanyi Pal csanyi...@gmail.com wrote:
I have installed following packages related to this issue:
curl, libcurl3, libcurl3-gnutls, php5-curl.
All good.
I have in
/etc/php5/mods-available/curl.ini
; configuration for php CURL module
;
Csanyi Pal csanyi...@gmail.com wrote:
It is interesting.. that when I switch to English language for
Moodle installation ( on the web interface ), then I get not this error,
but if I switch back to Hungarian language for installation, I get it
again.
I am completely unfamiliar with Moodle,
Tamara Temple tamouse.li...@gmail.com writes:
Csanyi Pal csanyi...@gmail.com wrote:
It is interesting.. that when I switch to English language for
Moodle installation ( on the web interface ), then I get not this
error, but if I switch back to Hungarian language for installation, I
get it
On 4/11/2013 7:34 AM, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i need in each page to find a particular tag, let's say div
id=#submenu.../div (so based on its ID and tagname) and inside it
to insert my PHP/HTML code.
On 11.04.2013 14:14, Jim Giner wrote:
On 4/11/2013 7:34 AM, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i need in each page to find a particular tag, let's say div
id=#submenu.../div (so based on its ID and tagname) and
On 11.04.2013 13:34, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i need in each page to find a particular tag, let's say div
id=#submenu.../div (so based on its ID and tagname) and inside it
to insert my PHP/HTML code.
On 4/11/2013 10:48 AM, Rafnews wrote:
On 11.04.2013 13:34, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i need in each page to find a particular tag, let's say div
id=#submenu.../div (so based on its ID and tagname) and
On 11.04.2013 19:19, Jim Giner wrote:
On 4/11/2013 10:48 AM, Rafnews wrote:
On 11.04.2013 13:34, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i need in each page to find a particular tag, let's say div
On Thu, Apr 11, 2013 at 1:12 PM, Rafnews raf.n...@gmail.com wrote:
On 11.04.2013 19:19, Jim Giner wrote:
On 4/11/2013 10:48 AM, Rafnews wrote:
On 11.04.2013 13:34, Rafnews wrote:
Hi,
I would like to insert a piece of HTML code inside several pages.
all pages are differently named.
i
On 14/09/2012 20:08, Curtis Maurand wrote:
On 9/14/2012 7:20 AM, Ian wrote:
On 12/09/2012 14:53, Tonix (Antonio Nati) wrote:
Is there a way to force a PHP script to bind to a prefixed IP?
Actually, while you can assign more IPs to Apache for listening,
assigning domains to specific IPs, it
On Tue, Sep 18, 2012 at 9:15 AM, Ian php_l...@fishnet.co.uk wrote:
Hi Curtis,
I am suffering from sleep deprivation due to a new family addition and I
fail to see how your code will prevent a malicious user from binding to
an IP that I do not want him to. It appears to be an example of how
Il 18/09/2012 16:24, Daniel Brown ha scritto:
On Tue, Sep 18, 2012 at 9:15 AM, Ian php_l...@fishnet.co.uk wrote:
Hi Curtis,
I am suffering from sleep deprivation due to a new family addition and I
fail to see how your code will prevent a malicious user from binding to
an IP that I do not want
On 12/09/2012 14:53, Tonix (Antonio Nati) wrote:
Is there a way to force a PHP script to bind to a prefixed IP?
Actually, while you can assign more IPs to Apache for listening,
assigning domains to specific IPs, it looks like any PHP script can
freely choose which IP to bind. Instead I'd
On 9/14/2012 7:20 AM, Ian wrote:
On 12/09/2012 14:53, Tonix (Antonio Nati) wrote:
Is there a way to force a PHP script to bind to a prefixed IP?
Actually, while you can assign more IPs to Apache for listening,
assigning domains to specific IPs, it looks like any PHP script can
freely choose
Hi there
2012/8/31 Michelle Konzack linux4miche...@tamay-dogan.net
Hello Matijn Woudt,
Am 2012-08-30 16:44:53, hacktest Du folgendes herunter:
You could start by looking at the PHP SoapClient [1], which takes a
URI to a WSDL descriptor as argument. You can enter the URL to the
WSDL file
Hello Matijn Woudt,
Am 2012-08-30 16:44:53, hacktest Du folgendes herunter:
You could start by looking at the PHP SoapClient [1], which takes a
URI to a WSDL descriptor as argument. You can enter the URL to the
WSDL file there, like this:
$client = new
On 13/08/2012 06:01, Philip Amadeo Saeli wrote:
I'm administering WordPress sites under suPHP on a CentOS LAMP server
and would like to know how I can set PHP to keep the session files under
the WP user's dir without having do duplicate the entire php.ini file
for each WP site while still
* Ian php_l...@fishnet.co.uk [2012-08-13 09:50:51 +0100]:
On 13/08/2012 06:01, Philip Amadeo Saeli wrote:
I'm administering WordPress sites under suPHP on a CentOS LAMP server
and would like to know how I can set PHP to keep the session files under
the WP user's dir without having do
On 26/07/2012 13:37, Alex Nikitin wrote:
snip
Real question is
why in the world would you want to use PHP for this to begin with.
snip
Hi,
I cannot speak for the OP, but personally I am doing this so I can hook
up to a web application and re-use existing code.
Regards
Ian
--
--
PHP
On 26/07/2012 11:12, viper wrote:
hi all!
is it possible to write and read data on a COM or LPT port?
is there any function or class in PHP?
anyone has already done something similar?
thanks,
viper
Hi,
There is a class here:
php-serial
I think I've got it figured out now..
My solution is to async build up a flat list of items (from the
recursive object) to process first, then do another async loop (which
I'll build soon) to do the work per item, and when that's done,
replace the placeholder with the result.
This code works on
oops; printNextLevel : function (pvCmd) {
if (
typeof pvCmd.val == 'object'
typeof pvCmd.val.hmStats == 'object'
typeof pvCmd.val.hmData == 'object'
) {
//if (pvCmd.keyValueName pvCmd.keyValueName!='')
Michelle Konzack linux4miche...@tamay-dogan.net hat am 8. Mai 2012 um
20:25 geschrieben:
Hello Jim Lucas,
Am 2012-05-08 11:08:13, hacktest Du folgendes herunter:
Look into cURL http://php.net/curl
I know curl but I do not know, HOW to send the XML stuff.
$ch = curl_init ();
Hello Jim Lucas,
Am 2012-05-08 11:08:13, hacktest Du folgendes herunter:
Look into cURL http://php.net/curl
I know curl but I do not know, HOW to send the XML stuff.
The XML code is generated using a temp file for logging, which mean, I
can see any changes on the system...
Thanks, Greetings
On 05/08/2012 11:25 AM, Michelle Konzack wrote:
Hello Jim Lucas,
Am 2012-05-08 11:08:13, hacktest Du folgendes herunter:
Look into cURL http://php.net/curl
I know curl but I do not know, HOW to send the XML stuff.
The XML code is generated using a temp file for logging, which mean, I
can
Did you do a search of the php manual? I did one on hex and found
function bin2hex. Not sure how you mac address is actually built, but I
would try converting it char by char and see what the function returns.
Or maybe just pass the whole string to it.
Just a guess.
--
PHP General Mailing
Damn I'm an idiot... sorry :\
On Wed, Mar 21, 2012 at 9:34 AM, Jim Giner jim.gi...@albanyhandball.comwrote:
Did you do a search of the php manual? I did one on hex and found
function bin2hex. Not sure how you mac address is actually built, but I
would try converting it char by char and see
Not until you find out if it actually works. Then, maybe
David OBrien dgobr...@gmail.com wrote in message
news:CAF=yd_3rbr-gkonpjdbtogssiufwzeqteanqneproh6hhyu...@mail.gmail.com...
Damn I'm an idiot... sorry :\
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Can anybody help me in this regard?
On Mon, Feb 6, 2012 at 10:15 PM, Ali Asghar Toraby Parizy
aliasghar.tor...@gmail.com wrote:
Hi.
I'm developing a wsf/php web service. I'm using doc/lit messaging format
and every thing is OK.
But I don't know how i can debug my web services using eclipse.
在 2012-02-07二的 12:11 +0330,Ali Asghar Toraby Parizy写道:
Can anybody help me in this regard?
On Mon, Feb 6, 2012 at 10:15 PM, Ali Asghar Toraby Parizy
aliasghar.tor...@gmail.com wrote:
Hi.
I'm developing a wsf/php web service. I'm using doc/lit messaging format
and every thing is OK.
:(
Thanks for your help. Is it the only way?
On Tue, Feb 7, 2012 at 12:44 PM, Sharl.Jimh.Tsin amoiz.sh...@gmail.comwrote:
在 2012-02-07二的 12:11 +0330,Ali Asghar Toraby Parizy写道:
Can anybody help me in this regard?
On Mon, Feb 6, 2012 at 10:15 PM, Ali Asghar Toraby Parizy
Anyone?:-(
is my description too unclear?
On 11.12.2011, at 11:25, Nils Leideck wrote:
this is my first post to the PHP general list.
I have an issue with a variable variable
(http://php.net/manual/en/language.variables.variable.php)
My use case:
I have an array called $myArray.
On 12/13/2011 5:43 PM, Nils Leideck wrote:
Anyone?:-(
is my description too unclear?
On 11.12.2011, at 11:25, Nils Leideck wrote:
this is my first post to the PHP general list.
I have an issue with a variable variable
(http://php.net/manual/en/language.variables.variable.php)
My use
if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) {
echo p style=\color:red;font-weight:bold;margin-left:95px\;
echo Username must only contain A-Z and 0-9/p;
include(register.html);
exit;
}
I used the code above but I now get this error message
Warning: preg_match()
Il 22/09/2011 17:54, Eric ha scritto:
if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) {
Whi this '(.*)'?
For '.' and '..' problem use is_file().
Bye,
Marco
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 09/22/2011 10:54 AM, Eric wrote:
if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) {
echo p style=\color:red;font-weight:bold;margin-left:95px\;
echo Username must only contain A-Z and 0-9/p;
include(register.html);
exit;
}
I used the code above but I now
On 09/22/2011 09:24 PM, Eric wrote:
if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) {
echo p style=\color:red;font-weight:bold;margin-left:95px\;
echo Username must only contain A-Z and 0-9/p;
include(register.html);
exit;
}
I used the code above but I now
i mean my tables in Mysql
On 4/14/2011 6:16 PM, Mikhail S wrote:
How to write a PHP coding to list out all files and directories as links to
them?
This is somewhat similar to some index pages. When new file or folder is
added to the directory, HTML page should display the newly created
file/folder together with previous
On 04/14/2011 06:16 PM, Mikhail S wrote:
How to write a PHP coding to list out all files and directories as links to
them?
This is somewhat similar to some index pages. When new file or folder is
added to the directory, HTML page should display the newly created
file/folder together with
On Sat, 2011-04-16 at 15:02 -0500, Shawn McKenzie wrote:
On 04/14/2011 06:16 PM, Mikhail S wrote:
How to write a PHP coding to list out all files and directories as links to
them?
This is somewhat similar to some index pages. When new file or folder is
added to the directory, HTML
Mikhail S wrote:
How to write a PHP coding to list out all files and directories as links
to them?
This is somewhat similar to some index pages. When new file or folder is
added to the directory, HTML page should display the newly created
file/folder together with previous ones after it is
On Thu, 17 Feb 2011 06:56:33 +0700, Paul S wrote:
Can anyone please tell me how the addslashes output (note = Everyone''s a
card on the \earth) in the following example is possible. It is
addslashes output but this result is consistent with the output from
post when runtime is set: 1): a
Hello Tommy Pham,
Am 2010-12-29 10:38:39, hacktest Du folgendes herunter:
Phpclasses.org naturally may not have all possible solutions. Thus, the
existence of search engines like google. Try keywords 'php mime encode
gpg'.
Already done and it returns 56.000 results where the first 500
Hello David McGlone,
Am 2010-12-27 16:13:50, hacktest Du folgendes herunter:
foreach ($services as $service){
echo ulliraquo; a href=index.php?page=$service$service/a/li/ul;
}
Could anyone give me a hand? Obviously I don't understand arrays very well :-/
Maybe:
echo ulliraquo; a
On Monday, December 27, 2010 04:47:34 pm Michelle Konzack wrote:
Hello David McGlone,
Am 2010-12-27 16:13:50, hacktest Du folgendes herunter:
foreach ($services as $service){
echo ulliraquo; a
href=index.php?page=$service$service/a/li/ul; }
Could anyone give me a hand? Obviously
On Monday, December 27, 2010 04:53:08 pm David McGlone wrote:
On Monday, December 27, 2010 04:47:34 pm Michelle Konzack wrote:
Hello David McGlone,
Am 2010-12-27 16:13:50, hacktest Du folgendes herunter:
foreach ($services as $service){
echo ulliraquo; a
As I use outlook, I just hit Reply to Group.
--
João Cândido de Souza Neto
Sam Smith a...@itab.com escreveu na mensagem
news:aanlktikarnvhn-gzexe8qedngeewgqqgs7cpchzav...@mail.gmail.com...
If I just hit 'Reply' I'll send my reply to the individual who created the
message. If I hit 'Reply
On Sep 11, 2010, at 10:46 PM, Shawn McKenzie wrote:
It could however be a problem if there is a BOT or something that
continually submits to your page. In that case (and in general) I
would
recommend using a form token that helps guard against this.
I've seen this on some sites, but I'm
On 09/12/2010 02:38 AM, Tamara Temple wrote:
On Sep 11, 2010, at 10:46 PM, Shawn McKenzie wrote:
It could however be a problem if there is a BOT or something that
continually submits to your page. In that case (and in general) I would
recommend using a form token that helps guard against
On 09/11/2010 11:52 AM, Tamara Temple wrote:
I have a general question and am looking for best practices.
Suppose I present a user with a form for editing an entry in a table,
i.e., the form has filled in values from the existing table entry.
Now, suppose they click on 'submit' without
,
Andre
- Original message -
From: Nathan Rixham nrix...@gmail.com
To: tedd t...@sperling.com
Date: Thursday, August 19, 2010, 12:03:12 PM
Subject: [PHP] Re: How safe is a .htaccess file?
tedd wrote:
Hi gang:
The subject line says it all.
How secure is a .htaccess file to store
Message-
From: Jan G.B. [mailto:ro0ot.w...@googlemail.com]
Sent: Tuesday, August 24, 2010 9:09 AM
To: Andre Polykanine
Cc: Nathan Rixham; tedd; php-general@lists.php.net
Subject: Re: [PHP] Re: How safe is a .htaccess file?
2010/8/19 Andre Polykanine an...@oire.org:
Hello Nathan,
Sorry, could you
On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote:
Jan G.B. wrote:
The weakness of MD5 is mainly because MD5 collisions are possible.
That means, that different strings can have the same MD5-hash...
http://en.wikipedia.org/wiki/MD5#cite_note-1
It's worth noting that that
From: Peter Lind
On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote:
Jan G.B. wrote:
The weakness of MD5 is mainly because MD5 collisions are possible.
That means, that different strings can have the same MD5-hash...
http://en.wikipedia.org/wiki/MD5#cite_note-1
It's worth
2010/8/24 Bob McConnell r...@cbord.com:
From: Peter Lind
On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote:
Jan G.B. wrote:
The weakness of MD5 is mainly because MD5 collisions are possible.
That means, that different strings can have the same MD5-hash...
On 24 August 2010 16:25, Jan G.B. ro0ot.w...@googlemail.com wrote:
2010/8/24 Bob McConnell r...@cbord.com:
From: Peter Lind
On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote:
Jan G.B. wrote:
The weakness of MD5 is mainly because MD5 collisions are possible.
That means, that
2010/8/24 Peter Lind peter.e.l...@gmail.com:
On 24 August 2010 16:25, Jan G.B. ro0ot.w...@googlemail.com wrote:
2010/8/24 Bob McConnell r...@cbord.com:
From: Peter Lind
On 24 August 2010 15:43, Gary php-gene...@garydjones.name wrote:
Jan G.B. wrote:
The weakness of MD5 is mainly because
tedd wrote:
Hi gang:
The subject line says it all.
How secure is a .htaccess file to store passwords and other sensitive
stuff?
Can a .htaccess file be viewed remotely?
Semi-safe,
.htaccess is prevented from being served by configuration options (which
come as default), however these
/m_elensule
Facebook: http://facebook.com/menelion
- Original message -
From: Nathan Rixham nrix...@gmail.com
To: tedd t...@sperling.com
Date: Thursday, August 19, 2010, 12:03:12 PM
Subject: [PHP] Re: How safe is a .htaccess file?
tedd wrote:
Hi gang:
The subject line says it all
tedd wrote:
tedd wrote:
Hi gang:
The subject line says it all.
How secure is a .htaccess file to store passwords and other sensitive
stuff?
Can a .htaccess file be viewed remotely?
Semi-safe,
.htaccess is prevented from being served by configuration options
(which come as default),
On Mon, Jul 19, 2010 at 9:45 AM, Gary wrote:
How can I get calls to scoket_read to timeout if the server stops
responding?
Sorry. Found it:
socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array('sec' = 1,
'usec' = 0));
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
From: Ashley Sheridan
To: Manuel Lemos
Cc: cr.vege...@gmail.com ; php-general@lists.php.net
Sent: Saturday, July 03, 2010 1:22 PM
Subject: Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?
On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote:
Hello,
on 07/01/2010 10:34
On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote:
Hello,
on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following:
Hi List,
I am working on generated emails, using the mail() function.
Works fine, but when including characters like #8743 (= and;) or #8744;
(= or;)
in
Hello,
on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following:
Hi List,
I am working on generated emails, using the mail() function.
Works fine, but when including characters like #8743 (= and;) or #8744; (=
or;)
in the message, these characters are displayed as ? in the emails.
On 5/21/2010 5:56 AM, cr.vege...@gmail.com wrote:
How do I update an array key without disturbing the element order ?
Suppose an existing array(FR, values ...)
where I want to change 0 = FR to country = FR
and keep the original element order.
TIA, Cor
I short on time; but, it seems
Deva wrote:
Hi,
If I do refresh after submission of a form, records are getting stored
multiple times.
I have two pages. /submission-form/ and /thank-you/
I was trying header('Location: /thank-you/'); on submission-form page after
successful validation and insertion into db. Still if I do
Hello,
on 04/16/2010 08:50 AM Paulo-WORK said the following:
Hello and thanks for any replies that this message may get.
I have a issue to solve regarding PHP.
My website relies heavlly on jquery and does not dowgrade properly.
I use codeigniter framework as this website has a backend .
Is
thanks for all your reply, since all these classes have main entry in
cron.php, I have moved validation there.
Richard, your solution seems interesting, maybe I can use it later :)
On Thu, Apr 15, 2010 at 4:46 AM, Richard Quadling
rquadl...@googlemail.com wrote:
On 13 April 2010 17:25, Ryan Sun
On 13 April 2010 17:25, Ryan Sun ryansu...@gmail.com wrote:
this is a class for corntab job, and the validation is very simple,
just check if the status of user is active when cron job runs, if not,
throws an exception, other developers won't want to overwrite this
validation.
which method of
Ryan Sun wrote:
As we all know, __call() can overload non-accessible methods,
eg.
Class User
{
public function __call($name, $args)
{
//validate user
$this-_validate();
$this-_{$name}($args);
}
private function _validate()
{
I'm writing an abstract parent class which only contain a validate
method, other developers will extend this class and add many new
public methods, every new methods will need to perform a validate
first. Won't it be good if validate get called automatically before
every method call so that they
On Tue, 2010-04-13 at 12:03 -0400, Ryan Sun wrote:
I'm writing an abstract parent class which only contain a validate
method, other developers will extend this class and add many new
public methods, every new methods will need to perform a validate
first. Won't it be good if validate get
Ryan Sun wrote:
I'm writing an abstract parent class which only contain a validate
method, other developers will extend this class and add many new
public methods, every new methods will need to perform a validate
first. Won't it be good if validate get called automatically before
every
this is a class for corntab job, and the validation is very simple,
just check if the status of user is active when cron job runs, if not,
throws an exception, other developers won't want to overwrite this
validation.
which method of user class will be called is configurable via website
backed
You should be able to get the local time for Sweden by adding
?php
date_default_timezone_set('Stockholm/Sweden');
echo date('l F jS, o');?
However, I dont know about getting the local time of someone visiting from a
different time zone.
gary
saeed ahmed saeed@gmail.com wrote in
Daniel P. Brown wrote:
(Typing from the DROID, so forgive the top-posting.)
Shawn, would you take a few moments to submit this as a bug at
http://bugs.php.net/? I know you well enough that, if you say the docs suck,
they probably do.
On Jan 29, 2010 10:47 PM, Shawn McKenzie
On Sat, Jan 30, 2010 at 12:18, Shawn McKenzie nos...@mckenzies.net wrote:
Done. Thanks Dan. http://bugs.php.net/bug.php?id=50886
Thank you, sir. I thanked you on Facebook when I saw the report
come in, but wanted to thank you properly here as well.
--
/Daniel P. Brown
Mari Masuda wrote:
Has anyone ever successfully used php://memory before? If so, what
can I do to use it in my code? Thank you.
No, but I was intrigued to try it, so I tested this:
$text = 'Some text.';
file_put_contents('php://memory', $text);
echo file_get_contents('php://memory');
And
On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie nos...@mckenzies.netwrote:
Mari Masuda wrote:
Has anyone ever successfully used php://memory before? If so, what
can I do to use it in my code? Thank you.
No, but I was intrigued to try it, so I tested this:
$text = 'Some text.';
Eric Lee wrote:
On Sat, Jan 30, 2010 at 9:00 AM, Shawn McKenzie nos...@mckenzies.netwrote:
Mari Masuda wrote:
Has anyone ever successfully used php://memory before? If so, what
can I do to use it in my code? Thank you.
No, but I was intrigued to try it, so I tested this:
$text = 'Some
(Typing from the DROID, so forgive the top-posting.)
Shawn, would you take a few moments to submit this as a bug at
http://bugs.php.net/? I know you well enough that, if you say the docs suck,
they probably do.
On Jan 29, 2010 10:47 PM, Shawn McKenzie nos...@mckenzies.net wrote:
Eric Lee wrote:
Hi,
Can anyone point me to tutorials on how to change a filename for each
download? My goal is to give the downloader a random name for a picture or a
document, so he will never know what the original filename is.
Try adding a Content-Disposition header:
?php
header('Content-disposition:
I am on the top of the world! Borlange University wrote:
hello, i can obnot retrieve a select ject from div innerHTML.
what i want to do is that when a page is loaded, first selector,say #1,
would be shown in the first div by sending a request.then i choose one
option from #1, fire change event
Daevid Vincent wrote:
BTW, I want to use GET so that the page can be bookmarked for future
searches of the same data (or modified easily with different dates, etc.),
so that's why I don't use POST.
to do as you say on the clientside you'd probably be best to write a
short js script to build
Dong Wang wrote:
I am trying to use PHP as backend, which communicate with apache-2.3's
mod_proxy_fcgi
But I have noticed that the SCRIPT_FILENAME has been changed to
proxy:balancer://xx, it cann't be recognized by the remote PHP
backend. So the request failed.
In my opinion, the
Peter wrote:
Hi All,
I want to call dll in javascript
I tried the following script, but i got the error message 'ActiveXObject
is undefined'
(Note : i have the feedback.dll in the same path only)
HTML
HEAD
script type='text/javascript' language='javascript'
function
ur... you mean use this in the php script?
but the php-cgi still doesn't know which scriptfile to execute, isn't it?
php-cgi tries to find the aimed script using SCRIPT_FILENAME, but this
variable is changed by the mod_proxy_fcgi, so php-cgi can not find the real
scriptfile, that's the point, I
1 - 100 of 1332 matches
Mail list logo