php-general Digest 9 Jul 2008 13:45:53 - Issue 5559
Topics (messages 276476 through 276498):
Re: What font/size do you use for programming?
276476 by: Robert Cummings
276480 by: Shawn McKenzie
276481 by: Sancar Saran
276482 by: Per Jessen
276483 by:
On Wednesday 09 July 2008 02:23:49 tedd wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but
I'm currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
Cheers,
tedd
Monospace 9
Sancar Saran wrote:
On Wednesday 09 July 2008 02:23:49 tedd wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but
I'm currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
Cheers,
tedd wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but
I'm currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
Cheers,
tedd
6pt Terminal font on Windows, using UltraEdit on a
В сообщении от Wednesday 09 July 2008 01:22:32 Eric Butera написал(а):
[1] http://us2.php.net/manual/en/ref.zip.php
Thank you for this link!
--
===
С уважением, Манылов Павел aka [R-k]
icq: 949-388-0
mailto:[EMAIL PROTECTED]
===
А ещё говорят так:
Родился сам - помоги
Hi,
I need to perform a mount and a umount from PHP.
I've searched the manual, but didn't find anything useful.
Any ideas ?
Any help would be appreciated.
Warm Regards,
Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
test
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hello
im still new to php i just want to know how can u get the only the time of
ur local server
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello, Mário
You may use function system!
system('mount -t vfat -o rw /dev/hdb1 /home/www/upload',$err);
if($err){
echo We have error with number {$err};
}
Mário Gamito :
Hi,
I need to perform a mount and a umount from PHP.
I've searched the manual, but didn't find anything useful.
2008/7/9 Aschwin Wesselius [EMAIL PROTECTED]:
tedd wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but I'm
currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
Cheers,
tedd
6pt
On Jul 9, 2008, at 5:25 AM, Robin Vickery wrote:
2008/7/9 Aschwin Wesselius [EMAIL PROTECTED]:
tedd wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise)
but I'm
currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you
Hi All,
I have a Directory table with hundreds of URL's to sites
and want to check periodically if all the URL's still exist.
Does anyone know of a utility to check this ?
Or a pointer to a piece of code ...
TIA, Cor
On Wednesday 09 July 2008 12:18:27 [EMAIL PROTECTED] wrote:
Hi All,
I have a Directory table with hundreds of URL's to sites
and want to check periodically if all the URL's still exist.
Does anyone know of a utility to check this ?
Or a pointer to a piece of code ...
TIA, Cor
ping whois
You need
$s= fsockopen('host.com',80);
fwrite($s,GET .$URL. HTTP/1.1 \r\n);
fwrite($s,Host: host.com \r\n\r\n);
and you must read first string - if url exists string begining with 200
or 304
if url not exists string begin - is 404
Børge Holen пишет:
On Wednesday 09 July 2008 12:18:27
willyam pax wrote:
hello
im still new to php i just want to know how can u get the only the
time of ur local server
Take a look at date() and time().
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Or date(), such as date('Y-m-d H:i:s');
On Wed, Jul 9, 2008 at 6:29 PM, Per Jessen [EMAIL PROTECTED] wrote:
willyam pax wrote:
hello
im still new to php i just want to know how can u get the only the
time of ur local server
Take a look at date() and time().
/Per Jessen, Zürich
test
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I had this problem and just figured it out. I was copying and pasting the
code snippet from the tutorials page to my test editor and in the process
picked up an invisible ctrl char. Doh!!
Joseph Subida wrote:
The error I get when I try
?php
echo $_SERVER['HTTP_USER_AGENT'];
?
is
Hi,
I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page.
So, I´ve added this to /etc/sudoers:
-
Cmnd_AliasCMD_MOUNT = /bin/mount
Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs
nobody ALL =
Mário Gamito wrote:
Hi,
I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page.
So, I´ve added this to /etc/sudoers:
-
Cmnd_AliasCMD_MOUNT = /bin/mount
Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs
On Jul 8, 2008, at 6:23 PM, tedd wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but
I'm currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
Cheers,
tedd
15 MacBook Pro, 1440
Try to do folowing
write shell script
#!/bin/sh
mount /dev/hdb /home/mountpoint
then write C code
int main(){
system (mount.sh);
return 0;
}
then compile C code
gcc main.c -o wrapper
then chmod :
# chmod a+s wrapper
and do from php:
system ('wrapper');
Per Jessen пишет:
Mário
On Tue, Jul 8, 2008 at 7:23 PM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but I'm
currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
It had no name
On Wed, Jul 9, 2008 at 9:35 AM, ioannes [EMAIL PROTECTED] wrote:
Has anyone here experience of CURLing .asp pages which use session cookies
as I am having difficulty doing so on two different sites, both asp.
Forwarded to PHP-General, John. If you're not already subscribed
there, please
On Tue, Jul 8, 2008 at 7:23 PM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but I'm
currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
Cheers,
tedd
On Wed, Jul 9, 2008 at 6:18 AM, [EMAIL PROTECTED] wrote:
Hi All,
I have a Directory table with hundreds of URL's to sites
and want to check periodically if all the URL's still exist.
Does anyone know of a utility to check this ?
Or a pointer to a piece of code ...
TIA, Cor
?php
//
On Wed, Jul 9, 2008 at 5:21 AM, Maxim Antonov [EMAIL PROTECTED] wrote:
Hi, all!
I try to use folowing regular expression:
$out =
preg_replace('#\{%%%.*?\{%bigfoto%\}.*?%%%\}#is','==REPLACEMENT==',$str);
[snip!]
I need result as:
trtdNAME:/tdtdinput type=text name=name value=
triple-headed display
That's just greedy.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Powered by Outblaze
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Jul 08, 2008 at 07:23:49PM -0400, tedd wrote:
Hi gang:
I'm running a Mac (so I know mine is a bit different size wise) but I'm
currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
Monospace 9pt in
At 5:13 PM +0100 7/9/08, Richard Heyes wrote:
triple-headed display
That's just greedy.
--
Richard Heyes
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
No, it wasn't but whew! That was a close one!
--
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
And here I am with one paltry monitor. :-(
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I want to make a set of PHP bindings for the libvirt(.org) C API. Can
anyone point me to how tos, information or software that would help me
along the way?
Thanks,
Henri
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Jul 9, 2008 at 1:19 PM, Richard Heyes [EMAIL PROTECTED] wrote:
And here I am with one paltry monitor. :-(
I now view you as less of a man, Heyes. ;-P
--
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated
At 11:54 PM -0500 7/8/08, Shawn McKenzie wrote:
Font: Agent Orange
Size: 64pt
64pt!
And I thought I my eyesight was poor at 14pt.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Wed, 2008-07-09 at 18:19 +0100, Richard Heyes wrote:
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
And here I am with one paltry monitor. :-(
Those greedy bastids make me sick!!!
I'll be back later, I hafta go spend my kids' college funds
At 6:19 PM +0100 7/9/08, Richard Heyes wrote:
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
And here I am with one paltry monitor. :-(
As you get older, your monitors get larger.
However, this is not necessarily a good thing.
Cheers,
tedd
--
At 1:27 PM -0400 7/9/08, Robert Cummings wrote:
On Wed, 2008-07-09 at 18:19 +0100, Richard Heyes wrote:
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
And here I am with one paltry monitor. :-(
Those greedy bastids make me sick!!!
I'll be
I'm running a Mac (so I know mine is a bit different size wise) but
I'm currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
I prefer Monaco to Verdana - easier to distinguish 0 and O, etc. The
font that came with
Hi there,
I want to make a set of PHP bindings for the libvirt(.org) C API. Can
anyone point me to how tos, information or software that would help me
along the way?
Thanks,
Henri
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tedd wrote:
At 11:54 PM -0500 7/8/08, Shawn McKenzie wrote:
Font: Agent Orange
Size: 64pt
64pt!
And I thought I my eyesight was poor at 14pt.
Cheers,
tedd
Just kidding... Seriously, I just use what ever is default for the app
I'm using. I used to use zend, now I use Aptana or kate for
On Wed, Jul 9, 2008 at 12:50 PM, Henri Cook [EMAIL PROTECTED]
wrote:
Hi there,
I want to make a set of PHP bindings for the libvirt(.org) C API. Can
anyone point me to how tos, information or software that would help me along
the way?\
maybe scope out this book,
On Jul 9, 2008, at 1:32 PM, tedd wrote:
At 6:19 PM +0100 7/9/08, Richard Heyes wrote:
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
And here I am with one paltry monitor. :-(
As you get older, your monitors get larger.
However, this is not
Hi gang:
I'm trying to do some zip stuff, but on server [1] my script hangs on:
$zip = new ZipArchive();
No errors, no anything, it just hangs -- I assuming that ZipArchive
is not available.
---
However, on server [2] (Daniel Brown's most excellent service, btw),
everything works great --
On 7/9/08, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I'm trying to do some zip stuff, but on server [1] my script hangs on:
$zip = new ZipArchive();
No errors, no anything, it just hangs -- I assuming that ZipArchive is not
available.
---
However, on server [2] (Daniel Brown's most
On Wed, Jul 9, 2008 at 1:43 PM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I'm trying to do some zip stuff, but on server [1] my script hangs on:
$zip = new ZipArchive();
No errors, no anything, it just hangs -- I assuming that ZipArchive is not
available.
---
However, on server [2]
On Wed, Jul 9, 2008 at 3:40 PM, Jason Pruim [EMAIL PROTECTED] wrote:
I may only have 1 monitor... But I have 12 Spaces (google apple spaces
for more info)
Well, if you want to get *technical* on it, then I have 12
screens: 4 virtual desktops (KDE pager was around before Mac's Spaces)
At 3:40 PM -0400 7/9/08, Jason Pruim wrote:
On Jul 9, 2008, at 1:32 PM, tedd wrote:
At 6:19 PM +0100 7/9/08, Richard Heyes wrote:
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
And here I am with one paltry monitor. :-(
As you get older, your
On Wed, Jul 9, 2008 at 3:43 PM, tedd [EMAIL PROTECTED] wrote:
However, on server [2] (Daniel Brown's most excellent service, btw),
everything works great -- as is usual (every time I say something like this
he gives me another month of free service). :-)
Yeah, and we're somewhere in 2011
At 4:01 PM -0400 7/9/08, Daniel Brown wrote:
On Wed, Jul 9, 2008 at 3:40 PM, Jason Pruim [EMAIL PROTECTED] wrote:
I may only have 1 monitor... But I have 12 Spaces (google apple spaces
for more info)
Well, if you want to get *technical* on it, then I have 12
screens: 4 virtual desktops
On Wed, Jul 9, 2008 at 4:19 PM, tedd [EMAIL PROTECTED] wrote:
Well.. if this is one of those My monitor is bigger than yours!
discussions, then when I programmed with rocks, I had all of the outdoors as
my monitor -- beat that!
/me forfeits.
--
/Daniel P. Brown
Dedicated Servers - Intel
On Wed, 2008-07-09 at 16:28 -0400, Daniel Brown wrote:
On Wed, Jul 9, 2008 at 4:19 PM, tedd [EMAIL PROTECTED] wrote:
Well.. if this is one of those My monitor is bigger than yours!
discussions, then when I programmed with rocks, I had all of the outdoors as
my monitor -- beat that!
On Wednesday 09 July 2008 19:32:10 tedd wrote:
At 6:19 PM +0100 7/9/08, Richard Heyes wrote:
I use a triple display as well.
My desktop is 3840 x 1024 -- and I use every inch of it.
And here I am with one paltry monitor. :-(
As you get older, your monitors get larger.
However, this is
Hello,
is there a way to call a function or do a header(Location: page.php) when
a fatal error is detected from using a the require statement
Thanks
Joe Harman
On Wed, Jul 9, 2008 at 4:00 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Wed, Jul 9, 2008 at 1:43 PM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I'm trying to do some zip stuff, but on server [1] my script hangs on:
$zip = new ZipArchive();
No errors, no anything, it just hangs -- I assuming
At 4:32 PM -0400 7/9/08, Robert Cummings wrote:
On Wed, 2008-07-09 at 16:28 -0400, Daniel Brown wrote:
On Wed, Jul 9, 2008 at 4:19 PM, tedd [EMAIL PROTECTED] wrote:
Well.. if this is one of those My monitor is bigger than yours!
discussions, then when I programmed with rocks, I had all
On Wed, Jul 9, 2008 at 4:49 PM, Joe Harman [EMAIL PROTECTED] wrote:
Hello,
is there a way to call a function or do a header(Location: page.php) when
a fatal error is detected from using a the require statement
Thanks
Joe Harman
You can set up a custom error handler. This will intercept
At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote:
if(class_exists('ZipArchive', false))
$zip = new ZipArchive();
else
trigger_error('class ZipArchive does not exist!', E_USER_NOTICE);
-nathan
It works, (thanks) but no error is thrown if it's not there.
Cheers,
tedd
--
---
On Tue, 8 Jul 2008 19:23:49 -0400, tedd wrote:
I'm running a Mac (so I know mine is a bit different size wise) but
I'm currently using Veranda at 14 point for coding.
Just out of curiosity, what font and size do you ppls use for your
programming?
I've always found that my bash and php
On Wed, Jul 9, 2008 at 3:10 PM, Eric Butera [EMAIL PROTECTED] wrote:
On Wed, Jul 9, 2008 at 4:00 PM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Wed, Jul 9, 2008 at 1:43 PM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I'm trying to do some zip stuff, but on server [1] my script hangs on:
On Wed, Jul 9, 2008 at 3:19 PM, tedd [EMAIL PROTECTED] wrote:
At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote:
if(class_exists('ZipArchive', false))
$zip = new ZipArchive();
else
trigger_error('class ZipArchive does not exist!', E_USER_NOTICE);
-nathan
It works, (thanks) but no error
At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote:
On Wed, Jul 9, 2008 at 3:19 PM, tedd
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:
At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote:
if(class_exists('ZipArchive', false))
$zip = new ZipArchive();
else
trigger_error('class ZipArchive does not
On Wed, Jul 9, 2008 at 6:53 PM, tedd [EMAIL PROTECTED] wrote:
At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote:
On Wed, Jul 9, 2008 at 3:19 PM, tedd
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:
At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote:
if(class_exists('ZipArchive', false))
$zip = new
On Wed, Jul 9, 2008 at 4:56 PM, Eric Butera [EMAIL PROTECTED] wrote:
On Wed, Jul 9, 2008 at 6:53 PM, tedd [EMAIL PROTECTED] wrote:
At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote:
On Wed, Jul 9, 2008 at 3:19 PM, tedd
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote:
At 2:00 PM -0600
Hi gang:
Here's the logic problem.
First the site:
http://php1.net/b/zip-files/
Now, the site works well enough. The user selects what they want,
clicks Submit, the order is assembled in zip file and presented to
the user for downloading.
However, as it stands now, before the script
Write a script that cron runs that checks dates of files and removes 1 month
old ones?
On Wed, Jul 9, 2008 at 4:45 PM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
Here's the logic problem.
First the site:
http://php1.net/b/zip-files/
Now, the site works well enough. The user selects what
On Wed, Jul 9, 2008 at 7:45 PM, tedd [EMAIL PROTECTED] wrote:
Hi gang:
Here's the logic problem.
First the site:
http://php1.net/b/zip-files/
Now, the site works well enough. The user selects what they want, clicks
Submit, the order is assembled in zip file and presented to the user for
generate a unique hash as the name based on the contents of the zip, then if 2
people
happen to want exactly the same selection you won't have to build/zip it twice
...
just check if the zip happens to exist before trying to build it.
have the script do garbage collection on old zip files ...
On Wed, Jul 9, 2008 at 6:11 PM, Jochem Maas [EMAIL PROTECTED] wrote:
generate a unique hash as the name based on the contents of the zip, then
if 2 people
happen to want exactly the same selection you won't have to build/zip it
twice ...
just check if the zip happens to exist before trying
Daniel Brown schreef:
On Wed, Jul 9, 2008 at 3:43 PM, tedd [EMAIL PROTECTED] wrote:
However, on server [2] (Daniel Brown's most excellent service, btw),
everything works great -- as is usual (every time I say something like this
he gives me another month of free service). :-)
Dan box isn't
On Wed, Jul 9, 2008 at 8:52 PM, Jochem Maas [EMAIL PROTECTED] wrote:
Daniel Brown schreef:
On Wed, Jul 9, 2008 at 3:43 PM, tedd [EMAIL PROTECTED] wrote:
However, on server [2] (Daniel Brown's most excellent service, btw),
everything works great -- as is usual (every time I say something like
tedd wrote:
Hi gang:
Here's the logic problem.
First the site:
http://php1.net/b/zip-files/
Now, the site works well enough. The user selects what they want, clicks
Submit, the order is assembled in zip file and presented to the user for
downloading.
However, as it stands now, before the
Warning:session_start():Canot send session cache limiter - headers already
sent
help me i dont understand this warning...
but the program still works...
thanks in advance...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It's probably some white space above your session_start function.
Make sure that there is no white space before your ?php start tag and try
again.
-Original Message-
From: willyam pax
Sent: 10 July 2008 13:13
To: php-general@lists.php.net
Subject: [PHP] can any one help me on this
On Thu, 2008-07-10 at 11:13 +0800, willyam pax wrote:
Warning:session_start():Canot send session cache limiter - headers already
It means you have output going to the browser before you begin your
session with session_start(). This usually means you have trailing
whitespace in an included file
On Wed, Jul 9, 2008 at 6:52 PM, Jochem Maas [EMAIL PROTECTED] wrote:
try triggering an E_FATAL instead of E_NOTICE and you'll see
there is no need to use Exceptions in this case (albeit that
it's an acceptable alternative).
minor but, it would have to be E_USER_ERROR, because you can only
77 matches
Mail list logo