Brenden Wilson wrote:
I hope this is the right place to ask because I simply can't find any place
else to ask for help.
I have been banned from chatting in ##php and I really don't deserve it.
The chat log can be found here:
http://pastebin.com/f6941dae7
(I've deleted conversations from other
END;
?
/p
It works here on 5.2.3. Try removing ALL whitespace before and after
the END; portion of your heredocs. If there's whitespace, it doesn't
work.
--
Aaron Gould
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
more to give it a fair shot, but
after using CakePHP, I'm not so sure for how long...
--
Aaron Gould
Greg Donald wrote:
Has anyone looked at the Zend Framework lately?
http://framework.zend.com/manual
I've been playing with a few parts of it off and on the past couple of
days. It seems
I have a script that connects to a networked device via PHP's socket
functions. This device accepts proprietary commands (e.g.: KPRINT, as
seen below), and returns data. However, this device does not have any
sort of EXIT command to end the processing of events. So it
essentially loops
..
if( time() - $start_time 5 ) exit;
-B
Aaron Gould wrote:
I have a script that connects to a networked device via PHP's socket
functions. This device accepts proprietary commands (e.g.: KPRINT,
as seen below), and returns data. However, this device does not have
any sort of EXIT command
['timed_out']) {
echo 'Timeout...';
break;
}
$buffer = fgets($fp, 1024);
}
fclose($fp);
}
Brad Bonkoski wrote:
Aaron Gould wrote:
I tried this earlier, but it does not seem to work... It appears
...
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sure it's not out of reach to write this from scratch, but if I
don't need to...
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
should be gleamed from the following page:
http://ca3.php.net/manual/en/function.mail.php
Check the examples, and you'll be well on your way.
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
do with it.
I just stink at exams; I get antsy when sitting for 30-60 minutes with
just a pencil and paper in a quiet room.
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
Proudly underperforming in exams for years...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
to you, including by me.
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that involved cases I had
certainly experienced in five plus years of PHP development. I'm sure
that'll happen in due time as the certification is only a couple years old.
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
paragraph with a wacky first word! Strange stuff...
E n d l e s s insanity here!
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
}
}
echo Original : .$string.\n;
echo Word : .$word.\n;
echo Modified : .$word. ;
echo implode( ,array_slice($letters,$split_point-1)).\n;
?
Thanks for the example, looks like it might just work!
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List
));
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
point to help files for languages though, I believe...
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to polish my regex
knowledge!
Thanks,
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
into
regular expressions. :)
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
class=highlighted'.$oddsyntax[$i].'/spam',$code);
}
return $code;
}
Hi Bruno...
I tried your sample, but it doesn't seem to work. I do however see what
you're getting at.
Perhaps I need to experiment with the eregi_replace commands (or other
regex commands) a bit.
Thanks,
--
Aaron
-based
PowerPC architecture? My primary concern is that it actually compiles
without trouble; all we have here now are x86 systems, so we can't test
this combination!
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
as it's linux, I'm ok.
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
missing something?
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Aaron Todd wrote:
Does anyone know how I might be able to have php push a file to an FTP
server?
If you configure PHP with --enable-ftp, you'll have a bunch of FTP
functions at your disposal, including PUT:
http://ca.php.net/ftp
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General
. :)
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
reloading the page constantly, the wording
swaps randomly between English and French; all without changing any code!
Has anyone experienced this before?
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on the net these last few years!
It's too bad I'm one of the few on the list that's able to attend...
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just curious if anyone on the list was headed to Toronto on Sep 22-24
for php|works. I live about two hours from Toronto, and my company is
sending me.
I wonder what kind of reception this conference will get...
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http
fun guys... wish I could go but it's not a good time. Maybe the
next one.
Lucky for me I'm more of a lurker in this group, and as such I haven't
made many enemies. Yet. :)
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
--with-mysql=/usr
Thanks,
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curt Zirzow wrote:
* Thus wrote Aaron Gould ([EMAIL PROTECTED]):
/usr/local/mnogosearch), and PHP configures fine. But during PHP's
make, I get all sorts of errors at the end of the compilation:
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple
definition of `mysql_port'
Just
Curt Zirzow wrote:
* Thus wrote Aaron Gould ([EMAIL PROTECTED]):
/usr/local/mnogosearch), and PHP configures fine. But during PHP's
make, I get all sorts of errors at the end of the compilation:
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple
definition of `mysql_port'
Just
John Nichel wrote:
Aaron Gould wrote:
Curt Zirzow wrote:
* Thus wrote Aaron Gould ([EMAIL PROTECTED]):
/usr/local/mnogosearch), and PHP configures fine. But during
PHP's make, I get all sorts of errors at the end of the compilation:
/usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4
between your first and
second configure attempts?
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jeff McKeon wrote:
$this-
What does this do? I know it has something to do with classes but can't
quite get my head around it.
You might want to check out this:
http://ca.php.net/oop
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net
function after removeClog has
returned, or there's going to be an awful mess.
But then again, perhaps the automatic garbage collection will take care
of that?
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Have you tried escaping the pipes and quotes? Try this:
$var=shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2);
Mario Ohnewald wrote:
$var=shell_exec(/usr/local/bin/mplayer -identify -frames 0
/tmp/pitstop.mpeg 2/dev/null|
This array problem has been stumping my brain for a little while now...
here's a sample of my data:
$purchases[001][200304] = array('regular'=3, 'booked'=4);
$purchases[002][200303] = array('regular'=5, 'booked'=1);
$purchases[002][200304] = array('regular'=1, 'booked'=0);
This is not possible... yet. I would like this feature too, but it has been
addressed a few times on the newsgroups at chami.com.
You can check the newsgroups out at
http://www.chami.com/html-kit/newsgroups/.
As far as I know, this feature is on Chami's long-term to-do list.
--
Aaron Gould
http://www.zend.com/zend/tut/tutorial-mehmet1.php
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada
- Original Message -
From: John Manko [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 10:16 AM
Subject: [PHP] Ticketmaster.com and Word Images
Try this (note the return false; addition at the end):
a href=legal.php onClick=MM_openBrWindow('this.href', '', 'toolbar=no,
status=yes, scrollbars=no, resizable=no, width=790, height=600'); return
false;
--
Aaron Gould
Web Developer
Parts Canada
- Original Message -
From: Curt
Read these mysql.com doc pages:
http://www.mysql.com/doc/en/MySQL_indexes.html
http://www.mysql.com/doc/en/CREATE_INDEX.html
--
Aaron Gould
Web Developer
Parts Canada
[EMAIL PROTECTED]
-Original Message-
From: Erich Kolb [mailto:[EMAIL PROTECTED]
Sent: June 27, 2003 3:56 PM
Oh come on now, we don't flame people, or even engage in name-calling for
that matter on this list... :)
We all learn our lessons.
--
Aaron Gould
Web Developer
Parts Canada
-Original Message-
From: Petre Agenbag [mailto:[EMAIL PROTECTED]
Sent: June 18, 2003 8:49 AM
To: Chris Hayes
A search on mysql.com reveals.
http://www.mysql.com/search/index.php?q=DELETEfrom=%2Fdocumentation%2Findex
.html
--
Aaron Gould
Web Developer
Parts Canada
-Original Message-
From: zavaboy [mailto:[EMAIL PROTECTED]
Sent: June 18, 2003 1:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP
Yes, you definitely can...
http://www.php.net/manual/en/features.commandline.php
--
Aaron Gould
Web Developer
Parts Canada
- Original Message -
From: Poon, Kelvin (Infomart) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 11:43 AM
Subject: [PHP] Can php run
Hehe, I though something was wrong with my machine when I checked out
phpinfo() on one of my boxes today. It didn't even occur to me that it
might be related to April Fools.
I know it's usually the PHP logo, but how is that picture generated anyway?
--
Aaron Gould
Web Developer
Parts Canada
Exactly... it seems to be generated in code somehow?
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3
) *
pow(sin($delta_lon / 2.0), 2);
$EARTH_RADIUS = 3956;
$distance = ($EARTH_RADIUS * 2 * atan2(sqrt($temp), sqrt(1 - $temp)) *
1.6093);
return $distance;
}
?
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada
- Original Message -
From: Edward Peloke [EMAIL
I got that from http://freshmeat.net/projects/zipdy/?topic_id=66. It's a
program called Zipdy that does these calculations. There's also a similar
function on the US government census site (can't remember where though), but
I liked Zipdy's better.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
That will be in KM (I'm in Canada). Just remove the * 1.6093 to return
Miles.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada
- Original Message -
From: Edward Peloke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 15, 2002 12:22 PM
Subject: RE: [PHP
Looks ok to me. Try making sure that all white space is removed from after
the echo ENDOFECHO, and both before and after the ENDOFECHO; line.
Heredocs don't play nicely with white space...
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada
- Original Message -
From: Craig
changed by now... the PHP powers that be would only be able to give me
a definitive answer.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 8:31 PM
Subject: [PHP] PHP 4.3.0
: attachment; filename=$filename%20);
Give it a try. I might be way off, but you've got nothing to lose. :)
--
Aaron Gould
Web Developer
Parts Canada
Francis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
ok i know this has popped up a couple of time
-control: private);
header(Content-type: application/octet-stream);
header(Content-length: $filesize);
header(Content-Disposition: attachment; filename=\$filename\);
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada
- Original Message -
From: Francis [EMAIL PROTECTED
-[Date_Calc_Function3];
etc, etc
--
Aaron Gould
Web Developer
Parts Canada
- Original Message -
From: Greg Macek [EMAIL PROTECTED]
To: Noodle Snacks [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 10:29 AM
Subject: Re: [PHP] How to do Date Calculation
You could also
Change the second ? with . The ampersand is used to delimit multiple
URI values. Use the ampersand to append any additional name/value pairs as
well.
a href=bug_detail_user.php?id=$idreporter_id=$reporter_id
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From
-php .php
Am I missing something important here?
--
Aaron Gould
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it is. But sometimes it's English instead. It's a 50/50 thing. I've
verified that the setlocale call is ALWAYS using fr_FR.
Can anyone help me out?
(And as an aside, can the gettext parameter span multiple lines, or must it
be on one line?)
--
Aaron Gould
--
PHP General Mailing List (http
is not
exposed to a lot of traffic and abuse.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: John Wards [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 19, 2002 7:27 AM
Subject: [PHP] Apache 2.0 and PHP
Guys and Girls got a question for you
.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: MET [EMAIL PROTECTED]
To: PHP-GENERAL [EMAIL PROTECTED]
Sent: Tuesday, August 13, 2002 9:55 AM
Subject: [PHP] PHP 4.2.2 and Apache 2
So how stable are they? I'm not running a production server, but a
development
in a MySQL
database of our products.
Obviously we can't say what the result of replacing our current production
server would be. (Our production server runs Apache 1.3.26 + PHP 4.0.6, and
gets about 250,000 hits/month.)
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From
You might want to check the archives. This topic has been discussed
exhaustively many times...
To name a very small few:
HTML-Kit
Zend IDE
HomeSite
Dreamweaver
jEdit
... and many, many more.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: [EMAIL PROTECTED
of our servers).
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in mind this is experimental and thus should not be used on production
web sites (even though we've been using Apache 2.0.39+PHP 4.2.1/4.2.2 for a
few weeks without issues on two of our servers).
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: Osman Omar [EMAIL
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: Mitch Vincent [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Tuesday, July 23, 2002 1:16 PM
Subject: [PHP] Apache 2 support broken?
With php 4.2.2 I get this when trying to compile with apache 2 support
If you have Apache installed as an RPM, make sure you have the
apache-devel RPM installed as well. I remember I had this problem once in
RedHat... apxs is included in the devel package if I recall correctly.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From
The only way I know how to do it is by doing boolean OR's... It's not
as compact and efficient as you'd like, but it works.
SELECT *
FROMgallery
LEFT JOIN designers ON (designers.designersID=gallery.designersID)
WHERE (gallery.column1 LIKE
Try adding a -p argument to the end of that line:
#!/usr/bin/php -q
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: Mike Eheler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 3:43 PM
Subject: [PHP] #!/usr/bin/php in output
My apologies, that should have read -q and not -p. Sorry! :)
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: Mike Eheler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 3:43 PM
Subject: [PHP] #!/usr/bin/php in output?
Having a bit
PEAR/DB locking, or could
share some tips?
Thanks,
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:
post_max_size = 50M
upload_max_filesize = 50M
Is there something else I'm missing?
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ahhh, ok! I feel like such an idiot. Right at the top of my script there's
a spot with the value of maximum upload size. It was set to 10MB, so I
changed it to 50MB and it works.
I can't believe that slipped by me. :)
Thanks very much!
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
$_SERVER (as well as all the $_* functions) in PHP 4.1 are automatically
global.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: Alastair Battrick [EMAIL PROTECTED]
To: Erik Price [EMAIL PROTECTED]; Darren Gamble
[EMAIL PROTECTED]
Cc: PHP [EMAIL PROTECTED
Try:
$outputstring = str_replace($character_to_erase, '', $inputstring);
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: Phil Schwarzmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 1:38 PM
Subject: [PHP] character replace
73 matches
Mail list logo