is enough to help the engine know that the class
DBToyExt is supposed to inherit the static function connct, but it's not
enough to bless the return value of connect from the class DB to DBToyExt
How do I get around this and extend DB?
Thanks,
Weston
--
PHP General Mailing List (http
Weston wrote:
$dte = DBToyExt::connect(mysql://weston_tssa:[EMAIL
PROTECTED]/weston_tssa);
$dte-testext('testing');
$dte-testext($dte-moo);
$dte-testext($dte-bar);
On Fri, Mar 10, 2006 at 10:43:02AM +1100, Chris wrote:
$dte will only have the return value of DBToyExt::connect
be inhereted by any object?
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A while back I wrote a little read-eval-print loop that essentially constituted
a very basic php shell:
http://weston.canncentral.org/misc/phpsh.txt
This has almost always run fine for me with the cgi versions of php 4, and
often proves to be a great help in quickly testing various snippets of
makes it run
just fine.
The syntax error you are getting is caused by not entering
any input.
Your line 23 becomes:
$returnval = eval(return(););
Return expects some value to be provided, hence the syntax error.
Makes sense. Thanks again!
-WEston
--
PHP General Mailing List (http
,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of a performance hit by reading the image out
a database, that seems like the wrong thing to do). Can anyone elaborate?
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to write a script that pulls an image from a database and transforms
the size if passed a width via the url query string.
Thanks to the helpful hint about the function imagecreatefromstring, I
think I'm now able to ready image data I've pulled for a database with
GD. However, I'm
And while we're at it, has anyone written a tool that will tell you
what's different between server setups?
I use diff on unix.
You may like tkdiff, with its additional GUI to diff
Hmmm. Diff on what? I suppose the INI files are prime candidates, as well as whatever
phpinfo
Curt Zirzow wrote:
* Thus wrote Weston Cann ([EMAIL PROTECTED]):
A while back I wrote a small script that was designed to work as an
interactive interpreter for PHP code, a la Python. The script itself is
written in PHP, and is pretty basic:
?PHP
function readln()
{
$fp
I was testing a boring little FormMail script I've used on dozens of PHP
installations (Apache and IIS), when I got an error:
Fatal error: Call to undefined function: mail() in
/usr/local/apache/vweb/redfishinsurance/form2mail.php on line 65
What? How? I quote from the PHP manual entry for the
help?
My system information is listed below.
RedHat Linux 7.3
Apache 1.3.27
PHP 4.1.2
Thanx
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Any ideas on how to correct the problem with reinstalling server software?
Thanx
-Weston
Weston [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Whenever I access a PHP script from the web that contains an error (such
as
a parsing error, etc...) The server will not respond to any
doesn't
work, because if the variable is unset you get caught on the fact
before the function call happens.
Is there something like this already? Is there a way to make this
work? Or should I just go back to the idea of nuking error_reporting
in all my scripts?
Thanks,
Weston
Thanks
...
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to generate an internal
server error.
-Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
-Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and down arrow, and making each line left/right arrow editable.
But I'm not sure exactly how to read the input from the arrow characters.
Could someone tell me how or point me to a good resource on doing this
kind of thing?
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net
Anybody interested in working on a PEAR module to interface PHP with
something like ImageMagick directly? I would love to see it. Maybe if I am
unemployed long enough soon I can work on it myself. Not that I really want
that to happen...
I think that might be the best solution for PHP's lack of
Is it an array, or a single variable?
Wes
Ok this is getting frustrating! I am serializing a variable and passing it
through the url, in the url and when I echo it on the next page it shows
s:608:, and when I unserialize it and echo it, it doesnt show anything! How
can I pull that data
Are there rumblings of what to look for in the next major release of PHP
yet? Is there a different, better place to ask? I'm just curious...
Wes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all,
I am looking to build a bit of a weird templating system for a project I am
working on. Currently, I am looking at building these templates in separate
text files, and allowing certain elements to be replaced within those files.
I'm thinking then of reading these text files into php
My cheap trick around this is to have an onClick event on the form submit
button that brings up a small window with a progress note in it, and an
animated gif of a prgress bar.
As the page does not unLoad until the upload is finished, I use the unLoad
event of the body tag to close that
Let me isolate it out of the project tonight, and I'll try to post a simple
example for everyone.
Wes
could you give us some samples im also searching for that. thanks.
Regards,
mike
My cheap trick around this is to have an onClick event on the form submit
button that brings up a
Check out ChiliSoft:
http://www.chilisoft.com/
Wes
Hi,
I just got finish will a meeting from HELL, I need to ask can some one tell
me is there an Apache Mailing List like this. I have to ask if I can do ASP
page on Apache, I know I know please don't flame me, I kept trying to get
them
All,
I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
stopped working. I know a lot with the globals has changed, but to be
honest, I am not sure how or why. Can anyone give me an initial lead as to
what I should look for first?
I know I use the following elements:
on register_globals in your php.ini file and things should start
working again.
On Tue, 14 May 2002, Weston Houghton wrote:
All,
I've recently upgraded from 4.1.2 to 4.2.0. And of course my script has
stopped working. I know a lot with the globals has changed, but to be
honest, I am
for the patience and help.
Wes
http://www.php.net/manual/en/security.registerglobals.php
On Wed, 15 May 2002, Weston Houghton wrote:
Ok, makes sense based on previous threads I have gleaned over. Can you point
me to any reading material that fills in the details on all of this though?
Would like
Hello again all,
I'm using the Mac OS X binary of PHP 4.2.1 provided by Mark Liyanage
(http://www.entropy.ch/software/macosx/php/), and I am starting to notice
some oddities, I was wondering if anyone else had seen these errors in other
ports.
I'm getting some base php functions that seem to
Hello...
I'm wondering if I have found an oddity in httpd. I'm currently writing a
PHP directory listing system. I am pretty sure that this is not a php issue,
but I have not been able to test it on a httpd install sans php, but it can
be seen when requesting an image file, which should not
(but not fully
crazy). Now I have to try to convince Microsoft that they have a bug... ooh
fun.
Thanks for the reply here, it seems my mail from the apache list is not
coming through, so I hadn't seen the response there.
Cheers,
Wes
Weston Houghton [EMAIL PROTECTED] wrote:
Apache will actually
Oddly, I get the following error on the page when trying to view it though:
Fatal error: Call to undefined function: _() in
/Library/WebServer/Documents/admin/horde/config/prefs.php on line 5
Here's the exact offending code:
$prefGroups['language'] = array(
'column' = _(Your Information),
Of course this had to come in after I sent my email.
Thanks again Rasmus, you seem to always be there with the answer.
Wes
No, the _() function is the standard gettext() alias. See
http://php.net/gettext
-Rasmus
On Tue, 28 May 2002, John Holmes wrote:
What exactly does the
Does no one have a clue on this one? I'm really in need of leads here.
Thanks,
Wes
Hey all,
Two related questions. If I remember correctly this has been beaten to death
before on the list, but here I am having issues with it, and ending up at
somewhat of a loss still.
I've built a
Ok,
So I'm an admitted newbie to using CURL, and idea why this doesn't work?
curl -O http://www.php.net/do_download.php?download_file=php-4.1.0.tar.gz
curl: No match.
Thanks,
Wes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hey all,
So I'm experimenting trying to get PHP 4.1 running under MacOS 10.1.1,
running the following for configure:
./configure --with-apxs2=/Volumes/ego/apache2/bin/apxs --enable-calendar
--enable-ftp --with-gd --enable-mailparse --with-mysql --enable-trans-sid
Getting through configure ok,
P.S. From my checking all php_dl functions are declared as returning
voids...
Wes
Hey all,
So I'm experimenting trying to get PHP 4.1 running under MacOS 10.1.1,
running the following for configure:
./configure --with-apxs2=/Volumes/ego/apache2/bin/apxs --enable-calendar
Hey all,
Two related questions. If I remember correctly this has been beaten to death
before on the list, but here I am having issues with it, and ending up at
somewhat of a loss still.
I've built a media management system for a video company. It is built to
handle large data assets, such as
So...
I cannot for the life of me get browscap.ini to work.
Also the browserhawk version of the browscap.ini is sadly out of date.
Anyone have any leads for me on getting this to work? I consistently get an
empty array returned.
Thanks,
Wes
--
PHP General Mailing List (http://www.php.net/)
Does anyone know if there are PHP specific bindings for ImageMagick out
there? If not, anyone want to work on them...
:)
Thanks,
Wes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
the point of view of exec
Do you mean building them into PHP functions?
- Original Message -
From: Weston Houghton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 22, 2001 11:05 PM
Subject: [PHP] PHP Imagemagick
Does anyone know if there are PHP specific bindings
I'm trying to build a CLI/CGI binary of PHP5 with MySQLi under Mac OS
X. When I invoke configure, I get the following error message:
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution
Now, mysql (4.1.22) is
to declaring them at the top of the
class definition?
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are pretty noisy given
that php's installation as a shared module itself for Apache are a
fairly popular topic.
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, May 29, 2008 at 7:11 PM, Chris [EMAIL PROTECTED] wrote:
See http://www.php.net/dl (though a lot of hosts disable this
functionality for security reasons).
Fortunately, I'll have full control of the hosting environment in the
context this matters. :)
dl is definitely interesting, but
Just curious if anyone knows the rough timeline for PHP 5.3.
Also curious if anyone knows whether anon functions/closures or a
shorter JSON-ish array syntax are being considered for inclusion. I
know there were two patches announced in December/January:
?/a
now gets transformed to:
lt;a href=http://metaphilm.com/philm.php?id=29_0_2_0gt;Is Tyler
Durden Hobbeslt;/agt;
No other changes in the PHP source -- just a change in the interpreter.
Any idea what could be causing this?
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net
for this be under? It's a
build/install issue, but there's no particular category for these
beyond compile issues...
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Aug 19, 2008 at 9:43 AM, Jason Pruim [EMAIL PROTECTED] wrote:
Is there a particular reason you are downgrading?
I'm pretty happy with some of the features in 5.3, but have been asked
to work with a codebase that turned out to have some issues under 5.3
that didn't show up under 5.2.x.
Hey all,
I've been meaning to write a simple debug tracking class for use in my
own projects. So this week I finally did. I have no clue if anyone else
would ever use it, or have any interest in looking at it, but I've set
it up for people to download it if you have any interest. Regardless,
Sure... for the longwinded approach, just do this:
$row1 = array(col1, col2, col3, ...);
$row2 = array(col1, col2, col3, ...);
$row3 = array(col1, col2, col3, ...);
$row4 = array(col1, col2, col3, ...);
$row5 = array(col1, col2, col3, ...);
$main_array = array($row1, $row2, $row3, $row4,
Sure... for the longwinded approach, just do this:
$row1 = array(col1, col2, col3, ...);
$row2 = array(col1, col2, col3, ...);
$row3 = array(col1, col2, col3, ...);
$row4 = array(col1, col2, col3, ...);
$row5 = array(col1, col2, col3, ...);
$main_array = array($row1, $row2, $row3, $row4,
All,
In using str_replace, I glanced at the manual and found that it can
take arrays for it's arguments. Great! I thought that I could have a
single search string, an array of replacement vars, and no subject. It
would then replace each successive instance of the search string with
the next
okey dokey, here goes:
this gets really complicated to explain without showing the code, which
I really can't do (damned NDA's) and ultimately it's a bit big to post
anyhow. But I'm going to try.
I let the user specify a number of rows to input 2 pieces of data. I
then replace a template
This wouldn't really be done in PHP. This is a Javascript element, as
it requires work to be done on the client side. You could easily make a
combination of PHP and Javascript to do this with any set of images
though.
Wes
On Thursday, January 16, 2003, at 08:37 PM, Ezequiel Sapoznik wrote:
Does anyone have any experience with or comments on blueshoes? I've not
investigated it much, as the license seems a bit odd, but I thought I'd
get some info on it if anyone had any, so far I haven't found anyone
who has tried it, which seems a tad weird to me.
http://www.blueshoes.org/
Ok, now I'm frustrated.
I'm trying to register an object in the session, and access that object
from 2 different pages.
I start off in the first file, and do:
?php
include(nycmgMail.php);
session_start();
$myMailer = new nycmgMail();
$myMailer-buildRecipients();
$_SESSION['myMailer'] =
I'm looking at building a system script for build management. I would
very much prefer to do this in PHP. Are there any integrated means of
using CVS with php, or am I limited to using system calls from cvs?
Thanks,
Wes
All,
I seem to be getting a silly error on Solaris when trying to do a PHP
4.3 make. I get an error that looks to me like the liner arguments are
just too long. to be honest, I'm a bit stupified as to why this is
happening or how to fix it. FWIW, I have compiled 4.23 just fine on
that
For a bit more in depth answer, I would recommend using the Mail class
in Pear:
http://pear.php.net/manual/en/core.mail.mail.php
Should make it very easy.
Wes
On Sunday, February 2, 2003, at 01:10 PM, Jason Wong wrote:
On Monday 03 February 2003 00:32, Johan Köhne wrote:
Is it possible
On Sunday, August 24, 2003, at 05:31 PM, Giz wrote:
Access is a pc database. It doesn't run on unix. Why people insist on
beating their heads against the wall in this manner I will never know.
Ignorance I suppose. The alternative is to have your friend use a
relational database and have a few
option I'm missing?
And while we're at it, has anyone written a tool that will tell you
what's different between server setups?
Thanks,
Weston
~ == ~
http://weston.canncentral.org/
Correct as usual, King Friday
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
I would imagine that you have to add:
$random = gmp_strval($random);
In between the two lines to convert the resource to a string value.
Wes
On Thursday, May 29, 2003, at 04:24 PM, Marius wrote:
?
$random = gmp_random(10);
echo $random;
?
how to do that it echoes a random number and not a
What version of PHP are you using, and are you using both CLI and
Apache module at the same time?
I compiled it at work with no huge problems.
Wes
On Thursday, May 29, 2003, at 06:45 PM, Sapporo wrote:
Hi,
is anyone sucessfully using the oci8 Oracle extension on MacOSX?
Whenever I try to
Nope.
They've been looking to add it in the next version of the Zend Engine,
but to be honest, it isn't working out well for a language like PHP. As
of last week, the decision was actually to remove the somewhat dubious
namespace support that had already been added.
Cheers,
Wes
On Monday, June
You'll need to either use the gd functions, or my recommendation, get
the imagick module and use it. Both should do an excellent job. iMagick
is in PEAR.
Wes
On Saturday, March 8, 2003, at 03:15 PM, Vernon wrote:
I have users uploading images to a server and need to have those files
iMagick offers all of the functionality of imageMagick, which is a
substantially different subset than GD. iMagick is primarily geared
toward modifying existing images. Resizing, converting formats, apply
effects to, etc. It also works with a far larger set of base image
formats.
Check
I had no idea anyone was actively working on something like this. Are
you looking for help? Do you plan on perhaps making this a Sourceforge
project, or something similar?
Cheers and great job,
Wes
On Thursday, November 21, 2002, at 05:56 PM, Michael Montero wrote:
Just released the next
I'm working on getting the following install working under OS 10.2.2:
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--with-apxs=/usr/sbin/apxs \
--with-mysql \
--with-gd=/usr/local \
--with-png-dir=/usr/local \
--with-zlib-dir=/usr/local \
I found two main things that were hampering my install.
1. While I thought I had updated cURL, I believe I may have only
upgraded the executable itself the first time, while leaving the
libraries themselves at an older version.
2. OS X install cURL with a prefix of /usr, whereas the standard
Hi,
This is what is probably a newbie session problem.
I've been having some trouble with sessions on php 4.0.6, I'm developing
a website in which I don't have direct control over the server. Due to
some other problems I created a test counter script to try to narrow
down where the problem
What ways are there to tell if PHP is actually built into an Apache 2
installation or if it's installed as a shared object?
I've dropped a file containing phpinfo() on the server I'm looking at,
hoping the Server API value would give me a clue, but it just says
Apache 2.0 Filter, and I don't
On 4/19/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Thu, April 19, 2007 4:08 pm, Weston C wrote:
What ways are there to tell if PHP is actually built into an Apache 2
installation or if it's installed as a shared object?
phpinfo() / Server API value .. just says Apache 2.0 Filter
If you
On 4/19/07, Edward Vermillion [EMAIL PROTECTED] wrote:
Fedora, and I'm assuming RedHat and possibly others that use their
system layout, will put the loading line in /etc/httpd/conf.d/
php.conf so yes it can be in an external configuration file.
That's the exact location, and it's a shared
On Thu, 2009-05-21 at 09:54 -0400, tedd wrote:
My thoughts are -- my understanding the reason why tables have
received such bad-press is that designers have abused tables in
holding designs together with nested tables AND in doing so made it
difficult for the visually disabled to pull content
cases. I haven't quite
figured out the difference.
I can come up with some runnable tests if it will help, but I'm hoping
someone's already familiar with the general issues with using PHP's
XML tools to work with HTML that they can make some good commentary on
the matter.
Thanks,
Weston
--
PHP
On Thu, May 21, 2009 at 12:10 PM, tedd tedd.sperl...@gmail.com wrote:
Could you be certain that your algorithm would figure out which way it needs
to present the text to a blind person?
My own experience browsing the web with Lynx (which for the most part,
tends to ignore table layout, giving
fatal error: Object of class A could not be converted to
string.
If it's catchable, why isn't it caught in my example?
Thanks,
Weston
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
78 matches
Mail list logo