Readers,
Copy below of message sent 15 August to php install digest list, but
to date not including in mail archive?
The tutorial example:
php test
Hi, I am a PHP script';
?>
this is a test
I changed the code as follows:
php test
Hi, I am a PHP script";
?>
this is a test
The result (http://localhost/test.php):
Hi,
On 18/08/2010, chris h wrote:
> php is not processing the file. There's a few reasons for this, but the
> first thing I would check is the permissions of the file. From the
> directory try
>
> $ ls -oa
>
The file permission was confirmed as root, since it was copied (as
root) from a normal user
On 18/08/2010, Peter Lind wrote:
> On 18 August 2010 12:47, e-letter wrote:
>> On 18/08/2010, chris h wrote:
>>> php is not processing the file. There's a few reasons for this, but the
>>> first thing I would check is the permissions of the file. From the
&g
On 18/08/2010, chris h wrote:
> What are the actual file permissions when you run ls -o?
>
root
>
> Do you know if PHP is installed as an apache mod or cgi? Also you might
> check what user apache is running as.
>
No. How to verify?
> possibly...
> $ vi /etc/apache2/envvars
>
No apache2 on my com
On 18/08/2010, chris h wrote:
> On Wed, Aug 18, 2010 at 7:10 AM, e-letter wrote:
>
>> On 18/08/2010, chris h wrote:
>> > What are the actual file permissions when you run ls -o?
>> >
>> root
>>
>
> What's the entire output of ls -o?
>
[r
On 18/08/2010, Ashley Sheridan wrote:
> On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote:
>
>> On 18/08/2010, chris h wrote:
>> > What are the actual file permissions when you run ls -o?
>> >
>> root
>> >
>> > Do you know if PHP is instal
On 18/08/2010, Bob McConnell wrote:
> From: e-letter
>
>> On 18/08/2010, chris h wrote:
>>> On Wed, Aug 18, 2010 at 7:10 AM, e-letter wrote:
>>>
>>>> On 18/08/2010, chris h wrote:
>>>> > What are the actual file permissions when you r
On 19/08/2010, David McGlone wrote:
> Yes it is. But your computer needs the correct software to view that php
> file in a web browser as if it was a web page. If you do not have this
> software installed, then the web browser will ask you if you want to
> download the file instead.
>
The web bro
On 19/08/2010, David McGlone wrote:
> On Wed, 2010-08-18 at 23:08 +0100, e-letter wrote:
>> On 18/08/2010, David McGlone wrote:
>> > On Wed, 2010-08-18 at 21:54 +0100, e-letter wrote:
>> >> On 18/08/2010, David McGlone wrote:
>> >> >
>> >
On 19/08/2010, Ashley Sheridan wrote:
> I think it's fairly clear that for whatever reason, PHP isn't properly
> configured with Apache. You've mentioned you're using Mandriva, which,
> coincidentally, is what i've just recently installed on my home machine.
> It has a very good graphical package
On 19/08/2010, Ashley Sheridan wrote:
> As Colin suggested on another email, check to see if apache-mod_php was
> installed too. It seems likely that it wasn't for some reason.
How to verify please? Also, the instruction to use task-lamp; it seems
this is for mysql but the database to be used is
On 19/08/2010, HallMarc Websites wrote:
> I agree with the earlier take on this situation; you need to start at the
> beginning and learn the basics regarding the technologies BEFORE you try and
> manage them. You're trying to drive a car when you don't even know what or
> car is and how to operat
On 19/08/2010, Ashley Sheridan wrote:
> No, because Apache doesn't need to process HTML in the same way it needs
> to process PHP. The tag browser as HTML (view the source on the page you're browsing to) and
> interpreted as a tag by your browser, hence what appears to be partially
> processed ou
On 20/08/2010, Ashley Sheridan wrote:
> You don't have to reinstall the entire OS, that's a very Windows
> approach to the problem. I played around a bit last night with urpmi and
> you should be able to just list the packages you need with urpmq --fuzzy
> package_name, and then install the ones l
Readers,
A postgresql database (local disk installation) is successfully
accessed as a normal user:
psql -U username databasename
However, creating a php file to access the database has not been successful.
why does this fail?
The followin
On 30/04/2011, Daniel Brown wrote:
> Readers? Sounds like you spend too much time writing newsletters
> (to the wrong address, since php-general-digest-h...@lists.php.net is
> a self-help command list for digest-form subscriptions). ;-P
>
> On Sat, Apr 30, 2011 at 04:41,
The file was changed:
... $value=pg_fetch_result($query,1,1);
echo 'all files' . var_dump($value);
...
The resultant web page produces:
bool(false) all files
The php file was changed again:
... $value=pg_fetch_result($query);
echo 'all fi
The query was:
$query = 'SELECT * FROM databasetablename';
So, database access seems to be the problem. Using the superuser
account 'postgres', a user 'httpd' was created and all privileges were
granted to the target database using the postgresql 'grant' command.
However the user 'httpd' is not t
>
>Here's the URL of the relevant manual page:
>http://www.php.net/manual/en/function.pg-fetch-result.php
>
The manual page did not explain the purpose of the text 'die', so was
ignored (;)). Anyway, the php code was amended as follows:
The result is a web page which shows:
list of fil
Readers,
Looking through the mail lists archives, only the following message
seems to advise about the possibility to use gnuplot:
http://marc.info/?l=php-general&m=96248542218029&w=2
Is it possible to start gnuplot using php, to plot a graph from
postgresql data. For example, a table is created
21 matches
Mail list logo