Hi Brian,
Try this function,
http://aidan.dotgeek.org/lib/?file=function.array2table.php
"Brian Dunning" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all - it seems the longer I use PHP, the stupider my questions are
> getting. I finally got my XML parsed into an array, but
Contact the company who wrote the software you're trying to use for support.
"The Disguised Jedi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Some might consider this OT, but I need to figure this out somehow, and
google has been no help.
I downloaded and installed PHP Designer
thanks for the replies, but...
> If there is a php.ini file in the php root directory, then that gets
used. Otherwise, the php.ini file in C:\Windows (iirc). If the
Actually it seems like the Zend IDE installed another apache server. But
the situation is more confusing.
When I start my standard
hi -
is there anywhere I can get a pre-compiled GD (graphics library) DLL for
windows, that supports the GIF writing?
The notices on the GD page say in big letters "not intended for use with
PHP!"...
http://www.boutell.com/gd/
For some reason the PHP install I have (Zend IDE has taken over my
ma
(on windows) can someone tell me where to define which php.ini gets used?
On my dev box, I installed the zend editor. Now when i do a
localhost/phpinfo()
from a normal browser window (ie not from within the zend IDE) it says php
is using the <..>/zend/php.ini settings file...
within apache's ht
We have a chapter in the manual about this,
http://www.php.net/manual/en/language.types.float.php
This is also interesting:
http://docs.python.org/tut/node15.html
Kind Regards,
Aidan
"Brian T. Allen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> OK, I'm totally stumped
I cannot fathom why you would use preg_match for this.
This will get an "exact match"...
if ($ip == $_SERVER[REMOTE_ADDR]) { $ban = true; }
Despite this being the worst idea I've ever seen, combined with a true lack
of understanding, I wish you well.
"Nick Wilson" <[EMAIL PROTECTED]> wrote in
If you want to use older functions without upgrading your version of PHP,
try PHP_Compat.
Here's file_get_contents which is comparable in speed to the native version:
http://cvs.php.net/co.php/pear/PHP_Compat/Compat/Function/file_get_contents.php?r=1.19
Most information can be found at http://pe
http://php.net/language.types.html#language.pseudo-types
"Thomas Hochstetter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi again,
>
> I have always been wondering how this is done properly:
>
> Here is an example:
>
> [snip]
> class A {
> function name( $a, $b, $c) {
>
Hi Michael,
Thanks very much for the assistance, I'll have to investigate further!
Kind Regards,
Aidan Lister
"Michael Sims" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Aidan Lister wrote:
>> Hello list,
>>
>> I'm pretty terrib
Hello list,
I'm pretty terrible with regular expressions, I was wondering if someone
would be able to help me with this
http://paste.phpfi.com/31964
The problem is detailed in the above link. Basically I need to match the
contents of any HTML tag, except a link. I'm pretty sure a lookbehind set
Hi Gerald,
If you did see something like that, it was a mistake in our manual :)
I've documented typehinting now, though it will take a while to show up in
the manual.
http://php.net/language.oop5.typehinting
Kind Regards,
Aidan
"Gerard Samuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAI
You can't,
It's a security thing.
"Marten Lehmann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I need to load extensions with dl() within PHP running as CGI. But as this
> is a shared hosting environment, I don't have access to the extension_dir.
> Anyway, dl() pr
http://pear.php.net/package/Structures_DataGrid
"Blackwater Dev" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does anyone have a nice clean way to provide data grids with php short
> of simply creating a bunch of input boxes or using flash?
>
> Thanks!
--
PHP General Mailing
Hello,
Another test to ensure we don't have any automatic replies or bouncing
addresses. Please don't reply, or you will be removed.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Tadas,
PHP5 has very optimised code for loops, try upgrading and tell us how it
goes!
Also, if it's applicable, a plain "foreach" loop is actually faster.
Kind Regards,
Aidan
"Xongoo!Com: Central Unit" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Holla,
>
> Maybe someone kn
Krzysztof,
Take a look at some PHP Profiling extensions, such as Advanced PHP Debugger
or XDebug. This will help you locate the slow parts of your script.
"Krzysztof Gorzelak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
> I'm trying my new php5 script, but it takes about 1.
There was a little mistake in the code I posted before, try this one:
http://aidan.dotgeek.org/lib/?file=function.convert_timestamp.php
"Diff Fannehh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have this date in timestamp format:
>
> $a= 20040810114155;
>
> I want to
That's a mysql timestamp, if you want to manipulate dates in PHP you'll need
to use unix timestamps.
You have a couple of options,
select unix_timestamp(myFld) as myFld from myTbl
Then just add 60*60*24*7 to it.
Or, parse it with:
function convert_timestamp ($timestamp)
{
$timestring = substr
Sure, define them outside the function :)
"Justin French" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If I define a constant within a function, it appears that the constant
> is only defined within the namespace of the function. Fair enough.
>
> Can I globalise these definition
Hi Vidyut,
This function will be replicated in userland code when I get some more time,
I'll add a note when it is done.
For more info, see http://pear.php.net/php_compat
"Vidyut Luther" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
> I'm looking at the PHP manual whic
Alfonso,
Please stop sending crap to this list, or you will be unsubscribed.
We're more than happy you've been able to sign up, but we don't need 4
emails detailing your progress.
Kind Regards,
Aidan
"Alfonso Baqueiro" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you are vi
Hi Tobias,
I don't really understand what you are asking, but if you want to send HTTP
headers please see:
www.php.net/header
If you need "Arguments for http headers", see the protocol specification
http://www.faqs.org/rfcs/rfc2616
"Tobias grønlund" <[EMAIL PROTECTED]> wrote in message
news:[E
Hi Rosen,
It doesn't hurt to use google you know.
[Q:]
Is there going to be a version of PHP 4.x which is declared stable for use
with Apache 2.x or, is this feature going to be reserved for PHP5?
[A:]
The development of the Apache 2 module is completely disconnected from the
PHP 5 efforts. I th
Please do not reply to this email, or you will be taken off the mailing list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://php.net/migration5
5.0.1 is coming out shortly, wait for that.
"Gerard Samuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sunday 01 August 2004 12:19 pm, Randall Perry wrote:
> > Any major gotchas going from 4 to 5? Any problems with PostgreSQL
> > connectivity? Will
Hi Ulitin,
When a user visits your page, you can create a session. This session will
identify the user throughout his visit.
Most people tend to log all actions to an IP address, or a hostname, this is
probably easier.
To get the IP, browser, referer, etc, look at:
http://aidan.dotgeek.org/lib/
Hi Ron,
Sounds like you've done everything correctly, just PHP wasn't installed as a
CLI. Just to be sure, do a $ find / -name php
Then, if it is found, $ lynx -source http://go-pear.org/ | /path/to/php
If it's not found, just grap a PHP rpm (make sure it's a CLI version,
or --with-cli) and inst
Rausch,
I've never seen this done before, I wouldn't bother. It's definitely not
possible without tapping into either the webserver or webserver log files.
Regards,
Aidan
"Rausch Alexandru" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I have a script that creates automatic
Michael,
You need to gain some very basic debugging skills.
If you're trying to update a database:
1) Check the mysql_query is actually being run!
Add a line above mysql_query, die('hello');
If you see hello, the query is being run
2) Check there is no error on the query,
$query = "some query";
Hi Scheidecker,
Try posting to [EMAIL PROTECTED], the author will be able to help
you with your question.
"C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello all,
>
> In order to use pear mimedecode.php I have a few questions that were not
> answered b
What is PHPEdit to do with this mailing list?
Please don't send useless stupid crap to the hundreds of users subscribed.
"Ee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Sorry Guys,
>
> I know that this is off-topic. In one of the sites,I saw the subject AD
> {PHPEdit almost as
I don't understand what you're asking.
If you want to return a portion of an array, simple return the element
holding it.
In your example:
POST["var1_arr"]["dim1"]["dim2"]
return var1_arr;
Will return whatever lives in var1_arr.
Have a play around, you can see what a variable contains using pr
Please don't mail the list by clicking "Reply" to an existing post, it
causes problems with the news server (and anyone using it).
"Bruce" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
hi...
got a simple question...
i have the following:
it doesn't seem to print... which le
Hi "News" (perhaps use your real name next time),
> I run a .txt perl/cgi database/shopping cart which uses the command line
>
> http://localhost/_uns/cgi-bin/store.cgi?command=listitems&pos=0&type=all
>
When you say command line, what's that have to do with the localhost (ie,
noone else can clic
Sounds like you want to set up a proxy.
PHP is not the ideal language to use for this, although it would be
possible, though a lot of work.
Have a look on google for http proxies, see how you go.
"Tristan Pretty" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there...
> My m
"When it's ready"
Hopefully we'll see the stable release in the next 24 hours.
"Gabriel Medina" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So is there a date set yet or is it just to wait?
>
> How is the progrese one the respons to RC3? Is it many bugs left?
>
> Dear Reagrds
stuff is disabled by default in PHP5.
In terms of backward compatability I'd still advise you to use the newer
form, there are very few hosts that still run php4.1.0 (because it has many
dangerous bugs).
> (P.S.: Aidan Lister, this may be a dumb question, but please don't bother
> res
I don't see how these questions are related, please ask each question
separately next time.
If you want to put variables in your regex's, you must use preg_quote.
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok. This is not a numeral problem? strval did no
Try cURL,
http://php.net/curl
"Martin Schneider" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello! I want to use php to gather some informations on a website. You
> have to login to this website. In a brwoser, a cookie is set at login
> and identifies you.
>
> How can I handle
Did you look on the mambo forums as suggested?
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm using Mambo Open Source CMS to run a site I'm building, and seem to
have a
> problem logging into the Administration Tool. It comes up with:
>
> Fatal error: session_start(): Failed to
What is a codebar?
"Vicente Vives" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello everybody,
>
> I'm looking for a way to generate codebars from the web. I found some
> ActiveX for ASP but i want to generate them using PHP :-)
>
> Do you know how?
> Do you know any library to
I use the following script:
http://aidan.dotgeek.org/lib/?file=Visitor.php
As you've been told about 400 times, there's no reliable way to get the
information.
The above script checks if the client connected using a proxy, then falls
back to what the webserver sends.
"Rosen" <[EMAIL PROTECTED]
If you're receiving binary data back, this function may interest you:
http://aidan.dotgeek.org/lib/?file=function.hexdump.php
Also, why are you messing with chr etc?
$string = "\x00\x01\xFF";
etc.
"Coder_1024" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for the feedback
If you're asking which is faster, PHP or Java, it's a very difficult
question and I doubt anyone will give you a concrete answer.
I'd suggest writing the application in a much faster compiled language, c++
for example.
"C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL P
I suggest not using a regex.
There are better tools for parsing an email, for example "formail".
$email = `formail -x Return-Path`;
See google.com for more information
Regards,
Aidan
"Syed Ghouse" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All
will anyone give me a soluti
It's a virus, duh
"John Cashmore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what are these posts and why do they keep getting posted with some
> picutre with a password?
>
>
> On Sun, 27 Jun 2004 17:53:49 +0100, Hitcho <[EMAIL PROTECTED]> wrote:
> >
> > --
> > PHP General Mail
$_SERVER['QUERY_STRING'] has nothing to do with the refering website.
foo.php?bar=6
The QUERY_STRING for the above example is: bar=6
When someone visits your page, they visit foo.php (for example), thus your
QUERY_STRING will always be blank.
I believe you're looking for HTTP_REFERER
"I.A.
Did you restart your webserver to make sure the changes were loaded?
"Tom Chubb" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I ave a strange problem with my error reporting!
> I have set php.ini to: error_reporting = E_ALL but I don't see any
errors.
> (After I was happy thing
Hi,
You've sent this email to a mailing list with a couple of thousand users.
I'm probably not alone when I say "what on earth are you talking about?".
I don't know what PHP-Login is, if you have a problem using whatever
software that may be - please contact them about it.
You can find the PEAR
If you don't know what it is, why do you want to make one?
There's a lot more to this than simple PHP, I suggest you start on
google.com
"Syed Ghouse" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All
will anybody explain me what is email autoresponder?.
and how to create in ph
Think about it.
Step 1) Analyse the problem.
a) Set a cookie.
b) Test if the cookie has been set.
c) Display data from cookie
Step 2) Read the fucking manual
a) http://php.net/setcookie
b) http://php.net/setcookie
c) http://php.net/setcookie
If you can't work it out, and have actually done some
Please read:
http://www.catb.org/~esr/faqs/smart-questions.html
"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i fixed it i had an endless loop oops :)
> "Water_foul" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > i dont know why but the following
No, because that's not a standard format.
You'll have to write your own function (as you've done).
If you're looking to store an array as a string, look at serialize()
"Pete Forman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a standard function that converts a string
Please don't "hype" your post, or you'll find, as do many children, no one
will pay it any attention.
"Jack Bauer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi,
>
> i'm looking for a methode to use threads in php (on linux)
--
PHP General Mailing List (http://www.php.net/)
T
lt;[EMAIL PROTECTED]>
To: "Aidan Lister" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 08, 2004 2:25 AM
Subject: RE: [PHP] Re: if/elseif/else v. switch
Aidan Lister <mailto:[EMAIL PROTECTED]>
on Saturday, June 05, 2004 6:19 AM said:
> You
Hehe Curt, point made :)
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Kathleen Ballard ([EMAIL PROTECTED]):
> > I have been asked to make a fact based comparison of
> > the pros and cons of asp.net and php. I am not trying
> > to start a war and apologi
- on the list, in front of
everyone, as you so boldly put it.
"Rachel Rodriguez" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> --- Aidan Lister <[EMAIL PROTECTED]> wrote:
> > This appears to be a really, really stupid question.
> >
This appears to be a really, really stupid question.
If they are indentical in operation, then ofcourse there will be no
noticeable difference to the user.
One may note that a switch statement is faster, because the condition is
only evaluated once. However you did not ask about the speed differ
Hi,
You could use $_SERVER['DOCUMENT_ROOT']
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 2004-06-03 at 23:15, Stephen Craton wrote:
> > I've wondered for quite some time, and search just as long it seems
like,
> > for a way to get the current URL direct
Hi Dsx,
If you're unable to use classes from PHPLIB, I suggest you learn PHP first.
Using objects for the first time is very confusing, but there are some
excellent guides on the internet. I suggest you spend a couple of days just
experimenting, writing your own classes to do menial tasks, etc.
W
Hi Justin,
For future reference, your choice of subject is poor - be more descriptive,
your subject could apply to 99% of the questions asked on this list.
I have no idea what you've created in DW MX 2004, nor have you given us any
information about it.
If you have an authorisation level stored
Try it?
(Yes, it works)
"Bob Lockie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Should 'include $var;' work?
> I need go to an HTML page after the form has been submitted.
> page A -> program B (no output) -> page A
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
I'd implement access control in the java object if possible, sounds easier.
"Tom Playford" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear all knowing list,
>
> I am trying to control the movement of a camera in real time from the web.
But I also need to make sure that only the
Hi Chris,
Please send your message to [EMAIL PROTECTED], you are more likely
to get a response there.
"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all. Hopefully someone here can show me what I am doing wrong. I am
> trying to write a small script to ftp into a serv
Hi Phillip,
For future reference, PHP install questions are best asked on the
[EMAIL PROTECTED] mailing list, however I'm sure someone can answer
your question here also.
"Khutjo Phillip Leremi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi I have recently installed gd-2.0.15
; <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks Aidan,
>
> I get a list of installed packages.
>
> What do I or one of my users need to do to access / use the DB package?
>
> Any help, advice, example is very much appreciated.
>
> Dave C
>
>
>
PEAR doesn't need to be "installed", so to speak.
PEAR is simply a set of classes, at heart, they can be downloaded and used
without problem from the pear.php.net website. However, PEAR does have an
installer program that allows you to install these packages from command
line.
To check if you hav
Yep, MDB2 is the best bet
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "David" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi all
> >
> > I have been using mysql as the database for my PHP application.
> > Now my manager ordered me to use Micr
There are many, many benchmarks done comparing PEAR::DB to PEAR::MDB to
AdoDB, PEAR::DB is much slower than the native API, AdoDB is the fastest but
least functional - I suggest you try PEAR::MDB2
http://pear.php.net/package/mdb2
once you get into it, you'll love it
"Rainer müller" <[EMAIL PROT
Nothing this big will be solid, if you're looking for a complete PHP website
system, try postnuke/phpnuke whatever.
"Bruce" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> ryan...
>
> we've seen apps that have had some of the functions we're looking for...
ie
> dating apps, cms syst
This doesn't sound like a very secure method of doing things at all. Also,
managing a file that big sounds like quite a nightmare.
Have you looked at using OOP stuff?
Use a couple of standard pear classes like Auth, MDB2, and you're well on
your way to having a very maintainable site.
"Shaun" <
Do you have to access that variable statically?
If you're scope is the class:
echo $this->myInstance;
Otherwise,
echo C::$myInstance will access it outside the class (I think), even though
it's inherited.
"Rudy Metzger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear all,
>
Handy function for this sort of stuff:
http://ircphp.com/users/imho/?file=function.hexview.php
"René fournier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> When reading from a Socket Server, my Socket Client retrieves data that
> includes ASCII and binary data:
>
> while(($buf = s
Hi,
I use the following class to get Path information:
http://ircphp.com/users/imho/?file=Path.php
Let me know if this is helpful at all
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello. I'm relying on the following code so that a script can
> automatically
Simple!
$i = 0;
foreach ($foos as $foo)
{
// do stuff
$i++;
if ($i > 5) break;
}
Cheers
"Verdon Vaillancourt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi :)
>
> I'm trying to put a stop in a foreach statement following the user
> suggestion here, php.net/manual/en
Yep, check out:
http://pear.php.net/net_ping
"News.Php.Net" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I was wondering if it's possible to issue a icmp echo / ping without
> actually using the ping program supplied with the operating system.
>
> Anyone has an idea?
>
>
Ooops, actually he was pretty ambiguous, please disregard my previous
comment :)
"Richard Harb" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Try
> echo $obj->$varname;
>
>
> -Original Message-
> From: greg
> Sent: Sunday, May 9, 2004, 9:21:52 AM
> > Hello,
>
> > I was jus
"Greg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I was just trying this but it doesn't work :
>
> class a {
>public $foo = "hello world";
> }
>
> $obj = new a();
> $varname = "foo";
> echo $obj->$$varname;
>
$$varname is turned into $foo, what is the value of $
Richard,
I think you need to read the questions more accurately - your last two
replies have been somewhat incorrect
"Richard Harb" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Try
> echo $obj->$varname;
>
>
> -Original Message-
> From: greg
> Sent: Sunday, May 9, 2004,
Hi,
Richards email was kinda wierd, so I'll reply to your email directly
> Hi, all --
> I guess I need a primer on cookie usage. I've read the manual regarding
> setcookie and have gone back to look at everything having to do with
> cookies on this list in the past few months (it seems that I'm
Hi,
Make sure the charset of your document matches the charset sent by the
server - If you tell the browser the charset is A, and use characters from
charset B, you will get the problem observed.
The charset can be sent from Apache, PHP and the actual charset is set in
the document.
It's a pain
Found it, it's generated by ./configure (I think)
"Aidan Lister" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi guys,
>
> I'm trying to compile a PHP5 RC2 RPM, does anyone know where I can get a
> SPEC file from?
--
PHP General Mailing Lis
Hi guys,
I'm trying to compile a PHP5 RC2 RPM, does anyone know where I can get a
SPEC file from?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I found some more information about it here:
http://bugs.php.net/bug.php?id=24687
It looks like you should assign an object to a variable before returning it.
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Aidan Lister wrote:
>
> > H
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Aidan Lister ([EMAIL PROTECTED]):
> > How _should_ this be done? In terms of "best practice".
> >
> > > function foobar ()
> > {
> > retur
How _should_ this be done? In terms of "best practice".
Or:
Please don't reply if you really, really don't know what you are talking
about.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if (cond || cond2)
OR
if (cond OR cond2)
What do you use, and why?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't understand the question.
One should always check the existence of something before attempting to use
it.
If (isset($var) && gettype($var) == "boolean") is one way of type checking.
"Christian Jul Jensen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> In PHP5 the b
No, you are confusing javascript (client side) with PHP (server side).
"T Umashankari" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hello,
>
> Is it possible to call php function in the onclick event ?
>
> REgards,
> Uma
--
PHP General Mailing List (http://www.php.net/)
To un
There's a "nu-fork" library or something around.
There's a pear package which provides an API to this. Have a look around.
"Michal Migurski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > We have a web application that forks off an external program to inject
> > an email in the o
Ofcourse
"Andrew fenn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have two text files with two rows of data on each line sperated by a tab
for about 20 lines in each file. Would it be faster accessing this data by
putting it in a mysql table?
>
>
>
>
>
PROTECTED]
> I just build a testcase to check wether PHP does or not and it doesn't
even
> if i have 1080 chars in a line :p
>
> -- red
>
> > No, PHP explicity inserts at 80chars
> >
> >
> > "Red Wingate" <[EMAIL PROTECTED]> wrote in mes
It seems they've fixed this in php5, so I can't complain.
"Aidan Lister" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Why do these functions wrap at approximately 80 chars? It's stupid! How
can
> this be worked around?
--
PHP General
No, PHP explicity inserts at 80chars
"Red Wingate" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Red Wingate wrote:
>
> > Aidan Lister wrote:
> >
> >> Why do these functions wrap at approximately 80 chars? It's stupid! How
> >
Why do these functions wrap at approximately 80 chars? It's stupid! How can
this be worked around?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I suggest you take everyone's advice and use one of the thousand database
abstraction objects.
At the very least, look at how they are put together.
This one is an excellent example:
http://pear.php.net/package/DB
"Andy B" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> makes sinc
Was that from a > pear install xml_rpc ?
"Electroteque" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Pear does not seem to be actually in the sources for some reason
>
> [PEAR] XML_RPC: The following errors where found (use force option to
> install an
> yway):
> missing package
http://pear.php.net/package/db
"Monty" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to use fewer resources and processes when making database
> connections in my scripts, so, upon the first call to make a DB
connection,
> I store the Link Resource ID in a constant vari
Yes, you'll need to parse the output of the page.
"Dave" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is it possible to retrieve dir file list from an internet server folder
from
> within a php program?
>
> In the browser, the http:// page displays "Index of" and a list of files.
1 - 100 of 126 matches
Mail list logo