Greg Donald wrote:
On Thu, 13 Jan 2005 22:11:05 +, Justin <[EMAIL PROTECTED]> wrote:
Is there a Debugger for PHP?
php -l filename.php for basic syntax check.
If you need more than that you can turn of full error reporting and
view the errors directly on the screen:
error_reporting( E_ALL );
in
On Fri, 14 Jan 2005 18:47:14 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote:
> in addition there is the xdebug extension by Derick Rethans its at
> version 2 but I might suggest starting with 1.3 as its alot simpler to
> use than 2 (then again if you have experience of things like
> valgrind/dbg on l
Geeze,
That was obnoxious.
Luckily google helped me out eventually:
if (basename($argv[0]) == basename(__FILE__)) {
Robert Cummings wrote:
> On Thu, 2005-01-13 at 09:46, Cere Davis wrote:
>> Does anyone know how to write php libraries in a modular way so that you
>> can both test the librari
George Schlossnagle addresses exactly your requirement in his book "Advanced PHP
Programming".
Josh Whiting wrote:
Dear list,
My web application (an online classifieds server) requires a set of
fairly large global arrays which contain vital information that most all
the page scripts rely upon for
I've been using Dreamweaver (currently MX) since I started writing PHP
and I would defintiely recommend it if you can get hold of it.
You can download a trial from
http://www.macromedia.com/cfusion/tdrc/index.cfm?product=dreamweaver
William Stokes wrote:
Hello,
I'm quite new with writing php cod
Hi,
Is it possible to define my own superglobal variable or array?
Rather than doing `global $cfg;` in all of my functions, I'd like to
just set $cfg as a superglobal in one place and forget about it.
Yes, I'm aware I could use $GLOBALS['cfg'], but I'd much prefer it
worked like $_GET etc.
---
On Fri, 14 Jan 2005 01:30:39 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote:
> do you use a visual client
> for subversion?
No. I use svn from command line.
> the reason I ask is that I found cvs a nightmare until
> someone pointed me to tortoiseCVS - which is just too easy to use!
> And I just no
Adam Hubscher wrote:
> From within the application, I use one page to include
> classes/variables and so on. Is there a way (I may have been missing it
> in the documentation for PHP, however I didnt see anything related) to
> prevent a user from directly accessing/executing *.php by the file
> ma
adwin wijaya wrote:
> SELECT "group" as type FROM mytable WHERE id ="101010"
> UNION
> SELECT "individual" as type FROM myothertable WHERE id="101010"
>
> The strange result if only one result displayed from myothertable, so
> the "type" will become "indiv" instead of individual.
>
> But when I tri
I would check what hitting the machine from the network. At the most
basic level, just try "netstat 1" on the command line. Also try iostat
1 to see what load the machine has. It may not be PHP or Apache but
something else, maybe a denial of service attack.
On Jan 13, 2005, at 10:02 PM, Brent C
On Thu, 13 Jan 2005 16:25:30 -0600, Adam Hubscher
<[EMAIL PROTECTED]> wrote:
1 (the preferred way): user accesses
http://www.example.org/index.php?function=Join, this loads the class
NewUser and begins its implementation. Because of the __autoload, it
includes class.join.php, in order to u
> as per PHP5 example
>
> 1 (the preferred way): user accesses
> http://www.example.org/index.php?function=Join, this loads the class
> NewUser and begins its implementation. Because of the __autoload, it
> includes class.join.php, in order to utilize the class.
>
> 2 (the wrong way): user acc
Hi,
This maybe a PHP problem, but is associated with Apache too - so my
apologies if it is slightly off topic. My web hosts use a CGI wrap
version of PHP 4.3.10
I have made a 404 custom error handler, using .htaccess in a directory
- it is usppoed to route all unfound pages to error.php, and work
Adam Hubscher wrote:
I am trying to prevent 2 from even occuring, utilizing a piece of code
that would check if index.php had included it, or not. This code would
be in the beginning of all the class files, at the top, before any
other code was to be executed.
use the 2 constants/variables avai
Since I do Java, Python etc. on OSX/windows/Linux, I'm using Eclipse
with the PHPEclipse (PHPEclipse.de), I'm just starting PHP, but I'm
pretty happy with it so far. One thing I am wondering about is the
situation which Debugging in PHP4 / PHP5. Is there a Debugger for PHP?
http://dd.cron.ru/d
On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning
<[EMAIL PROTECTED]> wrote:
> Could anyone point me to a web page or other documentation that shows a
> SIMPLE example of encryption?
I know absolutely nothing about encryption. There are like 6 people
in the entire world who know something about i
Thomas Goyne wrote:
On Thu, 13 Jan 2005 16:25:30 -0600, Adam Hubscher
<[EMAIL PROTECTED]> wrote:
1 (the preferred way): user accesses
http://www.example.org/index.php?function=Join, this loads the class
NewUser and begins its implementation. Because of the __autoload, it
includes class.joi
On Thu, 2005-01-13 at 15:06, Jason Morehouse wrote:
> Hello,
>
> I normally can take a bit of regex fun, but not this time.
>
> Simple enough, in theory... I need to match (count) all of the bold tags
> in a string, including ones with embedded styles (or whatever else can
> go in there). and
Brian Dunning wrote:
Howdy all -
I have RTFM and STFW and I still can't get encryption to work. What I
good man! (for trying that is) bummer its not working yet...
finally ended up with from the PHP documentation is long, unwieldy,
confusing, and doesn't work. I give up. I threw my big mess away
Hi,
Friday, January 14, 2005, 7:53:30 AM, you wrote:
BD> Howdy all -
BD> I have RTFM and STFW and I still can't get encryption to work. What I
BD> finally ended up with from the PHP documentation is long, unwieldy,
BD> confusing, and doesn't work. I give up. I threw my big mess away and
BD> wo
Jason Morehouse wrote:
> Simple enough, in theory... I need to match (count) all of the bold tags
> in a string, including ones with embedded styles (or whatever else can
> go in there). and . My attempts keep matching
> as well.
I think something not unlike:
'/|>)/'
The point being that you
Tom wrote:
> Richard Lynch wrote:
>
>>Tom wrote:
>>
>>
>>>I've just started playing with the php5 improved mysqli extensions.
>>>
>>>I have the following code:-
>>>
>$mysqlim = new mysqli("localhost", "myUser", "myPassword","myDB");
>>>
>>>$updateQuery = "UPDATE client SET status = 'INACTIVE' W
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
> -Original Message-
> From: Adam Hubscher
> Sent: 13/01/05 22:25
>
> From within the application, I use one page to include
> classes/variables and so on. Is there a way
Adam Hubscher wrote:
From within the application, I use one page to include
classes/variables and so on. Is there a way (I may have been missing it
in the documentation for PHP, however I didnt see anything related) to
prevent a user from directly accessing/executing *.php by the file
making s
On Thu, 13 Jan 2005 16:37:24 -0800 (PST), welly limston
<[EMAIL PROTECTED]> wrote:
> i'm usually use Dreamweaver to edit php code
> and debug in it
> it's very help ones us
> why don't u try
Why don't you mail me $399 and I will. :)
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
adwin wijaya wrote:
Hi...
I have an query for mysql that looks like:
SELECT "group" as type FROM mytable WHERE id ="101010"
UNION
SELECT "individual" as type FROM myothertable WHERE id="101010"
The strange result if only one result displayed from myothertable, so
the "type" will become "indiv" ins
I have a form and once the form is submitted, php code build csv file
with entered information and store it on server in temp file. Then send
this file as an attachment to me. Code to send an attachment is included
in main code.
The code to store csv file works fine.
I'm getting the attachment i
Why not ask a MySQL mailing list?
[snip]
.. is this mysql bug ?
[/snip]
--
--
David Green
Information Centre, Central Science Laboratory
Sand Hutton, York, YO41 1LZ
Phone: +44 (0)1904 462388 (GTN: 5129 2388)
Fax:+44 (0)1904 462111
E-Mail: [EM
hi,
I must change some bytes in array filled from a msssql text field; now I do:
function adjust (&$ar_in) {
$ar_in{0}='Ð';
$ar_in{1}='Ï';
$ar_in{3}='à';
$ar_in{4}='¡';
$ar_in{5}='±';
$ar_in{7}='á';
}
I've copied/pasted values from an hex editor and this works ok. Question
On Friday 14 January 2005 05:06, Jason Morehouse wrote:
> Simple enough, in theory... I need to match (count) all of the bold tags
> in a string, including ones with embedded styles (or whatever else can
> go in there). and . My attempts keep matching
> as well.
Quick-n-dirty:
preg_match_a
Do you have the example regex so far?
I'd suggest maybe mailto:[EMAIL PROTECTED]
Sent: 13 January 2005 21:07
To: php-general@lists.php.net
Subject: [PHP] regex help
Hello,
I normally can take a bit of regex fun, but not this time.
Simple enough, in theory... I need to match (count) all of the
Jochem Maas wrote:
John Nichel wrote:
Jochem Maas wrote:
(no disrespect to Zend, but ZCE _sounds_ a lot like MSCE and everyone
knows what thats worth ;-) - just a but of humour guys!)
Oh yeah, I can hear all the Zend people laughing from here.
good cos that means they have a better sense of h
[snip]
I have an query for mysql that looks like:
SELECT "group" as type FROM mytable WHERE id ="101010"
UNION
SELECT "individual" as type FROM myothertable WHERE id="101010"
The strange result if only one result displayed from myothertable, so
the "type" will become "indiv" instead of individua
How about setting a variable before calling the include (eg
$fromIndex=true)?
In class.join.php you could include, for example, at the top of the file
Adam Hubscher wrote:
From within the application, I use one page to include
classes/variables and so on. Is there a way (I may have been missing
- Original Message -
From: "Adam Hubscher" <[EMAIL PROTECTED]>
To:
Sent: Friday, January 14, 2005 1:25 AM
Subject: [PHP] Preventing execution without inclusion
> From within the application, I use one page to include
> classes/variables and so on. Is there a way (I may have been missi
adwin wijaya wrote:
Hi...
Adwin,
(btw: php-db@lists.php.net would be a better place for this question)
do you realise that GROUP is an SQL keyword (as in the GROUP BY clause)
and as such you will need to escape it using backticks (in the case of
MySQL).
Also I have a sneaking suspicion that TYP
Richard Lynch wrote:
Tom wrote:
I've just started playing with the php5 improved mysqli extensions.
I have the following code:-
$updateQuery = "UPDATE client SET status = 'INACTIVE' WHERE clientName =
'Tom'";
if ($mysqli->query($updateQuery))
{
$updateCount = $mysqli->affected_rows;
echo
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
> -Original Message-
> From: Jason Morehouse
> Sent: 13/01/05 21:06
>
> I normally can take a bit of regex fun, but not this time.
>
> Simple enough, in theory... I need to
Adam Hubscher wrote:
From within the application, I use one page to include
classes/variables and so on. Is there a way (I may have been missing it
in the documentation for PHP, however I didnt see anything related) to
prevent a user from directly accessing/executing *.php by the file
making s
When using $_POST vars is it required that a form is
used ?
In other words I can create an href link and echo
variable and pick them up using $_GET in the following
page.
No so with $_POST ?
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
On Thu, 13 Jan 2005 16:06:32 -0500, Jason Morehouse <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I normally can take a bit of regex fun, but not this time.
>
> Simple enough, in theory... I need to match (count) all of the bold tags
> in a string, including ones with embedded styles (or whatever else
1. Does anybody know an editor that supports Smarty tags natively or via some
sort of custom extension/configuration?
2. Does anybody use Scite (for Un*x) or SciteFlash (for Windows)? I prefer
it's clean and lightweight interface (once properly configured)...
Regards,
Bostjan
On Thursday 13
Hi,
Long time reader, first time poster. I've been using Dreamweaver to
generate my PHP (I know - but I'm a designer... most of this makes
absolutely zero sense to me), but I've run into something that I know could
be done better. If you look here: http://pastebin.com/228804 you can see
that I
Hello,
Just wondering if anyone is using the apache worker module with php?
I've complied php5 with zend threadsafe support, and apache2 with the
MPM worker module on a Linux box. Everything seems sweet.
mysqli_thread_safe() reports true... anyone know if this configuration
may include modules tha
http://www.maguma.com/
zerof
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.maguma.com/
zerof
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I used PHPedit 0.6, PHPDesigner 2005, PHPed and Zend on windows.
and vi, eclipse and zend on linux.
Here's what i prefer :
if u'r looking for a free editor try eclipse/linux or PHPDesigner 2005/windows
and if u can afford the licence try the Zend, am using it by now and
it's magic ! plus it runs on
[snip]
Thanks guys for any help troubleshooting this.
[/snip]
Is the drive full? Enough memory? An unusual number of connections? Any
other applications added to the system? what do you see when you run
top? Have you looked at a MySQL process list?
--
PHP General Mailing List (http://www.php.net/
On Thu, 2005-01-13 at 09:46, Cere Davis wrote:
> Does anyone know how to write php libraries in a modular way so that you
> can both test the libraries/functions on the command line with arguments
> and/or use the php library as a part of your web code with 'require_once()'
> syntax? Sort of like
Hi,
This maybe a PHP problem, but is associated with Apache too - so my
apologies if it is slightly off topic. My web hosts use a CGI wrap
version of PHP 4.3.10
I have made a 404 custom error handler, using .htaccess in a directory
- it is usppoed to route all unfound pages to error.php, and work
Hi
> > Is the above the ACTUAL email you are sending?
Haha. That would be a funny email. No, this is just sample text. The actual
email is 8KB and contains no images/attachments.
> (I just tried googling the problem but the only thing that seemed
> related that I came up with were Michiel posts
* Luke Barker <[EMAIL PROTECTED]>:
> This maybe a PHP problem, but is associated with Apache too - so my
> apologies if it is slightly off topic. My web hosts use a CGI wrap
> version of PHP 4.3.10
>
> I have made a 404 custom error handler, using .htaccess in a directory
> - it is usppoed to route
On Thu, 13 Jan 2005 22:11:05 +, Justin <[EMAIL PROTECTED]> wrote:
> Is there a Debugger for PHP?
php -l filename.php for basic syntax check.
If you need more than that you can turn of full error reporting and
view the errors directly on the screen:
error_reporting( E_ALL );
ini_set( 'display
Having a very frustrating problem and I can't seem to figure out why
it's happening.
1. As of last week, all of our applications have started to work
intermittingly. The codebase has not changed.
2. Sometimes the application will display, sometimes it won't. The
browsers "loading progress bar" wi
54 matches
Mail list logo