On Thu, Jun 7, 2012 at 5:15 PM, Tedd Sperling wrote:
> Hi Daniel and gang:
>
> Considering I'm never afraid to show my ignorance, please review the
> following example.
>
> Because of the way I normally use sessions and considering this way works for
> me, I thought I knew what sessions were abo
On Jul 12, 2011, at 3:10 PM, Thomas Dineen wrote:
> Gentle People:
>
>Sorry if this appears off topic but I am not sure where to post the
> question. Please do not get mad, just recommend a better venue!
>
>Currently I am quite experienced with C and learning C++ but I have
> never writ
>
> Also I have successfully experimented with Apache and PHP but have not yet
> identified graphics applications for this venue either! Ideas?
>
You may want to look into PHP:GD
link to manual: http://php.net/manual/en/book.image.php
HTH,
Chris
--
PHP General Mailing List (http://www.php.n
On Sun, Oct 31, 2010 at 13:50, Ryan Sun wrote:
> which user it is executed as when request a php script on browser?(suppose
> we are on a shared LAMP hosting)
Find out:
--
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/
--
There isn't a php user. If php scripts are executed through the web server,
they belong to the server. If they are cli scripts, then they belong to the
user that executed them, or the user the process that executed them is running
as.
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply mes
If its Apache on Linux (as most hosting will be) then the user will generally
be either apache, www, or http.
Thanks,
Ash
http://www.ashleysheridan.co.uk
Jason Pruim wrote:
On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote:
Otherwise, is there any reason you're not just doing something
like the following?
Because I came as a HTML person into PHP and didn't even think about
being able to include my headers, footers, nav etc in the php
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
> On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote:
>
> > On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
> >>
> >> On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote:
> >>
>
> Unless I use sessions maybe? Could I write the sort order
On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote:
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote:
Unless I use sessions maybe? Could I write the sort order into a
session variable and have that change? Or did I completely
misunderstand w
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
> On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote:
>
> >>
> >> Unless I use sessions maybe? Could I write the sort order into a
> >> session variable and have that change? Or did I completely
> >> misunderstand what sessions are used for? :)
> >
On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote:
Unless I use sessions maybe? Could I write the sort order into a
session variable and have that change? Or did I completely
misunderstand what sessions are used for? :)
You could definitely do it with sessions if you wanted, but you
won
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
> On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote:
>
> > On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
> >> Hey Everyone,
> >>
> >> Is it possible to have variables affect the database results of an
> >> included php page in a shtml page? L
On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote:
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
Hey Everyone,
Is it possible to have variables affect the database results of an
included php page in a shtml page? Let me try and clear that up...
index.shtml?order=a < that does not res
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
> Hey Everyone,
>
> Is it possible to have variables affect the database results of an
> included php page in a shtml page? Let me try and clear that up...
>
> index.shtml?order=a < that does not resort the database results
> index.php?order=a
On Mon, May 28, 2007 6:46 pm, Davis Chan wrote:
> Hi! I am developing a site with some authenticated users only
> features.
> I would like to know if the following is true:
>
> 1. script for login process is located on a SSL-enabled server, so
> usernames and passwords are encrypted.
> 2. upon succ
On Mon, April 10, 2006 1:48 pm, Eric Butera wrote:
> Thank you for your response. I did read that in the manual, I
> promise.
> That is why I included the sleep function in my example. Shouldn't
> the
> sleep function count as execution time? One thing I didn't metion
> earlier,
> for the sake o
On Monday 10 April 2006 11:48, Eric Butera wrote:
> Ray,
>
> Thank you for your response. I did read that in the manual, I promise.
> That is why I included the sleep function in my example. Shouldn't the
> sleep function count as execution time? One thing I didn't metion earlier,
> for the sake
On 4/10/06, Ray Hauge <[EMAIL PROTECTED]> wrote:
>
> On Monday 10 April 2006 11:30, Eric Butera wrote:
> > Dear List,
> >
> > I have been working with a PHP script that curls a file from another
> > server. This works fine on my local machine, but not on our live
> server.
> > The script takes abo
On Monday 10 April 2006 11:30, Eric Butera wrote:
> Dear List,
>
> I have been working with a PHP script that curls a file from another
> server. This works fine on my local machine, but not on our live server.
> The script takes about 400 seconds to execute completely. I was under the
> impressi
On Tue, November 8, 2005 3:48 pm, Tony Di Croce wrote:
> Oops!
>
> I meant SESSION[]! Thanks guys...
>
> So then the question becomes, is storing stuff in SESSION[] insecure?
> Is
> their any point to encrypting what a store in SESSION[]?
On a shared server, this would be a really Good Idea (tm) i
On Tue, November 8, 2005 3:10 pm, Tony Di Croce wrote:
> Are variables that are stored in the $_POST[] array ever communicated
> to the
> browser?
>
> Im using PHP sessions, and I store lots of variables in $_POST[]... If
> I use
> $_POST[] to communicate variables from 1 php script to another, is
Tony Di Croce wrote:
Are variables that are stored in the $_POST[] array ever communicated
to the browser?
It's quite the opposite. $_POST is populated with data from the content
of a POST request sent by the browser.
Im using PHP sessions, and I store lots of variables in $_POST[].
Can y
wayne wrote:
On Mon, 2005-08-08 at 13:48 +0200, Jochem Maas wrote:
wayne wrote:
On Sun, 2005-08-07 at 23:14 +0200, Jochem Maas wrote:
Hi Jochem,
Hi Jochem,
Would you mine if I send you the beginning part of the
php script,about 20 lines of code, to see if I'm missing
something?
I would
Well if you're using 4.3.10 as you said in your other post then
__autoload is not supported anyway. A grep on autoload would've turned
it up.
I'm assuming you've tried a grep for "CFG" to find the declaration?
Jasper
wayne wrote:
Hi Jasper,
I thought about this and so I did a grep on "autol
Hi Jasper,
I thought about this and so I did a grep on "autoload"
and came up empty. Is there a different way of checking
for the magic function?
Thanks
On Mon, 2005-08-08 at 08:24 +1200, Jasper Bryant-Greene wrote:
> Or if it's PHP 5 they might be using an __autoload() magic function
> which get
Hi Marco,
The version of php I have is 4.3.10. Is there something
similar to the below example in the version I have?
Thanks.
On Sun, 2005-08-07 at 16:39 -0400, Marco Tabini wrote:
> On 8/7/05 4:24 PM, "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote:
>
> > Or if it's PHP 5 they might be using a
wayne wrote:
First, I'm new to PHP. I have a script that
has a piece of code that looks like this -
require_once($CFG->wwwroot . '/lib/mylib.php');
My question is this, I'm trying to find out
how the class $CGF was initiated.There are no
include or require statement before the statement.
Is $CFG
On 8/7/05 4:24 PM, "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote:
> Or if it's PHP 5 they might be using an __autoload() magic function
> which gets called whenever a class that isn't declared is instantiated.
> That function could be require()ing another file.
Well, if it is PHP 5, then you c
Or if it's PHP 5 they might be using an __autoload() magic function
which gets called whenever a class that isn't declared is instantiated.
That function could be require()ing another file.
Jasper
Chris wrote:
That isn't created by PHP, it must be declared in the code somewhere.
Maybe there
That isn't created by PHP, it must be declared in the code somewhere.
Maybe there is an auto_prepend_file set?
http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
Chris
wayne wrote:
First, I'm new to PHP. I have a script that
has a piece of code that looks like this -
require_onc
: Thursday, December 09, 2004 9:15 AM
To: Eakin, W
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] a question about the PHP manual
Eakin, W wrote:
> Hello,
> As I'm studying, and learning, PHP, I use certain resources again
> and again. A few books I've bought, some web sites
Eakin, W wrote:
> Hello,
> As I'm studying, and learning, PHP, I use certain resources again
> and again. A few books I've bought, some web sites, this mailing list,
> and the PHP manual. I've taken the often repeated 'RTFM' to heart, and I
> attempt to google or RTFM before considering a post
On Thursday 09 December 2004 1:56 pm, Eakin, W wrote:
> I've noticed that most of the replies to the questions on this list,
> when they refer to a part of the manual, point to the same few sections
> over and over. Such as arrays, strings, sessions, objects, and a few
> others. My question is thi
At 09:56 AM 12/9/2004, Eakin, W wrote:
>Hello,
>As I'm studying, and learning, PHP, I use certain resources again and
> again. A few books I've bought, some web sites, this mailing list, and
> the PHP manual. I've taken the often repeated 'RTFM' to heart, and I
> attempt to google or RTFM bef
At 09:56 AM 12/9/2004, Eakin, W wrote:
Hello,
As I'm studying, and learning, PHP, I use certain resources again and
again. A few books I've bought, some web sites, this mailing list, and
the PHP manual. I've taken the often repeated 'RTFM' to heart, and I
attempt to google or RTFM before cons
> > Anything that doesn't use the word 'flava' :)
> What if I name all my variables after Rocky characters? ;)
Hey! You stole my method! Actually, mine are Rocky and
Bullwinkle, but still! :p
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
Jay Blanchard wrote:
Anything that doesn't use the word 'flava' :)
What if I name all my variables after Rocky characters? ;)
Now for the real can of worms...
On odd lines, I use spaces, and on even lines, I use tabs.
The above is an attempt at humor.
The below is an attempt at addressing the ques
Chapter 1 of Advanced PHP Programming, by George Schlossnagle, ISBN
0-672-32561-6.
http://www.blueshoes.org/en/developer/coding_guidelines/
> -Original Message-
> So I'm sitting here writing code and I'm thinking about my own style of
> writing
> and formatting my php code(I use a mix of
[snip]
So I'm sitting here writing code and I'm thinking about my own style of
writing
and formatting my php code(I use a mix of the pear standard and my own
flava).
What else do you guy's use?
What style should I base my code formatting on in order to be accepted
widely by
the php community at la
How are you resolving hostnames? Are relevant IPs/Hostnames in your hosts
file? Does the local machine have mynotebook mapped to 127.0.0.1?
> -Original Message-
> A curious thing has been happening. When I run the PHP script on my
> machine using localhost, the script executes perfectl
Ryan A wrote:
Hi,
I installed OSCommerce for a client quite some time back and everything was
running smoothly.
When the client needed to make changes she used to tell me and I used to do
it by ftping in, dl'ing the
files, making changes, uploading them.
Now she found that in the control panel you
http://it.php.net/manual/en/function.fwrite.php
On Sun, 2003-11-02 at 19:25, Yeung Koala wrote:
> Hi,
>
> Silly question of beginner:
> Is is possible to write a script to create and write a text file on server?
> How?
>
>
> P.S. Thanks Simon Stiefel for the "chomp" stuff
>
>
I think you mean:
$_SESSION['eventid'] = 'arma2';
vs
$eventid = 'arma2';
session_register('eventid');
I'd advise the first, unless you need to ensure backwards compatibility with
PHP < 4.1
Justin
on 22/06/03 4:41 PM, nabil ([EMAIL PROTECTED]) wrote:
> what is the diffirent between :
> /
what is the diffirent between :
//
session_start ();
$_SESSION['eventid'] = 'arma2';
///
and
/
session_start ();
session_register('arama2');
///
Regards
Nabil
Both accomplish the same thing, except how you are using it might not be
what you expect.
$_SESSIO
Sent: Sunday, June 22, 2003 3:46 AM
To: nabil; [EMAIL PROTECTED]
Subject: RE: [PHP] a question, need an answer
I could be wrong here, but from my experiences with sessions is that your
first session_start()
is assigning the value of 'arma2' to the $_SESSION['eventid'] variable,
where
I could be wrong here, but from my experiences with sessions is that your
first session_start()
is assigning the value of 'arma2' to the $_SESSION['eventid'] variable,
whereas the second one you are making the 'arama2' variable a global session
variable, so as to whatever it's value is on the page
Im not sure if this is your problem, but it was mine awhile ago :)
Make sure there are no spaces after closing off heredoc.. so on your line:
EOF;
Make sure there is nothing except a hard return, no spaces, no characters..
nothing!
Cheers!
Rick
"By three methods we may learn wisdom: First, by
On Mon, 10 Mar 2003, Robert Cummings wrote:
> All in all I spent 20 hours total for the client at a rate of $40 USD/hr
> which I believe is on the low end of freelance. I myself have 3 years
> experience devloping PHP web applications. So the question I ask is whther
> this time frame is reaso
[snip]
> Thanks, I did estimate 20 to 30 hours for them after I had set up the
mirror
> server and before the actual work began. At the same time I asked if they
wanted
> me to stop to which they replied that I should continue.
Offer them some cheese with their whine and tell them to pay up!
---J
"CPT John W. Holmes" wrote:
>
> [snip]
> > If it turns out that I am incompetent, then I will happily send them a
> > bill for zero hours, otherwise I would like to take comfort that I am not
> > ripping them off.
>
> Just my humble opinion, of course, but I think you did the job quickly
> co
[snip]
> If it turns out that I am incompetent, then I will happily send them a
> bill for zero hours, otherwise I would like to take comfort that I am not
> ripping them off.
Just my humble opinion, of course, but I think you did the job quickly
considering what you were given to start with.
Adam Williams wrote:
> make a directory called phptest and put a file, index.php in
> it...never
> tried it tho.
In that case you will have to call http://localhost/phptest/?id=22
Grtz Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
make a directory called phptest and put a file, index.php in it...never
tried it tho.
On Thu, 12 Sep 2002, LI DONG wrote:
> Hello everyone,
>
> It is a question about .php file extension. Is there any way to access PHP4
> script in Apache 1.3.x without .php extension? For example, how to use
>
>
make a .htaccess file like this
ForceType application/x-httpd-php
ForceType application/x-httpd-php
ForceType application/x-httpd-php
This makes the file main boards read php files
What we do with it is make dynamic pages look like dirs for example
sportnetwork.net/main/s85.php would just
Hi Jay:
On Fri, Jul 12, 2002 at 08:40:31AM -0500, Jay Blanchard wrote:
>
> The agent selects a referral which is processed by an intermediary
> script which sets a flag in the database saying that "this agent" is, has,or
> will be contacting this referral (to prevent duplicate contact). Then thi
I see no problems whatsoever in utilizing an intermediary script to do processing of
information. However, there IS a problem when this script sets flags that are
unwanted by the client. An example of a good intermediary script application would be
as below.
Person A and Person B both remote
> Dear people:
>
> I have a development that I made a year ago. In the first screen I
set
> a cookie that is used along all the parts of the software. This cookie
> establish the language of the software. Now some people that are
> installing the software are reporting me problems using the s
There is a difference in the default way php installs between 4.1.x and
4.2... the newer version comes with register_globals Off in the php.ini
file. Simple solution, change this value to On in your php.ini file, and
restart.
However, you scripts will be a lot more secure if you leave register_g
""C Benn"" <[EMAIL PROTECTED]> wrote:
> MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP?
It
> gives you the ability to determain the root of the web site and use it as
a
> reference.
Is $DOCUMENT_ROOT what you are looking for.
To see a list of the predefined constants, l
59 matches
Mail list logo