hi there I am trying to choose between the two, which one is efficient,
but is also html programmer friendly and can still do template block
style templating like fasttemplate or phemplate. I am trying to move
people who have been using fasttemplate to a more efficient system,
although these
It's ok,
I discovered that object (if not passed by reference explicitly) is first
duplicated (internally) and only then the method is called.
Proof code:
?php
class myCls
{
var $myVar;
function myCls() { $this-myVar = 1; }
function myInc() { $this-myVar++; }
Hello John,
Wednesday, December 15, 2004, 12:43:43 AM, you wrote:
JH I'm sure many of us will be taking some time off for the holidays (if
JH you aren't already). Just a friendly reminder to either 1) unsubscribe
JH while you're gone (you won't miss much, trust me) or 2) set your notice
Hi,
Me new to PHP.
Is there any good and free php graph scripts/class that I can use to
generate graph like bar chart, pie chart and plots.
If you have any good recommendation, can email me at
[EMAIL PROTECTED]
Thanks.
Jonathan
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
I am new to this languaue and need some info. I am not a programmer but
I need some info for a project I am working on. I have data in MS Access
and I want to create graphs and charts using this data to display on a
website. I read on your website PHP is able to do this.
What do I need to
Not exactly sure what your question is. You want to catch the buffer,
but don't delay the buffer to be sent???
If your question is that you want to hold the contents of the buffer
and send it only when you are ready, don't use ob_end_flush, use
ob_end_clean. The buffer is cleared without
On Wed, 2004-12-15 at 08:27 -0500, Lowell Allen wrote:
snip
$fh = fopen(test.txt, r) or die($php_errormsg);
/snip
Try opening the file rw. At the moment, you're opening it read only.
Ian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Electroteque [EMAIL PROTECTED]:
hi there I am trying to choose between the two, which one is efficient,
but is also html programmer friendly and can still do template block
style templating like fasttemplate or phemplate. I am trying to move
people who have been using fasttemplate to a
Hi,
Brent Baisley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Not exactly sure what your question is. You want to catch the buffer,
but don't delay the buffer to be sent???
If your question is that you want to hold the contents of the buffer
and send it only when you are ready,
Hi,
Brent Baisley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Not exactly sure what your question is. You want to catch the buffer,
but don't delay the buffer to be sent???
If your question is that you want to hold the contents of the buffer
and send it only when you are ready,
Hi,
Newbie learning php here.
Does anyone (have|know where I can get) a set of html and php files to
automate script and form writing?
What I want is an html file with forms, drop down boxes, check boxes
etc, that will allow me to quickly|automatically construct php and
html code to run on my
Malcolm,
It's called a learning curve, and is necessary to know the mechanics of the
language. If you try to short-circuit it, you'll forever be wondering
How'd that happen?
Just prepare some simple scripts and try them out, or use something like
ColdFusion and be resigned to forever working
On Wed, 15 Dec 2004 11:21:42 -0500, Don [EMAIL PROTECTED] wrote:
and am getting a compile error:
apxs was not found.
There is no file: /usr/sbin/apxs
Mine is /usr/sbin/apxs2
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List
In earlier versions of PHP, you could use the $HOSTNAME
global variable to get the server/machine name that is running
Apache/PHP. However, that variable is no longer working
and I can't seem to find a replacement in any of the super global
variables. Is there one? How can you get the
On Dec 15, 2004, at 8:47 AM, Ian Firla wrote:
On Wed, 2004-12-15 at 08:27 -0500, Lowell Allen wrote:
I'm trying to FTP a text file from a commercial hosting server, but
the file isn't being transferred and I'm not getting any feedback from
the script. Here's the code:
[snip]
$c =
On Wed, 15 Dec 2004 10:10:22 -0600, Steve Marquez
[EMAIL PROTECTED] wrote:
I am trying to insert information into the database, have it automatically
place an ID Number, then update that particular record and replace the word
delete with the link.
`delete` is a reserved word. Try wrapping it
In earlier versions of PHP, you could use the $HOSTNAME global
variable to get the server/machine name that is running Apache/PHP.
However, that variable is no longer working and I can't seem to find a
replacement in any of the super global variables. Is there one? How
can you get
I think you need the httpd-devel package.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jonathan wrote:
Hi,
Me new to PHP.
Is there any good and free php graph scripts/class that I can use to
generate graph like bar chart, pie chart and plots.
If you have any good recommendation, can email me at
[EMAIL PROTECTED]
Thanks.
Jonathan
jpgraph is excellent. I haven't
On Tue, 14 Dec 2004 22:37:41 +0100, Merlin [EMAIL PROTECTED] wrote:
i am somehow strugling to find out how to get the age of a person from its
birthdate.
Has anybody an idea how to do that?
function getAge( $b )
{
$b = date( 'Y-m-d', strtotime( $b ) );
$a = explode( '-', $b );
?php
$Hostname = exec('hostname');
print $Hostname;
?
-Original Message-
From: Boget, Chris [mailto:[EMAIL PROTECTED]
Sent: 15 December 2004 16:58
To: 'Jason Motes'; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Hostname
In earlier versions of PHP, you could use the
Lorderon wrote:
What I want to do is catch the output buffer, but do not delay the
buffer
to be sent. How is it done?
I see three options here:
#1 Call ob_start/ob_get_contents/ob_flush and repeat that a *LOT* within
your script, so that you are buffering only a few lines of text at any
given
Paul Reinheimer wrote:
My understanding (or assumption) of how the MTA operates is that it
would not accept a message it did not know how to deliver, ie one with
an invalid destination address.
There ain't no way the MTA can reliably predict an invalid address for
other hosts/domains/machines.
Rory Browne wrote:
You may be wondering why I don't just $instance = new utility_class
- the reason is that I want to only create one of these instances. I
don't want any more than one instance of utility_class at any one
time.
I can't use get_class($this) either, because, there is no
On Thursday 16 December 2004 01:49, Richard Lynch wrote:
You now have the joy of diving into sendmail documentation. Have fun. :-^
There are better, easier to use and more secure alternatives to sendmail.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems
On Thursday 16 December 2004 00:54, Lowell Allen wrote:
But trying to avoid writing to the local server by using ftp_put()
instead, this does not work:
My manual says ftp_put() - Uploads a file to the FTP server
And no, I can't find any command to upload a string in memory as a file. If
you
Hi, all,
I am testing how to post form-data to a host using the following code
(test.php):
?php
function PostToHost($host, $path, $name, $value) { // Test of posting
form-data
$fp = fsockopen($host,80);
fputs($fp, POST $path HTTP/1.1\n);
Jason Wong wrote:
On Thursday 16 December 2004 01:49, Richard Lynch wrote:
You now have the joy of diving into sendmail documentation. Have fun. :-^
There are better, easier to use and more secure alternatives to sendmail.
I think only the U.S. Post Office is slower and less secure than
I have a MySQL server that gets accessed two ways: From php web
applications and by MS Access programs. How can I write a php application
to download files that were stored as blobs using MS Access bound object
frames?
Is it as simple as decoding it properly? I have not yet been able to figure
Hi,
Just installed PHP 5.0.2 on a Fedora Core 3 system using Apache 2. One of
my configure options was:
--with-mcrypt
I followed the docs at php.net and downloaded libmcrypt-2.5.7, and installed
it as per INSTALL file. No problems compiling PHP.
However, when I attempt to restart Apache, I
http://www.hardened-php.net/advisories/012004.txt
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Manuel,
Yes, Turck works with PHP5.
My question is: if the last version was released a year ago, how much
can i trust it ?
BTW, how good is Truck's algorithm and how hard it is to reverse
engineer the code ?
portuguese mode
Abraço aí para o Brasil, meu.
A curtir o sol e as macacas no
apache will run on windows so you shouldnt fear:)
Anyways go into the properties tab of the IIS web server, you need to
register .php as a valid file extension, there is a list of all file
extensions under that tab (its one of the tabs in there i cant
remember). Add in .php . If you've already
Hello,
on 12/15/2004 06:00 PM Minghua Yao said the following:
It looks like receive.php didn't receive the posted value. Is there anything wrong with the program? Thanks in advance for any help.
It seems that the line breaks are wrong. Anyway, instead of reinventing
the wheel, you may want to try
Gents,
How do I configure my IIS server to parse a specific .html
file for php code? I know how to do this on apache, but windows scares
me :-)
THANKS!
Eric Lindsey
Colorado Information Technologies Inc.
http://www.coinfotech.com http://www.coinfotech.com/
Mário gamito wrote:
Hi Manuel,
Yes, Turck works with PHP5.
My question is: if the last version was released a year ago, how much
can i trust it ?
IIRC the main developer for Turck was hired by Zend...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello,
on 12/15/2004 08:35 PM Greg Donald said the following:
Software it is not like people, it does not stop working with age.
I have all kinds of old software that doesn't work anymore.
That is because you changed the environment on which it was working.
The problem is always with people, not
Hi all.
Is there some construct, which evaluates any type of its parameter (like
t_echo, t_unset) and returns some value with normal type (like 0)? What?
I would like to unset a variable in an operation like ()?unset():() and
I can not use if because if does not return normal type of value
Can anyone point to some good tutorials on using PHP with flash? I am
mostly interested in displaying info from a database in the flash
movie, as well as loading movies and pictures into the flash file
(referenced in the database).
thanks!
d
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
I have developed a full email marketing application (using php, mysql) which
supports tracking technology (i.e. whether the recipient has read the email,
view online, unsubscribe, click on any of the link etc), bounce mail
management, backend engine.
Is it possible to make some $$ if I
Hello,
on 12/16/2004 12:40 AM Dustin Krysak said the following:
Can anyone point to some good tutorials on using PHP with flash? I am
mostly interested in displaying info from a database in the flash movie,
as well as loading movies and pictures into the flash file (referenced
in the database).
If you have any experience with this, kindly enlighten me.
In my experience, people aren't going to pay unless they have to.
... and spending money for some application, which more than likely is going
to be filtered hard by spam filters, might not be what I want to spend my
pennies on
--
Lars
Hi guys,
Is there an on-going initiative as far as creating a PHP framework
somewhat the same as .Net's framework implementation? Like for
instance, the System.Data namespace where PHP developer can just create
something like a DataAdapter which can connect to a datastore and fill
a DataSet
Can anyone point to some good tutorials on using PHP with flash? I am
mostly interested in displaying info from a database in the flash
movie, as well as loading movies and pictures into the flash file
(referenced in the database).
thanks!
Yes dude, I have been implementing data via mysql
On Thu, 16 Dec 2004 13:11:02 +1100, Jeffery Fernandez
[EMAIL PROTECTED] wrote:
I am trying to build a html menu dynamically from data sitting in an
array. I have been successful so far until it came to the point of
populating the sub-menu of the system. Can someone help me out with the
logic
On Wed, 15 Dec 2004 18:40:17 -0800, Dustin Krysak
[EMAIL PROTECTED] wrote:
displaying info from a database in the flash movie
If you mean like graphs..
http://www.infosoftglobal.com/FusionCharts/
There is also the option of generating xml using pear XML_Tree and loading
the php script
On Wed, 15 Dec 2004 22:38:16 -0200, Manuel Lemos [EMAIL PROTECTED] wrote:
I have all kinds of old software that doesn't work anymore.
That is because you changed the environment on which it was working.
Exactly my point. I don't control when M$ depricates their operating
systems. I don't
Hi guys,
Is there an on-going initiative as far as creating a PHP framework
somewhat the same as .Net's framework implementation? Like for
instance, the System.Data namespace where PHP developer can just create
something like a DataAdapter which can connect to a datastore and fill
a
* Manuel Lemos [EMAIL PROTECTED]:
Hello,
on 12/16/2004 01:27 AM Greg Donald said the following:
I have all kinds of old software that doesn't work anymore.
That is because you changed the environment on which it was working.
Exactly my point. I don't control when M$ depricates their
PHP 5.0.3 just released.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 2004-12-16 at 10:50 +0800, Jonathan wrote:
Hi,
I have developed a full email marketing application (using php, mysql) which
supports tracking technology (i.e. whether the recipient has read the email,
view online, unsubscribe, click on any of the link etc), bounce mail
management,
Hello,
on 12/16/2004 01:27 AM Greg Donald said the following:
I have all kinds of old software that doesn't work anymore.
That is because you changed the environment on which it was working.
Exactly my point. I don't control when M$ depricates their operating
systems. I don't control when my
On Thursday 16 December 2004 13:33, Ahmed Abdel-Aliem wrote:
Put this at the beginning of all your code:
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
Then run your code to see all the errors and warnings and notices that it
generates. Then incorporate the changes below:
i
Hi Louie,
Excellent example! i wish more users would take the time to provide such
clear examples.
The strlen() exists for you :)
ie.
?php
$string = function yes good;
$display = strlen($string);
echo $display;
?
:)
Best Regards
Jake Press
Louie Miranda wrote:
?php
$string = function yes good;
Hi All,
My problem is finally solved by totally off SELinux Security
Policies. Thank you very verry much the helps from yours! I know this
is not very safe solution, but at the leasy my script can work
yours,
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Thu, 2004-12-16 at 14:28 +0800, Louie Miranda wrote:
?php
$string = function yes good;
$display = count_chars($string);
echo $display;
?
i know this is wrong, but how can i count chars used here?
php.net/strlen ?
-Robby
--
/***
* Robby Russell |
I'm trying to FTP a text file from a commercial hosting server, but the
file isn't being transferred and I'm not getting any feedback from the
script. Here's the code:
$username = whatever;
$password = somepassword;
$remote_domain = somedomain.com;
$remote_file_location =
Jonathan wrote:
Hi,
Me new to PHP.
Is there any good and free php graph scripts/class that I can use to
generate graph like bar chart, pie chart and plots.
If you have any good recommendation, can email me at
[EMAIL PROTECTED]
Thanks.
Jonathan
jpgraph is excellent. I haven't checked out the new
Gerard Samuel wrote:
I was wondering.
Does file_get_contents() or file_put_contents() utilise
any kind of file locking?
Thanks
Not that I am aware of (I haven't checked source on this so someone
correct me if I'm wrong here). file_get_contents() is a shortcut for
using the functions fopen,
[EMAIL PROTECTED] wrote:
Thank you for your email, however I am now on holiday until Thursday 23rd December and will not be in a position to check my emails during this time.
Should your email require a more immediate response please telephone Fast Web Media on +44(0)161 835 3444 for further
I am trying to insert information into the database, have it automatically
place an ID Number, then update that particular record and replace the word
delete with the link.
The mysql_insert_id() does seem to be working. It does put in an id number
of 0 However, the code in general gives me an
Hi,
Fedora core 3 (new) - apache installed with the new install (off the CDs).
I downloaded the PHP 5.02 source and am attempting to install. I am using
the configure option:
--with-apxs2=/usr/sbin/apxs \
and am getting a compile error:
apxs was not found.
There is no file: /usr/sbin/apxs
Chris Boget wrote:
In earlier versions of PHP, you could use the $HOSTNAME
global variable to get the server/machine name that is running
Apache/PHP. However, that variable is no longer working
and I can't seem to find a replacement in any of the super global
variables. Is there one? How can
On Wed, 15 Dec 2004 10:28:16 -0600, Chris Boget [EMAIL PROTECTED] wrote:
In earlier versions of PHP, you could use the $HOSTNAME
global variable to get the server/machine name that is running
Apache/PHP. However, that variable is no longer working
and I can't seem to find a replacement in any
$_SERVER['SERVER_NAME']
'SERVER_NAME'
The name of the server host under which the current script is
executing. If the script is running on a virtual host, this will be the
value defined for that virtual host.
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]
Sent: 15
Quoting Steve Marquez [EMAIL PROTECTED]:
I am trying to insert information into the database, have it automatically
place an ID Number, then update that particular record and replace the word
delete with the link.
The mysql_insert_id() does seem to be working. It does put in an id number
of
I'm trying to FTP a string value as a file without writing it to the
local server as a file, but I can't get ftp_put() to work. If I read a
file from the server, ftp_fput() works:
$fh = fopen(test.txt, r);
$upload = ftp_fput($conn_id, $destination_file, $fh, FTP_ASCII);
if(!$upload) {
Bruno Santos wrote:
i'm working with php for about 3 years and i must say: i cant get tired
of it !! :-)
since my first page, ive used php as a server side language, embebed in
html pages. now, i need to develop a small script to run as stand alone.
how can i do it ?
just like bourn shell,
Hi,
New Fedora Core 3 box. Installed Dovecot IMAP server. When attempting to
install PHP (with IMAP option), I get the error:
Cannot find rfc822.h. Please check your IMAP installation.
With older IMAP servers, there was always a development library. Dovecot
doesn't seem to have one.
For
On Wednesday 15 December 2004 21:29, Jay Blanchard wrote:
Do you reccommed MS Access or SQL for the database?
It really doesn't matter unless you need a superior product.
MS Access wasn't designed for concurrent access so if you are only serving
*very* light loads it may suffice. If your
On Thursday 16 December 2004 02:25, Don wrote:
New Fedora Core 3 box. Installed Dovecot IMAP server. When attempting to
install PHP (with IMAP option), I get the error:
Cannot find rfc822.h. Please check your IMAP installation.
With older IMAP servers, there was always a development
Hi,
Richard Lynch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Lorderon wrote:
What I want to do is catch the output buffer, but do not delay the
buffer
It occurs to me that maybe you should tell us WHY you want this, because
there could be existing alternatives outside the
i used to use a small script that displayed the amount of bandwidth being
used, it parses netstats numbers.
@ http://www.kernel.org/pub/software/web/bwbar/
it only works for linux and was wondering if anyone knows of a php app that
parses netstats on freebsd to display live bandwidth usage?
no error handling
what i am asking, can it to standard template blocks aswell, like you
have a main template and can add template blocks from a seperate
template ? to keep it fasttemplate freiendly , and also can it be html
programmer or designer friendly still say with simple vars like
* Electroteque [EMAIL PROTECTED]:
no error handling
I should have qualified that. If you do something like:
$smarty-display($filename);
and $filename does not exist, you get an error. When I say error
handling, I mean that I'd like for the method to return an error so I
can handle it
Hello,
on 12/15/2004 07:32 PM Mário gamito said the following:
Yes, Turck works with PHP5.
My question is: if the last version was released a year ago, how much
can i trust it ?
Software it is not like people, it does not stop working with age.
BTW, how good is Truck's algorithm and how hard it
On Wed, 15 Dec 2004 15:02:08 -0700, Eric Lindsey
[EMAIL PROTECTED] wrote:
How do I configure my IIS server to parse a specific .html
file for php code? I know how to do this on apache, but windows scares
me :-)
http://www.php.net/manual/en/install.windows.iis.php
--
Greg Donald
On Wed, 15 Dec 2004 20:12:54 -0200, Manuel Lemos [EMAIL PROTECTED] wrote:
Software it is not like people, it does not stop working with age.
I have all kinds of old software that doesn't work anymore.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
On Wed, 15 Dec 2004 15:07:00 -0500, Sebastian
[EMAIL PROTECTED] wrote:
was wondering if anyone knows of a php app that
parses netstats on freebsd to display live bandwidth usage?
cd /usr/ports/net-mgmt/mrtg
make install clean
It's not PHP, but there's no wheel reinventing required.
--
Greg
Mário Gamito wrote:
Hi Manuel,
Yes, Turck works with PHP5.
My question is: if the last version was released a year ago, how much
can i trust it ?
BTW, how good is Truck's algorithm and how hard it is to reverse
engineer the code ?
Encoding generally does not protect you from reverse
Jason Barnett wrote:
Gerard Samuel wrote:
I was wondering.
Does file_get_contents() or file_put_contents() utilise
any kind of file locking?
Thanks
Not that I am aware of (I haven't checked source on this so someone
correct me if I'm wrong here). file_get_contents() is a shortcut for
using the
I am trying to build a html menu dynamically from data sitting in an
array. I have been successful so far until it came to the point of
populating the sub-menu of the system. Can someone help me out with the
logic or is there a simpler way of doing it? Thanks
?php
/**
* This function builds
Thanks. Just downloaded it and tested it and it look great !!!
Quite easy to implement also.
Cheers,
Jonathan
Jonathan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
Me new to PHP.
Is there any good and free php graph scripts/class that I can use to
generate graph like bar
On Thu, 16 Dec 2004 10:50:52 +0800, Jonathan [EMAIL PROTECTED] wrote:
Is it possible to make some $$ if I distribute the application as a
shareware
Probably not.
or should I just sell it as an commercial package.
If you plan to make any money, yes.
If you have any experience with this,
Can anyone point to some good tutorials on using PHP with flash? I am
mostly interested in displaying info from a database in the flash
movie, as well as loading movies and pictures into the flash file
(referenced in the database).
thanks!
Yes dude, I have been implementing data via mysql
On Wed, 15 Dec 2004 18:40:17 -0800, Dustin Krysak
[EMAIL PROTECTED] wrote:
displaying info from a database in the flash movie
If you mean like graphs..
http://www.infosoftglobal.com/FusionCharts/
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP
Wee Keat wrote:
Hey Jeff,
How are you mate? Was lazying around and saw your email to the list. :)
What exactly do you need help with? Is it the following line?
// Stuck here
$html_menu .= lia href=\Need to get
value\$sub_page/a/li;
}
$html_menu .= '/ul';
Do you
On Wed, 15 Dec 2004 11:21:42 -0500, Don [EMAIL PROTECTED] wrote:
and am getting a compile error: apxs was not found. There is
no file: /usr/sbin/apxs
Mine is /usr/sbin/apxs2
Some versions of Redhat install a package of Apache2 without
either apxs or apxs2, presumably to keep you from
Well, you could try XP's Compatibility Mode, I think my girlfriend got
Afterlife to run under XP doing that. She got it to run somehow..haha..
because we just found a copy of Afterlife for like $1 somewhere and she picked
it up.
Or, if you happen to be blessed with VMWare, there's always
Hi
i am retrieving records from database and putting each row in a array
here is the code
@ $db = mysql_connect ($server, $user, $pass);
mysql_select_db($database);
$query = SELECT Game_ID FROM games WHERE Game_Category='$Game_Category';
$result= mysql_query($query);
$total_numbers =
* Jonel Rienton [EMAIL PROTECTED]:
Is there an on-going initiative as far as creating a PHP framework
somewhat the same as .Net's framework implementation? Like for
instance, the System.Data namespace where PHP developer can just create
something like a DataAdapter which can connect to a
?php
$string = function yes good;
$display = count_chars($string);
echo $display;
?
i know this is wrong, but how can i count chars used here?
--
Louie Miranda
http://www.axishift.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
92 matches
Mail list logo