Please include the list on replies.
Marco Sottana wrote:
potato
Not really a fruit is it. Still, I'll take that to mean that you got my
point.
-Stut
- Original Message - From: Stut [EMAIL PROTECTED]
To: Marco Sottana [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Thursday
/PHP/Scripts_and_Programs/Auctions/index.html
But bear in mind that you'll need to put stuff in place to cover all the
legal issues raised by online auctions. The reason I recommended eBay is
that they're set up to do this, but it's your funeral.
-Stut
- Original Message
://ebay.com/
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
follow
their rules.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an image and don't link it. If it's
just a way for visitors to contact you, use a contact form. You don't
expose the email address and can control it a lot better.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this question in the past, its been a while since
I last thought of this problem.
__FILE__ will give you the path and filename of the current file.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
clive wrote:
Thanks Vincent,Stut and Olaf. Thats __file___ is exactly what I needed :)
now for another brain teaser for your collective brains, How does a
function know what file it was called from.
a.php includes functions.php
in a.php we call function test(); which is declared
Helder Lopes wrote:
how to transform a block of code in html to php??
HTML to PHP? You having a laugh?
What are you actually trying to achieve?
-Stut
for example this,
p
STRONGP.M.R. Leiria /STRONG - STRONG Produtos para Mec. e
Racionalização Informática, Lda./STRONGbr
lists specifically for
phpMyAdmin questions. Try the link below, which was found incidentally
by typing phpmyadmin mailing list into Google.
http://sourceforge.net/mail/?group_id=23067
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you might want to reconsider.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
script, rather than trying to intercept the request
itself.
Alternatively, do an AJAX request in the onsubmit for the form that does
the PHP bit, and if the response is good, then post the form.
-Stut
-Original Message-
From: blackwater dev [mailto:[EMAIL PROTECTED]
Sent: Tuesday
about them
someplace.
Nobody has asked the obvious question yet... why?
If you're just looking for what's new in PHP5, this is probably not the
best way to go about it. If there is another reason, if you tell us what
it is we may be able to help you further.
-Stut
--
PHP General Mailing List
Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
So, to my question. Does anybody have a place they can refer me to
to find out about all the available classes in PHP5. Granted that I
don't have all the various extensions loaded, so I don't have access
to the various classes. I would
the directories with a colon.
The manual exists for a reason, please use it.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Please include the list in replies.
Tim McGeary wrote:
Stut wrote:
Tim McGeary wrote:
I am new to this list today, so if I should be sending this to another
specific PHP list, please let me know.
I am getting the following error via the PHP web page I am building:
Warning: mysql_connect
Tim McGeary wrote:
Please include the list in replies.
Sorry, I meant to, but hit the wrong button.
And I sent it to the wrong list!! Sorry folks.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
should go out and plant a tree.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sancar Saran wrote:
Yes you are absolute right.
Session was locked...
Thanks for info :)
No problem, but please include the list in replies especially when
you're confirming a possible explanation. It helps improve the
usefulness of the archives.
-Stut
On Tuesday 06 February 2007 13:54
.
Indeed.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this is not a question for a PHP list
because it relates to client-side code. Google will almost certainly
have several useful sites.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
page?
The bottom line is that this needs some client-side code to work,
whether it be Javascript or just an iframe with a meta refresh tag.
-Stut
- Original Message - From: Stut [EMAIL PROTECTED]
To: benifactor [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, February 05
. It is perfectly fine to use it in a commercial
environment however.
I feel the same way about cars. There are some terrible drivers out
there, so we should all take the bus.
Won't work. There are some *really* terrible bus drivers out there.
-Stut
--
PHP General Mailing List (http://www.php.net
below
snip
I do not understand why the value of the sql parameter is truncated. Any
help is appreciated!!
If you really care then you need to sniff the traffic. Chances are that
either the browser or server is truncating it.
Oh, and please tell me you're not really doing that
-Stut
, and reading the
output you're seeing, I have determined that... ahh, hang on a second,
I've started seeing code where no code exists. Is that a bad thing?
Should I see someone?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or stream
functions. If that is the case then I don't see where the Client
Browser comes into it.
Please elaborate further on what you are actually trying to accomplish.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$filenane = d:\\test.csv
if (file_exists($filename))
echo file_get_contents($filename);
else
echo 'File not found';
?
...and nothing else. Do you get any errors? Are errors turned on in php.ini?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Stut wrote:
$filenane = d:\\test.csv
Oops...
$filename = d:\\test.csv;
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
connection but use the existing TCP connection.
Ok, couple of questions...
1) Why?
2) Why?
What is making these connections from the client side?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jiffy Slides Leonard Burton wrote:
XAJAX or another AJAX library, perhaps?
Sorry, I missed a question.
3) Why do you need to use the same TCP connection?
-Stut
On 2/4/07, Stut [EMAIL PROTECTED] wrote:
chetan rane wrote:
i want to write a script
where , when ny client requests come i
versa
i think this makes it clear.
OK, so you're basically making a server app. I suggest you start here:
http://php.net/stream-socket-server
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the customer/user/whatever you need from the given details
if (not found)
{
die('Unable to locate customer/user/whatever');
}
// Set up the session here, or however you're tracking the
// current customer/user/whatever
header('Location: /somewhere_else');
?
Hope that helps.
-Stut
--
PHP General
part of the site. Having it happen again because of the user refreshing
the page needs to be avoided. The redirect accomplishes this.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
do that, make sure the Python side is right, for which
you'll need a Python mailing list.
-Stut
code
# Set the socket parameters
host = http://localhost/in/sql.php;
port = 1
buf = 1
addr = (host,port)
# Create socket
UDPSock = socket(AF_INET, SOCK_DGRAM)
# Send messages:
# Loop
while
for more infomation.
No thanks, I'm good.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://othersite.org/, in which case do the check
up to the first '.'.
if (false === strpos(substr($url, 0, strpos($url, '.'), '://'))
{
$url = 'http://'.$url;
}
I don't have numbers, but I'd bet this is quicker than doing a parse_url.
-Stut
--
PHP General Mailing List (http://www.php.net
.= implode(',', array_values($values));
$sql.= ')';
return $sql;
}
Note that this is a *very* cut down and untested version of BuildInsert.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
format (var1=val2var2=val2).
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
}
Your problem is that you made lazy assumptions, and we all know that
assumptions are the mother of all fsckups. Now please irradiate your
hands and try again.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
response was rude and not very helpful to a newbie to PHP.
I apologise if you took my response to be rude, that was not my intention.
As I said before, if you want help you need to give us accurate
information. We're not mind readers.
-Stut
PS. Look into my eyes, just the eyes, not around the eyes
results, just how dumb are you?
-Stut
Easily annoyed today. Must be a Saturday, I never could get the hang of
Saturdays.
[Doug is dead, long live Doug!!]
Ramble ramble ramble.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. It's also a hell of
a lot of fun!!
Or did you mean a different kind of powerful?
-Stut
PS: If you think it's a common question, search the list archives before
posting. Actually, before you post any question you should search the
list archives. And Google. And your brain. And down the back
= 'foo';
Then it's scope is the function including the file.
It's important to have this clear in your head when dealing with
included files, so I wrote an example that will hopefully demonstrate it
for the OP...
http://dev.stut.net/php/scope/
-Stut
--
PHP General Mailing List (http
/header), you read that right?
?php
header(Location: http://www.example.com/;); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
jsut a big blank space where the menu should be.
I have error_reporting = E_ALL switched on in the .ini
Any ideas?
Check that the display_errors option is on.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
again.
Hope that makes it clearer.
-Stut
-Original Message-
From: Satyam [mailto:[EMAIL PROTECTED]
Sent: January 12, 2007 8:21 AM
To: Beauford; PHP
Subject: Re: [PHP] Forms and destroying values
This issue comes over and over again. The trick, as I
learned from this list, is to send
if anyone on the list has dealt with this kind of thing
and what kind of strategies were employed.
That's basically it. I'm assuming that you're only storing the data for
each feed once even if several users are subscribed to it.
-Stut
--
PHP General Mailing List (http://www.php.net
Please keep it on list so others can benefit from the discussion.
Skip Evans wrote:
Stut wrote:
A well-formed feed should have a TTL value that defines how often the
feed should be checked.
I thought there might be something like that and looked at several of
the feeds in the DB and found
,
there is a manual: http://php.net/install.unix.apache2) for specific
instructions, but your httpd.conf needs at least the following two lines
(paths on your system may differ)...
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
-Stut
--
PHP General Mailing List (http
application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
I then restarted apache (service httpd restart) and tried viewing the
pages again; same outcome.
Check the Apache error log - I'm guessing it's failing to initialise the
PHP module.
-Stut
On Thu, 2007-01-11
. This
particular topic is covered *a lot*.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
time this month.
That's all I'm saying.
-Stut
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 11, 2007 3:03 PM
To: Sugrue, Sean
Cc: php-general@lists.php.net
Subject: Re: [PHP] Downloading a binary file
Sugrue, Sean wrote:
I need download a binary
Marcelo Ferrufino Murillo wrote:
I have to make a domain search so I don´t know if there is an API or
something that could help me in this o if you know how I could make this.
What do you mean by a domain search?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
= 'Thursday',
5 = 'Friday',
6 = 'Saturday',
7 = 'Sunday');
$day = $days[$day];
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the
individual tags, but you can associate each feed entry with a webpage
(commonly called the shownotes) where you can provide the full ID3 tags
for each individual source file and you'll have control over the order.
-Stut
First, let me say up-front, that technologically-speaking
version you're probably better off using
file_get_contents instead of fopen/fread/fclose.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thoughts, insights would be greatly appreciated.
That's really a question for the ad company to answer according to their
policy. You'll probably an answer in their instructions somewhere. We
can't give you an authoritative answer on a specific company's policy.
-Stut
--
PHP General Mailing
:-)
Don't forget Google, your second best friend. Google for php mysql
tutorial and you'll find a ton of stuff.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nit-picking and
go back to quoting standards.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
file in a different directory - I should have been
clearer on that.
I never said anything about being relative to the document root - you
pulled that out of somewhere yourself.
Happy now?
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jochem may be on to something with the idea of using
auto_prepend_file but I can't say for certain whether this is done
before or after the auto_start. If it is before then you could declare
the __autoload function in the prepended file and it should work.
-Stut
--
PHP General Mailing List
Richard Lynch wrote:
On Fri, January 5, 2007 4:36 pm, Stut wrote:
Richard Lynch wrote:
WILD GUESS
Search on php.net for __autoload
I think that will let you figure out a way to get the auto_start
session to automatically load your .class.php files, when it needs
them.
Nice idea
a complex database ORM-HTML mapping app that was about 10% faster
when I replaced all the strings with '' strings. This was on a
slow machine with an early PHP, but little things like this can be
very important.
http://dev.stut.net/phpspeed/
-Stut
--
PHP General Mailing List (http
Robert Cummings wrote:
On Thu, 2007-01-04 at 10:15 +, Stut wrote:
Gregory Beaver wrote:
This is a good example of how the flexibility of PHP can bite
you, but is also a good example of how bad coding adds both
complexity and inefficiency to the resulting software. If f() is
called
. It's a good idea though, if I get some time over
lunch I'll add it.
I had an eerie feeling I was being watched.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have a
look tomorrow.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
time.
I was bored when I wrote it. Dunno what the other guys reasons are.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the expression.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
usually stems from mixing files from
different PHP versions. Best advice I can give is to remove all traces
of PHP from the machine and then put them back using the ZIP file from
the PHP website.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Beauford wrote:
$query select count(date) as count, YEAR(date) as thisyear from stats group
^ = needed here
by thisyear;
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and thank $DEITY that there is no non-spam
header. Anyway, moving on...
Whether an email is marked as spam or not depends on a lot of factors.
Check the archives - this has been discussed a few times in the past few
months.
-Stut
Roman Neuhauser wrote:
Surely Thunderbird provides
that.
If that is not the case, and your ISP has actually completely blocked
outgoing connections on port 25, I suggest you find a new ISP.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Le Phuoc Canh wrote:
Can we use php to detect client screen resolution? Please help me ?
No we can't. You need Javascript or another client-side technology
for that.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the headers
and displaying the raw message. I'm gonna go with the former since
hopefully you'd remember if you'd told your mail client to do the latter.
-Stut
On 1/2/07, zoticaic [EMAIL PROTECTED] wrote:
--
My Seeding Blog | http://bytes.nullp0inter.com
Hire me as Freelancer |
http
and the Content-Type header.
This will cause the headers after MIME-Version to be ignored.
-Stut
On 1/2/07, *Stut* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
Anju Prasad wrote:
I am doing that but still not getting any fruitful results.
Show us exactly what you're doing
?
http://php.net/date
$time = date('H\hi', strtotime('00:00:00'));
Or, if the input format is always the same, you could do it like so...
$time = str_replace(':', 'h', substr('00:00:00', 0, 5));
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
it another way, give us the real URL to your site and we may
be able to help.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
database before
using mysql_real_escape_string.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
seeing some code and the XML feeds that the code is using.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:
mysql_real_escape_string(): Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2)
Any help would be appreciated.
You need to connect to the database before using mysql_real_escape_string.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
that will let you use your domain name.
Incidentally, someone else suggested setting the cookie domain. This
will not work because security restrictions prevent you from setting
cookies on a different primary domain name.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
, but it will have no
effect on an empty array.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to an
IMAP mailbox and I then use Thunderbird from work, home and laptop to
access it. Works very well.
3) At work I am forced to use Outlook, so I use Outlook QuoteFix to,
erm, fix the quoting in Outlook...
http://home.in.tum.de/~jain/software/outlook-quotefix
-Stut
--
PHP General Mailing
Robert Cummings wrote:
On Wed, 2006-12-20 at 15:14 +0100, Bernhard Zwischenbrugger wrote:
AJAX Webapplications are not possible in PHP4.
Bullshit.
Indeed, what with PHP being server-side and AJAX being client-side.
Where AJAX is concerned the server-side technology is irrelevant.
-Stut
to
give you a better answer.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
which is then what will be retrieved if the user refreshes it,
rather than refreshing the POSTed request.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
-Stut
On 12/15/06, Richard Lynch [EMAIL PROTECTED] wrote:
On Fri, December 15, 2006 10:28 pm, Casey Chu wrote:
Actually... Search engines don't have a JavaScript interpreter.
Actually...
You don't know for sure that Google isn't using Perl's javascript
interpreter.
Unless you work for Google
-2. Is there a way to change the
default
timezone for all scripts within a folder? And what about changing just one?
http://php.net/date_default_timezone_set
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
but I do know that with Postfix you can apply a limit to
the number of simultaneous processes that are started if you implement
it in the transport map.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this process as I am a bit
weary of using cron
Can anyone suggest how I can automate this using PHP ?
Face your fear use cron. You know it's the right thing to do.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Børge Holen wrote:
No, I LEARN from this list.
you?
I smoke this list. Keeps me happy, out of trouble, and best of all it's
free!
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jochem Maas wrote:
and say what *you* mean.
I LIKE MARMITE!!
Damn, that does feel better.
-Stut
(fairly bored today)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
what
you have output. I suggest you Google for examples of the settimeout
Javscript function - that's what you need to delay the redirect.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bruce wrote:
hey stut...
Please don't reply to me directly, always include the mailing list.
thanks for the reply... i did get some output...
i also have a question as to why i couldn't get it to work when i used
'header (foo.php)'
1) The correct way to redirect using the header function
/somewhere.
I'm sure something similar is possible in most web servers.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)
{
pcntl_wait($status, WNOHANG);
$workers--;
sleep(1);
}
That sits waiting for up to 5 minutes for all processes to end.
-Stut
**
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
overridden by the stdin redirect (at
least it does on FreeBSD 5.4).
Jochem: You need to read this...
http://dev.mysql.com/doc/refman/5.0/en/password-security.html
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(usually the keyboard on a standard console).
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to redirect stderr output to stdout in the command...
exec('apache2ctl graceful 21', $output, $exit);
Also, in my experience it's better to provide the full path to anything
you shell out to from PHP, especially if it's going to be executed from
a web request.
-Stut
--
PHP General Mailing List
{
public __construct($param = null)
{
if (!is_null($param))
{
// Parameter passed, do something with it
}
}
}
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1001 - 1100 of 1367 matches
Mail list logo