Thanks. That will work quite nicely.
-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:20 PM
To: Matthew Walker; [EMAIL PROTECTED]
Subject: RE: [PHP] PEAR DB Questions
don't know about pear, but in case you can't do it,
How do I use ereg to check for MSIE 5.5 and above.
eg: eregi("(MSIE.[56])",$HTTP_USER_AGENT)
This only gets version 5 and 6 ... but I want 5.5 and above. Any
ideas?
Regards,
Matthew Delmarter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
hat most users can't use PHP. They'll have to pay a (very
small) monthly fee to have access to it. This is partly as a very loose
security measure, so that not everyone has access to PHP.
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
---
Outgoing mail is certified Virus F
The lack of fprintf() has been discussed on this list before, but I'm
not sure what the status is on the PHP development side...
http://bugs.php.net/bug.php?id=1027
-Original Message-
From: Bill Rausch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 7:08 PM
To: [EMAIL PROT
Leave the name as email. If you really want to call it email[],
you should be able to reference this in JavaScript as the object
document.myform["email[]"]
If you leave it as email, you can then convert the email variable into an
array using explode() or split() as so:
Matt
> Hey all!
>
> document.myform["email[]"] seems to give me a syntax error.
Check if your already using "" you'll need to use single quotes as so:
(tested on IE 5.5 and NS 4.08, works)
>> If you leave it as email, you can then convert the email variable into an
array using explode() or split() as so:
> On
Example
";
}
?>
Please note, empty elements will not be handled
btw Any Australian employers want a programmer for awhile?
- Original Message -
From: Sharat Hegde <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 9:55 PM
Subject: [PHP] Parsing a CSV fil
Have you tried using curly brackets?
print "$a[B]{$quotes[$a[B]]}"
Does that work? Just cuious...
-Original Message-
From: Job Miller [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 8:44 PM
To: Maxim Maletsky (PHPBeginner.com); [EMAIL PROTECTED]
Subject: Re: [PHP] assoc
Title: Blank
Is there a way to verify if a file is in use
by another user before fopening it?
Matthew
Luchak Webmaster Kaydara
Inc. [EMAIL PROTECTED]
Title: Blank
damn... RTFM. I
just now discovered flock. Sorry 'bout that.
ps. Don't flame me
for being rude to the original poster. I am the original
poster
________ Matthew
Luchak Webmaster Kaydara
Inc. [EMAIL PROTECTED]
-Original Messag
So, can someone give me the spot to look in the documentation to find
out how to make this switch?
-Original Message-
From: Chris Hobbs [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Submitting variables via /'s
Joao Prado
Last time I checked, there is a class for creating tar files in PEAR...
Check your PHP installation...
Once you create a tar file, I'm sure you can filter it through zlib to
create a .tar.gz file.
-Original Message-
From: Georgie Casey [mailto:[EMAIL PROTECTED]]
Sent: Friday, October
riables' for different
> tabs or windows in a browser.
>
> www.scotttrade.com does it somehow, and I see no GET variables on the URL.
>
What about $_SESSION variables? You can use the $_SESSION to keep the same
identity from page to page and still require a different login
rnd = array("1"=> "bkgrnd-default.gif", "2" =>
"bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif");
http://us2.php.net/manual/en/function.array.php
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
quot;1"=> "bkgrnd-default.gif", "2" =>
> "bkgrnd-positive.gif", "3" => "bkgrnd-negative.gif");
> $imgNeeded = table['field'];
> $imgName = $imgBkgrnd[$imgNeeded];
>
Yup, just like that.
You can even get
to have both. I'm using both on a server I have.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with which user's permissions PHP scripts are executing.
>
If you chown the PHP script to the web server's userid, that should be
good enough.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
orter code block but is harder to debug later. Should I be striving for
> the shortest most compact code utilizing the fewest possible variables.
> Or,
> can I code in a style which is easier to read and debug?
>
> --
> Robb Kerr
It depends. But in this case probably not. If I had sever
} else {
> $vBkgrndImage = "Bkgrnd-Body-Correct.jpg";
> }
> }
>
> Thanx
> --
> Robb Kerr
I can't see anything wrong. What's the error you're receiving?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Bkgrnd-Body-Correct.jpg";
>> }
>> }
>>
>> Thanx
>> --
>> Robb Kerr
Yes, see what the vars are, maybe something like this:
if ($vBkgrndImage == "AnswerPage") {
echo "1: $vAnswerID_RS_PageContent";
echo "2:".$row_RS_Pag
> exec("/usr/bin/gpg --homedir /home/testdir/.gnupg --armor --output e.gpg
> -e -r uid_someuser sf.txt");
>
> if I run it from the command line, it works fine...
>
I'm not sure but what if you defined an absolute path for your output
files (e.gpg and sf.txt).
>
> The object is not destroyed!? How do I destroy it without calling
> unset($b)?
>
Not sure if this is your solution but have you looked in to destructors?
Half down this page it explains:
http://us4.php.net/migration5.oop
--
--Matthew Sims
--<http://killermookie.org>
/* make 2 references but delete object, 2 variable
> * references still exits */
> $a = new foo();
> $b = &$a;
> $a = null;
> var_dump($a); /* NULL */
> var_dump($b); /* NULL */
>
> /* proof that references still exists */
> $b = new foo();
> var_dump($a); /* Object #1
Hi,
If I have a html textarea for inputting text into a database text field how can I keep
the formatting of the entered text?
i.e. on the html textarea if the user enters carriage returns i.e. a new paragraph I
want that to go into the database then when I retrieve it and display it on a norma
ata from the DB for a textarea use this before displaying:
$_POST["textarea"] = str_replace("","\n",$_POST["textarea"]);
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o convert it back
>> again before populating the text area.
>>
>> Suppose it just comes down to personal preference... Or is there a
>> specific
>> benefit to doing it this way?
>>
>> Regards
>>
>> Enda
>> On 27/07/2004 22:55, "Mat
erting with nl2br supposedly takes up more CPU. Doing many nl2br
conversions can run your site/program slow. In some cases, it's better to
convert before injection since disk space is more abundent than CPU
cycles.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing L
Hi I have this function below - if it reurns false I want to also return the error so
I can print it in my calling function. Can I do this?
Cheers
Matt
function fileUpload($file) {
if ($file['type'] == "image/gif" || $file['type'] == "image/pjpeg"){
if (@copy ($file['tmp_name'], "images/
what about returning the error the copy function would have thrown ?
Thanks
- Original Message -
From: "John Nichel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 28, 2004 3:00 PM
Subject: Re: [PHP] How do I return the error
> Matthew Oa
re any HTML output. At the end of the DB
injection simply add:
header("Location:your_php_page.php");
exit;
This will reload that page and all the $_POST data will be removed. THen
you can hit refresh all you want.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mysql_fetch_row($sth);
And then work with the $result array? If your DB indexes are listed as
CompanyCode and CompanyDB, then use:
$result = mysql_fetch_array($sth);
Then you have your variable names like you want:
$result['CompanyCode'] and $result['CompanyDB']
--
--Matth
>
> [smartass mode to full power - nothing personl]
> [/smartass mode]
Is that W3C HTML 4.01 compliant?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ofanity?
>
> Just my two cents.
Read the Fscking Manuel
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tp server?
>
> Thanks in advance
>
> Robin
First things first...can you send mail from this server? The server needs
to have some sort of MTA installed (sendmail,Qmail,Exim,etc) before you
can use the mail() function.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP Gen
is a lot easier to setup than
receiveing mail.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Object Oriented Model.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
od.
>
Unless it's about PEAR.
;)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he week the first day of the month
> lands on. I can take the info pulled with date() and use several
> switch() and if statements, but that's ugly. Anyone have any
> suggestions?
>
> Thanks!
> ~ David
>
You mean like:
$firstWkDay = date("l", mktime(0,0,0
ot;-mm-dd hh:ii:ss" just prior to converting them to a unix
timestamp with strtotime(). This will ensure you get a valid GMT result
for times during daylight savings.
EXAMPLE:
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mktime(0,0,0,$m,1,$y));
A little more simpler.
BTW, "D" or "l" pretty much do the same thing. It depends on whether you
wan Mon or Monday.
D = abbrviated name
l = full name
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
script. I am guessing, but I would do:
> "SELECT * FROM temp_users WHERE ID=$id"
>
> Thanks again.
>
> Aaron
>
More like:
"SELECT * FROM temp_users WHERE ID=\"".$_GET["id"]."\"";
Use $_GET to access variables from the url.
--
27; and $id == 159 and $Itemid ==
162) {
echo "It works! Yay me! Gimme a cookie, dammit!";
}
If you don't get that echo statement, then you should look into your if
statement.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> The latest message I got was 'Redirection limit for this URL exceeded.
> Unable to load the requested page.This may be caused by cookies that are
> blocked.'.
>
> Bing
>
Correct me if I'm wrong but I think this is an Apache error.
--
--Matthew Sims
--&
lidated the question/answer to one line
rather than having two indexes in the MySQL table. Probably a preference.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
my code or on something on the server or the
> javascript
> i didn't know what part of my code to include here
> so can anyone tell me where is the problem ?
> code is available for discuss
And how does this relate to PHP??
--
--Matthew Sims
--<http://killermookie.org>
Have you tried it in other browsers? IE 6 / windows PNG support leaves
much to be desired, even more so when we want them to be transparent.
Try it in Firefox, or some other similar browser. Same results?
Matthew Runo
http://www.quabbo.com
Quabbo Internet Services
The only host with the Zend
's not what you
expect.
I'm not sure if you'd be able to restart it with a given PID.
Matthew Runo
http://www.quabbo.com
Quabbo Internet Services
The only host with the Zend Performance Suite!
On Aug 8, 2004, at 11:25 PM, Curlys wrote:
pe -ef
* 19282 pts/300:00:00 abc.pl
my perl
> Matthew Sims wrote:
>
>>And how does this relate to PHP??
>>
>>
>>
> Matthew,
> you are now sure to be flamed by all those who believe off topic
> maililngs by those who do not read the newby guide should be allowed and
> encouraged.
>
>
>
&g
;
> The message size limit is controlled by your mailer. (postfix, sendmail,
> qmail, etc).
>
> Squirrelmail is a nice php-based interface.
>
> -Robby
I second that. Squirrelmail is solid. And the plugin features is great.
--
--Matthew Sims
--<http://killermookie.org>
--
PH
re your web server app and that the web server has plenty of
resources to handle your requests.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Hello, I'm trying to get the hang of OOP here but can't quite figure
> out how to relate these classes. I've got one for the main project,
> one for the database, and one for a user. Somehow I need to get the
> user access to the database, without cumbersome constructor calls
> involving a copy
o get suggestions for emacs, as well, and I'd be very
>surprised if one or more commercial editors weren't offered.
VIM!
Emacs!
VIM!
Emacs!
VIM!
KWrite!
KWrite?!
Real men write code using a chisel and hammer on granite stone. You bet
your ass you'll learn how to write small, ti
> [snip]
> Any recommendations on how to make PHP run faster?
> [/snip]
>
> A multiple CPU box. (It's a legitimate answer!)
I usually add more gerbils to my spinning wheel.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.n
> BBEdit is the tool of the Gods.
>
> Jon
Zeus would be proud of you.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is a great tip. Thanks! I've added it to my folder of "tips to
speed up PHP".
Matthew Runo
http://www.quabbo.com
Quabbo Internet Services
The only host with the Zend Performance Suite!
On Aug 10, 2004, at 3:07 PM, Curt Zirzow wrote:
* Thus wrote Ed Lazor:
Any recommendations
aching code to a PHP driven site,
but people just don't want to do it when they can get a decent boost
from just being under the Zend Performance Suite's umbrella effects.
Matthew Runo
http://www.quabbo.com
Quabbo Internet Services
The only host with the Zend Performance Suite!
On Aug
hts...
>
> thanks
>
> -bruce
I think javascript would be your cup of tea...getting the browser to
reload a frame.
Google is your friend:
http://www.google.com/search?q=javascript%20reload%20frame&hl=en&lr=&ie=UTF-8&sa=N&tab=gw
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is probably getting a little offtopic (okay, a lot and my last for
today) but I'll answer what I can. Now I can't speak for Horde but I can't
see how Horde would be any different than what Squirrelmail provides.
> "Matthew Sims" <[EMAIL PROTECTED]> write
>> I have this date in timestamp format:
>>
>> $a= 20040810114155;
>>
>> I want to add 7 days to this date. How can i do that?
>>
>> Thanks
>>
>>
Isn't it considered faster to let the database do the conversion to Unix
Timestamp?
--
--Matthew Sims
er-side instructions.
A header simply sends, well, HTTP headers. You're asking the browser to
reload a frame which is different.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> On Wed, 2004-08-11 at 00:13, Matthew Sims wrote:
>> > hi...
>> >
>> > this probably doens't belong here.. but i'll try!
>> >
>> > i have a two frame window. when the user logs into the 'main' window,
>> i
>> > wa
.
Now picture PHP as the guy to writes the HTML and sends it to the browser
and stands there waiting for a request to send more HTML to the browser.
"Frame? I don't know where this frame is. You'll have to ask the
javascript guy where that is." (that's my bad rendition of P
> raditha dissanayake wrote:
>> I vote this list be renamed as
>>
>> php-general-apache-mysql-imap-iis discussion list.
>>
>> all those not in favour please flame.
>>
>>
>
> We could just move this list to a Yahoo! group, then we can answer
> questions for any topic, and have the trolls too. ;)
>
>
Hi I am trying to track down a method for transferring a database id such as 5 into a
nice formatted order id such as ORD0005 - where the format for the order id is "ORD" +
5 digits made up of the database id
Thanks
Matt
>
>> Imagine all the people that'll want to post to a John Holmes list!!!
>
> People would be wide open for that list.
>
> Sorry.., I couldn't resist... Just had to take the low road...
>
>
>
> alex hogan
Damn, that was pretty good. :)
--
--Matthe
I have a database table with the column described as
address_line_2 varchar(255) NOT NULL default '',
when I do a select I want to see if there is anything in that column if there is text
I will display it in a html table if there is nothing (the table default) I will write
However the follow
against a Kerberos server, and found very little. Does anyone have any
ideas? I'd bow down and be very, very, excited if someone did...
Matthew Runo
http://www.quabbo.com
Quabbo Internet Services
The only host with the Zend Performance Suite!
-BEGIN PGP SIGNATURE-
Version: PGP 8.1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'd suggest Phorum..
http://www.phorum.org
It works great for us. You can see an example here:
http://resnet.ucsc.edu/phorum/
Matthew Runo
http://www.quabbo.com
Quabbo Internet Services
The only host with the Zend Performance Suite!
On A
security somewhat, by
> enacting strict controls (with authpf) and then routing around them with
> an insecure web login.
>
> -mike.
Adding SSL to the mix would probably fix the insecure login part.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
passed through $_GET to pull up the
cooresponding story.
Learn HTML and CSS and you can make a website look however you want it to
look. PHP simply makes the pages change depending on user events.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
#x27;s not really different from any other dynamic website.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Yea, But then I took his advice and found this
> http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was
> not so offended :)
>
> I had all the other links, but that one and did not think my question
> was that "out there" for the list... oh well.
>
>
> On Aug 17, 2004, at 12:31 PM,
27;t have to look much further than this. You have a class that was
designed in PHP3 and suddenly you're wondering why it work in PHP5?
The OO model in PHP has been vastly revamped. It's closer to what OO is
suppose to be. So my guess is that all your classes are now invalid.
You'll
> Okay - I apologize but I'm a systems admin - not a programmer - would I
> even need those classes now?
>
> -Original Message-
> From: Matthew Sims [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 17, 2004 3:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PH
ll languages will be a cinch to
learn. They're all the same, just different syntax.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> $row = mysql_fetch_array($sql, MYSQL_BOTH);
>>
>> Thank you.
>> TR
As Tony shows, anything between the [] is optional.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
emove the frames? Where would the image load then?
If you want it to load on the same page, just have the link refresh the
page to load the larger image.
Not sure what you're really asking.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tever UID the web server runs as (nobody, www, etc).
If you're running it through a stand alone script, well then, if you don't
own the directory or you're not root, that's probably the problem.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s?
>>
>
> Can't help you unless you give us an error...
>
And check to see that PostgreSQL is accepting network connections rather
than localhost. Is it listening to a port?
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, first thing to do is to get to know what it is. You can't
send mail without one.
First thing:
http://www.webopedia.com/TERM/S/SMTP.html
I'm not too familiar with what MTA's are out there for windows that are
free. All I know is Exchange for windows and I don't
ave your vars sitting in $_SESSION.
Web page is index.php:
...webpage stuff here...
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*** Automated Message - Do Not Reply ***
Hello, I am currently out on vacation on a warm sunny beach, suckin' down
an alcoholic beverage or something and will reply to your message when I
return...or not.
--
--Matthew Sims
--<http://killermookie.org>
*** End ***
> Another thi
er (your ISP *has* to have one) or install one yourself on
your computer. I have no clue what your OS is but if you're using
Linux/Unix, go search for sendmail, Qmail or Exim. For windows, Exchange.
I think this isn't the place to ask about setting up an SMTP server.
--
--Matthew Sims
--&l
Hi,
I have a file on my server that I want to compress in a php page i.e take file.txt and
add it to the archive file.zip.
How the hell do I do it using gzip cant understand the manual, or is there another way
to create a zip file or other compressed file.
cheers
matt
Hi,
I have been trying to find a way of creating a zip file. I have a file on my server
that I want to compress I have had a look at gzip but cant work out what to do.
Can someone point me to a function or an example of how to do this.
thanks
matt
Just mostly curious but is there a way to assign one variable to multiple
variables in one single line?
Rather than do this:
$var2 = $var1;
$var3 = $var1;
Is there a method to perform a:
($var2,$var3) = $var1;
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List
> How about:
>
> $var1 = $var2 = $var3 = 5;
> echo $var1 . '' . $var2 . '' . $var3 . '';
> ?>
>
> Regards,
>
> Justin
>
I had something stuck in my head between what Python does and PHP's list
function. Not sure why I c
Anyone know any good XML parsers that work with PHP5? Most of what I can
find on freshmeat are still using PHP4 classes and Google isn't turning up
much either.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> Matthew Sims wrote:
>
>> Anyone know any good XML parsers that work with PHP5? Most of what I can
>> find on freshmeat are still using PHP4 classes and Google isn't turning
>> up
>> much either.
>
> What do you want to do? This parses xml pretty
> Matthew Sims wrote:
>
>> My fault, I should have been more specific. An RSS reader. :) I was
>> using
>> xmlParser-0.3 and feedParser-0.5 to display news sites. Since I've
>> converted to PHP5, they no longer work for me.
>
> definitely a combination o
', 'a,'))."\n";
>> ?>
>>
>> [EMAIL PROTECTED] sql]$ php -q s1.php
>> 2
>> 2
>
> split in php isn't the same as perl's split, there is preg_split()
> which you can use:
>
> $results = preg_split('/,/','a,', -1, PREG_SPLIT_NO_EMPTY);
> print(count($results)); // outputs: 1
>
>
> Curt
Would explode() provide the same technique?
$var = "a,";
$results = explode(",", $var);
$results[0] = a;
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
decipher?" Hmm.. interesting.
>
> Now that they know that we know, we're all in danger. Be on the look out
> for assassins.
>
I'm immune from assassins.
Gunslingers, hatchet men and thugs, on the other hand, still present a
problem.
--
--Matthew Sims
--<http://killermo
> On Thu, 2004-09-16 at 18:33, Matthew Sims wrote:
>> I'm immune from assassins.
>>
>> Gunslingers, hatchet men and thugs, on the other hand, still present a
>> problem.
>
> When I first read this I read "thongs" instead of "thugs". It stil
lt.
http://support.microsoft.com/default.aspx?kbid=842242
A lot of programs are affected by this...possibly MySQL, too?
Anyways, I'm telling my friends and family to steer clear of SP2 upgrade
till the dust settles and the kinks are worked out.
--
--Matthew Sims
--<http://killermookie.or
by name but you will be getting your letters of
> termination shortly.
>
>>
>> ---John Holmes...
>>
>
>
> --
> Raditha Dissanayake.
I still haven't received my (small) paycheck for last week.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> "[PHP} Can't get NULL to output anything!"
>
> hehe
> Andre
>
>
Check your firewall.
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;> > versions greater than 4.1.0. For that, use MySQLi.
>> >
>> > mysqli:
>> > The mysqli extension is designed to work with the version 4.1.3 or
>> > above of MySQL.
>>
>> What the manual says (as quoted) is either not relevant or is not c
> HAHAHA, this thread is awsome though, you all must admit the humor
> involved here. I hope this thread continues for a couple more days.
> or here is an idea for a thread
> {PHP} globals.asp wont set my php vars
Firewall.
--
--Matthew Sims
--<http://killermookie.org>
finally* all made sense! This book
> is *so* well-written, that you really understand the whole OOP mindset
> after just the first 3 chapters.
>
Thanks for the tip. I just ordered the book through Amazon. :)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing Lis
#x27;t execute query");
>
> while ($row = mysql_fetch_array($result));
>
> {
>
> extract($row);
>
> echo $company;
>
> }
>
> ?>
>
Your while statment has a ; at the end of it.
while ($row = mysql_fetch_array($result)) {
echo $row["company"];
}
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
401 - 500 of 1121 matches
Mail list logo