Hi,
First off thanks to everyone for the previous help. I managed to get it
sorted out and used several of the suggestions made.
I am trying to do a DESC table_name using PHP so it looks like it would it
you did it from the command line.
i.e.
| Field | Type | Null | Key | Default |
# [EMAIL PROTECTED] / 2007-01-20 22:43:58 +0100:
> that would mean the 'fastest' I could push out the http request is
> probably by doing:
>
> if ($sock = fsockopen($proto.$url[1], $port, $errno, $errstr, 4)) {
> fwrite($sock, "GET {$url[2]} HTTP/1.0\r\n");
> fwrite($sock, "Host: {$url
# [EMAIL PROTECTED] / 2007-01-20 17:14:34 -0500:
> To stop bots from accessing secured pages, I've added the following
> code to a banner page that is called by every page. Furthermore, each
> page starts with and includes the banner
> page:
>
> 'top1.php' [banner page]
>
>if((eregi("((Y
# [EMAIL PROTECTED] / 2007-01-20 21:50:48 -0700:
> I have a line of code that validates form info for some POST vars, but not
> others.
>
> if (!ereg("^[A-Za-z' -]{1,50}$",$_POST[$field]) )
>
> when I put O'Toole in the form to test, my script kicks the page back (I
> thought this entry w
# [EMAIL PROTECTED] / 2007-01-20 22:51:41 -0800:
> I've been having my forced downloads sometimes finish prematurely using
> readfile(). I'm downloading a Windows .exe file.
>
> I've read several posts that have suggested the substitution of a fread/feof
> loop to write out the download in smaller
# [EMAIL PROTECTED] / 2007-01-21 03:05:49 -0500:
> I am trying to do a DESC table_name using PHP so it looks like it would it
> you did it from the command line.
>
> i.e.
>
> | Field | Type | Null | Key | Default | Extra |
> +---+--+--+-+-
On Nov 13, 2006, at 9:44 PM, Paul Novitski wrote:
Paul,
Thank you again for your amazingly generous email.
I am working on my query as you suggested. I have a joint query that
seems to work except that I get the name of the company repeated for
each job. Could you please help me figure out
# [EMAIL PROTECTED] / 2007-01-21 00:11:13 +0100:
> Roman Neuhauser wrote:
> > # [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100:
> >> wouldn't it be fair to assume (safety through paranoia) that
> >> ctype_alnum() would suffer the same problem? (given the manual's
> >> indication that ctype_alnum() a
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
but I know if I can change that
is there some other way to fix this problem?
Don
# [EMAIL PROTECTED] / 2007-01-20 21:50:48 -0700:
> I have a line of code that validates form info for some POST vars, but not
> ot
At 1/21/2007 01:54 AM, pub wrote:
I am working on my query as you suggested. I have a joint query that
seems to work except that I get the name of the company repeated for
each job. Could you please help me figure out how to make it echo the
company once and list all the jobs next to it on the sa
I would put my vote on Eclipse. It has great support for cvs and also for
general coding "autofilling" etc. The downside is that it is resource
demanding...
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-
# [EMAIL PROTECTED] / 2007-01-21 10:48:30 +:
> # [EMAIL PROTECTED] / 2007-01-21 00:11:13 +0100:
> > Roman Neuhauser wrote:
> > > # [EMAIL PROTECTED] / 2007-01-17 16:59:26 +0100:
> > >> wouldn't it be fair to assume (safety through paranoia) that
> > >> ctype_alnum() would suffer the same proble
Gregory Beaver wrote:
> Vinicius C Silva wrote:
>> hi everyone!
>>
>> i'd like to ask something maybe commonly asked here. what is the most
>> powerful php editor?
>
> I am
that's it, consider yourself enrolled in a Celebrity Death Match
against mr Lerdorf :-P
>
> Yours,
> Greg
>
--
PHP Gen
On Sunday 21 January 2007 12:40, Jochem Maas wrote:
> Gregory Beaver wrote:
> > Vinicius C Silva wrote:
> >> hi everyone!
> >>
> >> i'd like to ask something maybe commonly asked here. what is the most
> >> powerful php editor?
> >
> > I am
>
> that's it, consider yourself enrolled in a Celebrity D
On Sat, 2007-01-20 at 22:54 -0200, Vinicius C Silva wrote:
> hi everyone!
>
> i'd like to ask something maybe commonly asked here. what is the most
> powerful php editor?
Everyone knows, everyone probably being me, that joe is the best:
http://sourceforge.net/projects/joe-editor/
Cheers,
Ro
On Sat, 2007-01-20 at 14:42 +, Wikus Moller wrote:
> Hi.
>
> Since this is a mailing list for web developers,
Nope, you Sir are wrong. This is a mailing list for PHP web developers.
Note the PHP part, it's quite important.
HAND
Cheers,
Rob.
--
.-
On Sat, 2007-01-20 at 16:09 +, Stut wrote:
>
> 3) This is not a mailing list for web developers, it's a mailing list
> for PHP developers. The fact that most PHP development happens in a web
> context does not make it exclusively for web development.
Not that this was directed at me, but I a
Don wrote:
> I've been having my forced downloads sometimes finish prematurely using
> readfile(). I'm downloading a Windows .exe file.
>
> I've read several posts that have suggested the substitution of a fread/feof
> loop to write out the download in smaller chunks. I tried using a function
> (r
Hi list,
I am trying to create a link checker that would look for broken URLs
with help of the following code"
$handle = @fopen("http://www.circle.am";, "r");
if ($handle):
print "OK";
else:
print "Error";
endif;
The problem is that I want to check if the links are accessible under
certain proxy
Can anyone tell me if there is a function to return the first letter in a
string, such as:
$surname="SMITH";
$forename="ALAN";
Is there a function which I can use to make $forename "A", so I can display
it as A SMITH?
Thank You In Advance
$firstchar = substr($string, 0, 1);
Read www.php.net/substr
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From: Christopher Deeley [mailto:[EMAIL PROTECTED]
Sent: Sunday, Janu
Hello Christopher Deeley,
Best regards,
=== At 2007-01-21, 21:49:06 you wrote: ===
>Can anyone tell me if there is a function to return the first letter in a
>string, such as:
>
>$surname="SMITH";
>$forename="ALAN";
>
>Is there a function which I can use to make $forename "A", so I
At 08:21 AM 1/21/2007, Robert Cummings wrote:
On Sat, 2007-01-20 at 22:54 -0200, Vinicius C Silva wrote:
> hi everyone!
>
> i'd like to ask something maybe commonly asked here. what is the most
> powerful php editor?
EditPlus or UltraEdit - particularly like the former because I can edit
file
# [EMAIL PROTECTED] / 2007-01-21 17:29:56 +0300:
> I am trying to create a link checker that would look for broken URLs
> with help of the following code"
>
> $handle = @fopen("http://www.circle.am";, "r");
> if ($handle):
> print "OK";
> else:
> print "Error";
> endif;
>
> The problem is that I
God I love this list.. great answers everyone! (serious and non-serious :)
In addition to the editors listed, here's a few more to consider:
Crimson Editor - my personal favorite when I don't need code completion. Code
highlights for many different types of code (including my beloved LUA files u
Christopher Deeley wrote:
> Can anyone tell me if there is a function to return the first letter in a
> string, such as:
>
> $surname="SMITH";
> $forename="ALAN";
>
> Is there a function which I can use to make $forename "A", so I can display
> it as A SMITH?
another alternative to the other ans
Hi
I'm looking to create a Table that holds all of the PHP Functions, their
description and syntax.
It's all in the manual and I'm trying to extract it from there but I find it
hard since the HTML template is not the same for all the functions.
I may be going about this the wrong way... is th
[EMAIL PROTECTED] wrote:
> Hi list,
>
> I am trying to create a link checker that would look for broken URLs
> with help of the following code"
>
> $handle = @fopen("http://www.circle.am";, "r");
> if ($handle):
> print "OK";
> else:
> print "Error";
> endif;
>
> The problem is that I want to ch
On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote:
>
>
> $initial = (is_string($forename) && strlen($forename) > 0)
>? $forename[0]
>: ''
>;
>
> echo trim($initial.' '.$surname);
>
> ?>
That sure is verbose Jochem...
Cheers,
Rob.
--
.--
Robert Cummings wrote:
> On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote:
>> >
>> $initial = (is_string($forename) && strlen($forename) > 0)
>> ? $forename[0]
>> : ''
>> ;
>>
>> echo trim($initial.' '.$surname);
>>
>> ?>
>
> That sure is verbose Jochem...
agreed, it was don
On Sun, 2007-01-21 at 16:27 +0100, Jochem Maas wrote:
> Robert Cummings wrote:
> > On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote:
> >> >>
> >> $initial = (is_string($forename) && strlen($forename) > 0)
> >> ? $forename[0]
> >> : ''
> >> ;
> >>
> >> echo trim($initial.' '.$surnam
Robert Cummings wrote:
> On Sun, 2007-01-21 at 16:27 +0100, Jochem Maas wrote:
>> Robert Cummings wrote:
>>> On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote:
>>>
$initial = (is_string($forename) && strlen($forename) > 0)
? $forename[0]
: ''
;
echo
Since a couple of IDEs have also been mentioned, I would like to add to the
list of sugestions phpEdit (http://waterproof.fr/) for Windows only. It
does all that Eclipse with all the plugins for PHP does, plus some, but it
is much slimmer and faster. I admit that since what I have already
ins
On Sun, 2007-01-21 at 16:49 +0100, Jochem Maas wrote:
> now we can get on with having a flame war as to the 'best' way to style
> your code, because obviously this is better ;-) ...
Game on! :B
> echo trim(substr((string)$forename, 0, 1).' '.$surname);
Surely any fool can see that yours is infer
That's interesting. I've been trying to use Eclipse, and its code-assistance
for PHP is some of the worst I've ever used. I can't type "array" without it
trying to complete that to an Array class from SPL, yet it never
auto-completes to any function or class I wrote myself. Nor does it seem t
I don't know what version you are using or what plugin you are using, there
are more then one plugin :)
To be clear: I am using Eclipse 3.1 with PHPEclipse 1.1.8 and that is
working very well. It does auto complete classes and functions written by my
self etc.
I tried some other PHP plugin for Ec
Thank you Roman and Jochem,
I'll try both.
Best regards,
Ed
Sunday, January 21, 2007, 6:27:44 PM, you wrote:
> # [EMAIL PROTECTED] / 2007-01-21 17:29:56 +0300:
>> I am trying to create a link checker that would look for broken URLs
>> with help of the following code"
>>
>> $handle = @fopen("ht
On 1/20/07, Vinicius C Silva <[EMAIL PROTECTED]> wrote:
hi everyone!
i'd like to ask something maybe commonly asked here. what is the most
powerful php editor?
I think Stut hinted a lot in his PS he provided, if you believe this
to be a common question, it would be best to research this and
An example:
Hope it helps!
--
==
Nick Stinemates ([EMAIL PROTECTED])
http://nick.stinemates.org
AIM: Nick Stinemates
MSN: [EMAIL PROTECTED]
Yahoo: [EMAIL PROTECTED]
==
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
Copy&Paste man ;) (Just kidding) Now, seriously, I myself would write a
parser for this, fetch some raw data from the pages, and do further
processing on those.
I didn't checked yet, but I am almost sure that there may be only a few
variations of the manual's used html template, and I don't th
esteban wrote:
The don't want to pass the session variable across domains. The problem is
in the main domain, i don't know what happens, the session variable lost the
value or is distroyed.
Track down where is happens with lots of 'error_log' and 'print_r'
calls. Work out where it breaks then
At 10:05 AM -0400 1/21/07, Miles Thompson wrote:
Which then leads me towards ZEND, although I've never used it.
I purchased the Pro version (ZendStudioClient) but considering that I
couldn't get it to work with my host in real time, I went back to
GoLive for the Mac. That way my develop, uplo
-Original Message-
From: Vinicius C Silva [mailto:[EMAIL PROTECTED]
Sent: 21 January 2007 02:54
To: php-general@lists.php.net
Subject: [PHP] most powerful php editor
hi everyone!
i'd like to ask something maybe commonly asked here. what is the most
powerful php editor?
=
On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote:
>
> For me the analogy goes something like this: if you type the occasional
> letter or note then Wordpad is perfectly adequate, but if your livelihood is
> churning out professional well-formatted heavy-weight documents then it pays
> you to inve
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: 22 January 2007 01:32
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Subject: RE: [PHP] most powerful php editor
On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote:
>
> For me the analogy goes something like thi
Hi List
I am working with an application that has to run as a socket listener. It
receives a string from another application on a certain socket and then does
some processing and then passes the result back to the client application via
the socket. Here is the listener code I am using
while(true)
Richard Luckhurst wrote:
> Hi List
>
> I am working with an application that has to run as a socket listener. It
> receives a string from another application on a certain socket and then does
> some processing and then passes the result back to the client application via
> the socket. Here is the
On Mon, 2007-01-22 at 02:13 +0200, Arno Kuhl wrote:
> -Original Message-
> From: Robert Cummings [mailto:[EMAIL PROTECTED]
> Sent: 22 January 2007 01:32
> To: [EMAIL PROTECTED]
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] most powerful php editor
>
>
> On Mon, 2007-01-22 at 01:22
Dear god Arnot, would you like to stand back for a moment and consider
how retarded those statements are, or would you like for me to do it for
you?
Whether you use a powerful IDE or not, you still have to use the same
compiler underneath. In PHP, that "compiler" is the web server. Unless
you b
I was originally using PHPEclipse. When I rebuild my computer a few weeks
ago, I decided to give the PHP-IDE package a try (given that Zend is planning
to replace their own first-class IDE with the results of the PHP-IDE work).
In both of them, I found the same major problems:
- Code assistan
-Original Message-
From: John Meyer [mailto:[EMAIL PROTECTED]
Sent: 22 January 2007 03:15
To: php-general@lists.php.net
Subject: Re: [PHP] most powerful php editor
Dear god Arnot, would you like to stand back for a moment and consider
how retarded those statements are, or would you like
Hi Jochem,
JM> I would start by reading the relevant page:
JM> http://php.net/socket_write
JM> after reading that your first attempt will probably be this
JM> (you may have complication is your using a multibyte charset):
As I had said in my earlier post I had already read the php manu
Hi Jochem,
JM> I would start by reading the relevant page:
JM> http://php.net/socket_write
JM> after reading that your first attempt will probably be this
JM> (you may have complication is your using a multibyte charset):
As I had said in my earlier post I had already read the php manu
2007/1/20, Arpad Ray <[EMAIL PROTECTED]>:
Martin Alterisio wrote:
> Double slash to prevent PHP interpreting the slashes. Also using single
> quotes would be a good idea:
>
> if (preg_match('/[\\w\\x2F]{6,}/',$a))
>
Just switching to single quotes would do the trick - you don't need to
escape a
Hi List
I have been banging my head against a wall all day trying to work this problem
out. To recap my earlier post, I have a simple socket listener that handles the
incoming string fine with socket_read and then it fires off the application as
it should. When it returns the data to the socket on
# [EMAIL PROTECTED] / 2007-01-21 17:04:43 +0200:
> I'm looking to create a Table that holds all of the PHP Functions, their
> description and syntax.
>
> It's all in the manual and I'm trying to extract it from there but I find it
> hard since the HTML template is not the same for all the functio
56 matches
Mail list logo