2009/2/16 Ashley Sheridan :
> On Mon, 2009-02-16 at 20:34 +0000, Stuart wrote:
>> 2009/2/16 Paul M Foster :
>> > On Mon, Feb 16, 2009 at 07:30:57PM +0200, Thodoris wrote:
>> >
>> >>
>> >>> I'm submitting a url like this:
>>
2009/2/17 Paul M Foster :
> On Mon, Feb 16, 2009 at 08:49:06PM +0000, Stuart wrote:
>
>> 2009/2/16 Paul M Foster :
>
>
>
>> >
>> > Agreed. But here's the real reason, in my case. We develop the pages on
>> > an internal server, which has t
2009/2/17 Paul M Foster :
> On Mon, Feb 16, 2009 at 08:34:22PM +0000, Stuart wrote:
>
>
>
>> This is your problem, you're not understanding where the paths are
>> being resolved. Apache has absolutely no involvement in resolving
>> relative paths in your HTML
find images, etc., based on the odd URL.
If you don't already have it get Firefox. Once you have that google
for the livehttpheaders extension. Using that you can see exactly what
the browser is asking the server for, including all headers.
-Stuart
--
http://stut.net/
--
PHP General Mailing Li
op level of the directory tree
> (../) would work form anywhere within the tree?
> Am I the victim of my own misconceptions here?
> TIA to set me straight.
Personally I always include files relative to my current location
using the following...
include dirname(__FILE__).'/lib/db1.php';
That way it doesn't matter how INI vars are set up and I don't need to
fanny around with setting them at runtime.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/2/17 PJ :
> Stuart wrote:
>> 2009/2/17 PJ :
>>
>>> Dotan Cohen wrote:
>>>
>>>>>> So put it all in one place:
>>>>>>
>>>>>> >>>>> include "path.inc";
>>>>>> prin
2009/2/18 PJ :
> Stuart wrote:
>> 2009/2/17 PJ :
>>
>>> Stuart wrote:
>>>
>>>> 2009/2/17 PJ :
>>>>
>>>>
>>>>> Dotan Cohen wrote:
>>>>>
>>>>>
>>>>>>>> So put it
2009/2/18 PJ :
> Stuart wrote:
>>>>
> This generates a Fatal error: Cal to undefined function dirname()
The dirname function is present in both PHP 4 and 5 and does not rely
on any external libraries. Are you sure you're spelling it right?
http://php.net/dirn
2009/2/18 PJ :
> Paul M Foster wrote:
>> On Wed, Feb 18, 2009 at 12:05:21PM -0500, PJ wrote:
>>
>>> Stuart wrote:
>>>> 2009/2/18 PJ :
>>>>
>>>>> Stuart wrote:
>>>>>
>>>>>>>>
>>>>
gt; Rob.
> >>> --
> >>> http://www.interjinn.com
> >>> Application and Templating Framework for PHP
> >>>
> >>>
> >> ASCII is only a subset of binary in a pedantic, literal sense. When
> >> people say binary file, they mean one that contains characters which are
> >> outside the normal display spectrum, such as chr(0), etc.
> >
> > And the argument that PHP is not compiled requires a certain level of
> > pedantry and it is still an incorrect argument since it most certainly
> > is compiled to an intermediary virtual machine code.
> >
> > Cheers,
> > Rob.
>
> Still, in PHP $compile_time == $run_time.
I haven't been following this thread, but this caught my eye as being
completely wrong. There are distinct compile and execution phases when PHP
runs a script, and different rules apply to each. If you don't believe me
try defaulting the value of a class variable to the result of a function.
-Stuart
--
http://stut.net/
2009/3/1 Shawn McKenzie
> Stuart wrote:
> > 2009/2/28 Shawn McKenzie
> >
> >> Robert Cummings wrote:
> >>> On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote:
> >>>> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote:
&
;s of millions of queue
items per day without any problems, with the advantage that I can scale
across servers as well as processes.
-Stuart
--
http://stut.net/
mplest level you'd probably call this an instance of the front
controller pattern (Google it), but they usually go a lot further than this.
As far as templating systems go I personally don't think they add anything
to the equation unless you're working with designers who are already
number of other things, most of which are not public. It is more than
possible that PJ did get different results to you from the same search term.
Hell, I get different results on my machine than the guy the other side of
the office.
That was all.
-Stuart
--
http://stut.net/
2009/3/4 Daniel Brown
> On Wed, Mar 4, 2009 at 11:31, Stuart wrote:
> >
> > The results returned by Google are not constant. They vary based on your
> > location, which domain you're using, which index instance you hit and a
> > number of other things, most of
2009/3/4 PJ
> Stuart wrote:
> > Cracking response Dan, and I agree fully with most of it. A while back
> > I was a far more active contributor to the PHP lists than I am now
> > (promotion == more responsibility == less spare time) and the reason I
> > do it is becau
dirname() gives you the full path on disk, not the URL. Usually you can
just remove the document root path to get the URL. This could be in
$_SERVER['DOCUMENT_ROOT'] but you can't rely on that between servers or when
the config changes.
-Stuart
--
http://stut.net/
lled Spider. I created person and
spider characters (as in patching over existing letters in the standard
character set), put them on a playing surface and the spider tried to catch
the person as they moved around to pick up asterisks. Really simple but huge
fun. I was hooked. Still am.
-St
2009/3/6 haliphax
> On Fri, Mar 6, 2009 at 9:08 AM, Stuart wrote:
> > 2009/3/6 Robert Cummings
> >>
> >> I just turned 35... today... that's young by the standards of a 70 year
> >> old >:)
> >
> > Happy Birthday ya wise old git.
>
path?
The current working directory cannot be trusted to be "right". The best
option is to use dirname(__FILE__) and add '/..' as many times as needed to
get from the current file to the document root you're after.
-Stuart
--
http://stut.net/
>
2009/3/8 Clancy
> On Sun, 8 Mar 2009 09:01:18 +, stut...@gmail.com (Stuart) wrote:
>
> >2009/3/8 Clancy
> >
> >> I want to index the files on a website recursively. The program will run
> in
> >> the site root
> >> directory, which GETCWD rep
2009/3/8 Clancy
> On Sun, 8 Mar 2009 12:33:15 +, stut...@gmail.com (Stuart) wrote:
>
> >2009/3/8 Clancy
> >
> >> On Sun, 8 Mar 2009 09:01:18 +, stut...@gmail.com (Stuart) wrote:
> >>
> >> >2009/3/8 Clancy
> >> >
> >&g
rriage returns or
repeated white-space. If you want carriage returns or tabs you need to use
appropriate tags and/or CSS.
-Stuart
--
http://stut.net/
2009/3/10 Clancy
> On Mon, 9 Mar 2009 10:07:33 +, stut...@gmail.com (Stuart) wrote:
>
> ...
> >As in the example script I've posted above you can refer to the current
> >working directory with a single period (.), but this is still relying on
> the
> >c
I wish you the best of luck. Personally I will never do that
again because a bad experience that involved the need to change hundreds of
lines of code have taught me that it's not a safe bet.
But feel free to ignore me.
-Stuart
--
http://stut.net/
a way to get it to go to the other page (even with a different
> command/function) - or am I doing something wrong?
Is display_errors on and error_reporting set to at least E_ALL? My guess
would be your test server has output buffering on but your main server does
not. Without errors there's no way to be sure.
-Stuart
--
http://stut.net/
hack through the code to hide it or... what?
When you send an email to this list your address becomes public. I'm sure
there are many address collectors subscribed to every mailing list on the
planet with the sole purpose of building huge lists they can then sell. When
they then send you an email directly it won't include the PHP footer because
it never goes near the PHP list server.
-Stuart
--
http://stut.net/
2009/3/11 Clancy
> On Tue, 10 Mar 2009 15:12:57 +, stut...@gmail.com (Stuart) wrote:
>
> >Please keep the discussion on-list.
> >
> >2009/3/10 Clancy
> >
> >> Hi,
> >>
> >> After I posted my message to the group today I realis
o much info?
It really doesn't matter, so long as you set up the right indexes before you
import the file. Without the right indexes Oracle is just as slow as MySQL
which is just as slow as Postgres.
If you want an opinion I'd probably use Postgres for a dataset that big, but
MySQL shouldn't have a problem with it.
-Stuart
--
http://stut.net/
m the security context of a page on your site. This is not good.
Check out http://php.net/htmlentities and associated functions.
-Stuart
--
http://stut.net/
Please include the list when replying unless you're looking to hire me!
2009/3/11 filtered
> On Wed, Mar 11, 2009 at 13:41, Stuart wrote:
> > 2009/3/11 filtered
>
> >
> > $_GET['cam'] looks fine. $_GET['studio'] is not.
> > I could build
2009/3/11 Jochem Maas
> Stuart schreef:
> > Escape stuff coming in and escape stuff going out. There are no
> exceptions.
>
>
> actually that should be: filter stuff coming in, escape stuff going out.
>
Good schreef! Erm, I mean, quite right to.
Top o' the mor
I can do like sh -x on a php page to see what is broke?
Check your include_path setting - my guess is that it doesn't include the
current directory (.).
-Stuart
--
http://stut.net/
2009/3/16 Payne
> Nick Cooper wrote:
>
>>
>>
>> 2009/3/16 Stuart mailto:stut...@gmail.com>>
>>
>>2009/3/16 Payne mailto:pa...@magidesign.com>>
>>
>>
>>> I had a page working on my opensuse 11.0 32bit,
the script? So it will be "/home/george/foo" when I run it but,
> for
> another user, it would be "/home/their-username/foo"?
$dir = realpath('~/foo');
-Stuart
--
http://stut.net/
at the end of the quiz explaining
what the benefits are for the user, don't bother with the benefits for
you.
I'd also recommend implementing a way for anonymous users to comment
on the quizzes, either publicly and/or privately.
-Stuart
--
http://stut.net/
> On 3/18/09, Ashley Sheri
Please keep the discussion on-list.
2009/3/18 Bill Mudry :
> At 04:44 AM 3/18/2009, you wrote:
>
> 2009/3/18 Joao Gomes Madeira :
>> Hey Stuart
>>
>> That's what I thought at first, but Bill mentioned the usage of a form
>> only as an example, in reality he i
HEAR HEAR.
Btw, I'm not a real person, I'm a highly sophisticated bot started by
Sir Lynch way back when. How's my driving?
Top posting... well, just because!
-Stuart
--
http://stut.net/
2009/3/20 Jochem Maas :
> Ginkga Studio, LLC schreef:
>>
>> As a matter
ding to the C API docs [1] it cannot return an error.
Looking in the extension source [2] it would appear that
incorrect/invalid parameters, lack of MySQL connection and memory
allocation errors are the only reasons why it would fail.
-Stuart
[1] http://dev.mysql.com/doc/refman/5.0/en/mysql-
e contribution to the world, and with regards to the PHP
community that means helping other people and considering marketing
your business as a secondary objective. If you can't deal with that I
suggest you unsubscribe as quickly as possible because you'll get no
value from it.
>> ~Samantha (a real person)
>
> ~ Dan (SELF-appointed important person)
>
> ~ SAMANTHA (DIRTY CAPTITALIST REPUBLICAN)
-Stuart (a suitable arbitrary label has not been invented yet)
PS. Please quit with the caps, it's unnecessary and considered extremely rude.
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/3/20 George Larson :
> I'm reorganizing my reader. Anybody suggest any good PHP feeds?
http://www.planet-php.net/ is an aggregator of some of the good stuff
that's out there.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
and decide it doesn't apply. In my view this list and
the people on it are my clients, as is the board at my day job, as is
my better half, etc. A client to me (and a fair percentage of the
people I know) is "anyone you do stuff regardless of remuneration",
and very similar procedures apply to all different types of clients
for the purposes of specifying requirements and estimating effort.
Now that's done, it's Mothers Day here in jolly old England, and I
have a phonecall to make!
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tarting from scratch it has the advantage of limiting the
skills required. Jaxar sits on top of Apache so I'm not sure what the
performance is like. Either way I don't see it gaining much traction
these days, at least not quickly.
-Stuart
--
http://stut.net/
--
PHP General Mailing Lis
comments. Something like the following...
sofihsod hiosdh sdh gus us u sg
You then just start with you see the begin comment and stop when you
hit the end comment.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ow do you determine the next 5 mins?
Assuming you mean "what will time() return in 5 minutes time?"...
$five_minutes_time = time() + 300; // 300 seconds in 5 minutes
If you mean something else please try rephrasing the question.
-Stuart
--
http://stut.net/
--
PHP Gener
t already).
>
> Please, someone have any idea what the is happening?
Please refrain from using language like that on this list. It's
unnecessary inappropriate.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
as been set up. Given that it should be
obvious that the keys you've set up for the user you run it as from
the command line will not be used from the web server.
Hope that gives you enough info to solve the problem.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/4/3 Andrew Williams :
> HOW DO YOU CONFIGURE scheduled task to use firefox instead of Internet
> Explorer
Why is a scheduled task using a browser at all? What is the task doing?
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Please include the list when replying.
2009/4/3 Andrew Williams :
> interval update
I'm sorry, and that means what exactly?
Assuming you just need to hit a certain URL periodically you just need
to use curl or similar. There's no need to get a browser involved.
-Stuart
> On
2009/4/3 Andrew Williams :
> That is a better idea but the program needs about five minutes to complete.
> Would that not be a problem?
No more so that it would be in a browser.
-Stuart
> On Fri, Apr 3, 2009 at 2:44 PM, Stuart wrote:
>>
>> Please include the list when rep
script}
>
> window schedule task:
> run box: php.exe to scheldule task it every 5 minutes:
>
> C:\php.exe D:\update\while_loop_script.php
It's been a while since I've used PHP on Windows but IIRC you want to
be using php-cli.exe not php.exe.
-Stuart
--
http://stut.net/
sure hundreds of other places.
>
> I don't think this list is the appropriate place for it really but that's
> just my opinion.
Didn't really read Bruce's email didya Chris?!!
@Bruce: In my experience most common problems that everyone has are
documented somewhere on the inte
ds in services at an increased cost. How can
> people screw up something they bought? Beats me.
I use gandi.net and can't say enough good things about them - never
had a problem in nearly 10 years!
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sucks as a user experience. Why not simply put an
alert somewhere prominent on the page with the message you want to
convey? That way you can have it on every page and not interrupt the
users use of your site.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To uns
gt; echo get_class($b),"\n";
> echo get_class($c),"\n";
> ?>
Up until 5.3 this was just the way it was. It has been "fixed" in 5.3.
See here for more info: http://php.net/lsb
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the code because it was developed for a client, but
it's pretty simple in concept.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Please read things more carefully before responding... I was answering
the question, not asking it.
-Stuart
2009/4/21 David Négrier :
>
> Hi Stuart,
>
> Indeed, in order to create a chat, you need to be able to push messages
> from the server to the browser.
> There are sev
2009/4/21 tedd :
> At 11:57 AM +0100 4/21/09, Stuart wrote:
>>
>> Not sure what you mean by "chats" but is it anything like this...
>>
>> http://pnotes.org/
>>
>> If so then I'm happy to talk about how I implemented it. Unfortunately
>
2009/4/21 tedd :
> At 3:27 PM +0100 4/21/09, Stuart wrote:
>>
>> 2009/4/21 tedd :
>> > That's about it, isn't it?
>>
>> You know me better than that ;-)
>>
>> It's a live chat system with no flash in sight. No DB either, the
>>
2009/4/21 David Négrier :
>
> Here is a quick explanation of what is going on behind the scene:
>
> When a client loads the HTML page, a Javascript function is triggered. This
> function performs an Ajax call to the server. In the case of Stuart, I
> think he wrote a small fastCg
and then starts another connection. Hence the name, long
polling.
I've had a response from my client and he's happy to open source the
whole thing but it needs a bit of work before it's ready for that so
it may be a little while before I have something, but I'll be sure to
post
nt connections at peak, potentially more.
Xaja looks interesting tho, will be looking further into that. Thanks.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/4/21 David Négrier :
> I'll keep an eye on pnotes too, if you plan to keep evolving it. There is
> only a demo on the web site right now. Do you plan to release it some day?
Yes. Hopefully in the near future, but don't hold your breath.
-Stuart
--
http://stut.net/
--
PHP
?
As far as I'm aware what you're asking for is not possible. Exception
handlers run without any context - check the return value from
debug_backtrace() in a catch block to see what I mean.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dress.
Question is why don't you want to ask the user to confirm their email
address? It's a pretty standard requirement these days that most users
are familiar with. I can't think of a single reason why any company
would want to avoid it.
-Stuart
--
http://stut.net/
--
PHP Genera
some domains will not accept these requests.
>
> I think that this method would really work for us and cut down on the
> bogus e-mail addresses we're receiving though. Thoughts?
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/4/28 Per Jessen :
> Stuart wrote:
>
>> 2009/4/28 Jay Blanchard :
>>> Our company wants to do e-mail verification and does not want to use
>>> the requests / response method (clicking a link in the e-mail to
>>> verify the address), which as we all kn
destructor will be called at the end of each page request because
the object in memory is destroyed.
When the object is serialized you will get __sleep being called, and
when it's unserialized you'll get __wakeup.
There is no way to detect when a session is destroyed unless you
implement your own session handler.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
er function like nl2br?
What's your problem with using nl2br? This is the reason it exists!!
Store the raw data in the database, and run nl2br on it when you
display it. I don't see a "problem".
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a single space. This can be a very useful feature but
is not immediately obvious to newcomers. If you're not familiar with
HTML I suggest you put PHP down for a while and have a play with pure
HTML - it'll be time well-invested.
-Stuart
--
http://stut.net/
> Stuart-47 wrote:
>
2009/5/20 Felix Siglreithmaier :
> is there a way to check if a path is within the document_root?
Compare it to $_SERVER['DOCUMENT_ROOT'].
> and is there a function to check if a path is absolute or not?
http://php.net/realpath
-Stuart
--
http://stut.net/
--
PHP General Ma
e then it's worth looking into shopping carts, but if it's always
just gonna be the one then there's no need for a "cart" at all.
-Stuart
--
http://stut.net/
> ""Gary"" wrote in message
> news:6b.85.16801.e5bf3...@pb1.pair.com...
>> Sorr
defaults to being on. It causes
the creation of superglobals to be delayed until they are actually
used. I don't know how it interacts with register_globals (the manual
says it'll be disabled if register_globals is on) but it makes sense
to me that this issue is related to that.
I'd say you'
2009/5/23 Afan Pasalic :
> short hack works like a charm!
> :-)
It may work but output buffers are relatively expensive. The eval
function will return the value the eval'd code returns, so just stick
a return statement at the end of the string you're eval'ing.
Suggestions...
> oorza...@gmail.c
Oops, didn't mean to hit send...
2009/5/23 Stuart :
> 2009/5/23 Afan Pasalic :
>> short hack works like a charm!
>> :-)
>
> It may work but output buffers are relatively expensive. The eval
> function will return the value the eval'd code returns, so just stick
2009/5/23 Robert Cummings :
> On Sat, 2009-05-23 at 14:43 +0100, Stuart wrote:
>> 2009/5/23 Afan Pasalic :
>> > short hack works like a charm!
>> > :-)
>>
>> It may work but output buffers are relatively expensive. The eval
>> function will return the
2009/5/23 Robert Cummings :
> On Sat, 2009-05-23 at 15:11 +0100, Stuart wrote:
>> 2009/5/23 Robert Cummings :
>> > On Sat, 2009-05-23 at 14:43 +0100, Stuart wrote:
>> >> 2009/5/23 Afan Pasalic :
>> >> > short hack works like a charm!
>> >
this for me?
I've never heard of this being possible in any language, never mind
PHP. The parent keyword you mention refers to the parent class not the
container, and works just as well in PHP as in other languages. Any
OOP implementation that allows a class to call functions in a
c
a
good reason to add pointless guff like a "templating engine".
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e the application layer to included an abstracted
> presentation layer, but it could have been avoided months ago with a days
> worth of work (or even an hours worth) and a different decision.
Using PHP for templates has absolutely no bearing on whether your
presentation is tied up with your logi
2009/5/25 Robert Cummings :
> On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote:
>> 2009/5/24 Nathan Rixham :
>> > LinuxManMikeC wrote:
>> >>
>> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote:
>> >>>
>> >>> At 12:01 AM
2009/5/25 Robert Cummings :
> On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote:
>> 2009/5/25 Robert Cummings :
>> > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote:
>> >> 2009/5/24 Nathan Rixham :
>> >> > LinuxManMikeC wrote:
>> >>
2009/5/25 Robert Cummings :
> On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote:
>> 2009/5/25 Robert Cummings :
>> > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote:
>> >> 2009/5/25 Robert Cummings :
>> >> > On Sun, 2009-05-24 at 21:26 +0100, S
2009/5/25 Robert Cummings :
> On Mon, 2009-05-25 at 19:56 +0100, Stuart wrote:
>> 2009/5/25 Robert Cummings :
>> > On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote:
>> >> 2009/5/25 Robert Cummings :
>> >> > On Mon, 2009-05-25 at 15:04 +0100, Stu
case the first parameter
to stream_socket_client is wrong. See the manual for details:
http://php.net/stream_socket_client
In future please consult the manual and double-check that you're
passing valid arguments to the functions you're using before asking on
this list.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"tcp:xx:xx"
... which is invalid. It should be ...
"$con://$ip:$port"
... which will translate to ...
"tcp://xx:xx"
... which is a valid value.
Please, read the damn manual ... carefully!!
-Stuart
--
http://stut.net/
> On Wed, May 27, 2009 at 1:
>
> if($fstream){
> $str = stream_get_contents($fstream);
> print( "Connection successful: $str ");
> }
> else{
> echo "Remote: ".$name." str: $strwrite:$br $errstr
> ($errno)";
> }
My guess is that the IP you're trying t
2009/5/27 HELP! :
> start> run> cmd>
> telnet ip port
>
> could not connect
In that case your problem is not with PHP. I suggest you talk to your
network administrator.
-Stuart
--
http://stut.net/
> On Wed, May 27, 2009 at 1:44 PM, Stuart wrote:
>>
>> 20
your better bet would be to find a list more suited
to the problem.
-Stuart
--
http://stut.net/
> On Wed, May 27, 2009 at 2:02 PM, Stuart wrote:
>>
>> 2009/5/27 HELP! :
>> > start> run> cmd>
>> > telnet ip port
>> >
>> > could not conn
ng or some other algorithm that's more complex than
simple matching or use a pre-existing solution.
I'm sure you could integrate SpamAssassin or similar because at the
end of the day all those systems expect is a bunch of text. If they
require the headers of an email you can supply fake
.
Hmm, might have to write that lot up as a blog post with some example
code. Sometime...
-Stuart
--
http://stut.net/
> -Original Message-
> From: bruce [mailto:bedoug...@earthlink.net]
> Sent: Friday, May 29, 2009 1:11 PM
> To: php-general@lists.php.net
> Subject: [PHP]
2009/5/29 Bastien Koert :
>
> On Fri, May 29, 2009 at 2:12 PM, Stuart wrote:
>>
>> Hmm, might have to write that lot up as a blog post with some example
>> code. Sometime...
>
> I would be very interested in that. I am developing a project where a queue
> is r
to
> add an interval in secs?
$timestamp = time() + $num_secs;
-Stuart
--
http://stut.net/
> -Original Message-
> From: Shawn McKenzie [mailto:nos...@mckenzies.net]
> Sent: Friday, May 29, 2009 2:48 PM
> To: php-general@lists.php.net
> Subject: [PHP] Re: Numerical R
g that makes it execute that?? Show
us the code.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/6/4 Morris :
> Hi
>
> The register.php has only a form
>
>
>
>
>
> ?>
>
> Does this help ?
1) That is not valid PHP code.
2) Even if it were there's nothing in there that would be exploitable
through the URL you sent in your first email.
r is running on a Symbian cellphone.
Run this on a command line and hit the IP on port 8000. All it does is
read the request and send it back as the response. It ignores POST
bodies but it would be pretty simple to modify it so it echo's those
back too.
http://dev.stut.net/php/httpsrv.phps
ove the while(true) loop before you do that, and close
the $s socket at the end of the script.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pages that are hit a lot that I cache as
an HTML chunk but for the most part it's just data in the cache. My
reasoning behind this is that DB's are painful and expensive to scale
whereas HTTP/PHP servers are simple and cheap.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ou sure it's the MySQL
query that's being slow and not something in the surrounding code? If
it is the MySQL query what is it and what engine are your tables
using?
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
leave just the number?
> Is something like this at all possible?
Oh dear $DEITY. Please find a beginners tutorial to PHP and complete
it before asking questions on this list.
http://www.example.com/index.php?id=12345
will give you
$_GET['id'] == 12345
-Stuart
--
http://stut.net/
101 - 200 of 1126 matches
Mail list logo