When your PHP script does "curl" it does not interact in any way,
shape, or form with the Location bar of the browser...
That's kinda the whole POINT of curl, to be able to snarf down content
from inside your script, instead of pushing the user off to some other
site.
If you just want to send the
Dan wrote:
I'm looking for a way to introduce PHP to some Delphi programmers, so I
thought a comparison would show them the major differences, but I can't
find anything like that on the web. Anyone have an article like that or
know of one?
- Dan
There's a HUGE list of differences, as they
On Wed, June 27, 2007 7:09 am, [EMAIL PROTECTED] wrote:
> i wrote a small RSS reader using file_get_contents to get the XML from
> the URI - however i noticed that this does not leave trace (User
> Agent)
> in the remote server logs.
>
> is there a way in PHP to get XML from URI and leave UA trace
On Wed, June 27, 2007 10:53 am, Shekar Iyer wrote:
> How can one find the bit-size of the system on which PHP
> is running. php_uname() does not return bit type
MAYBE:
0x){
echo "64-bit";
}
else{
echo "32-bit";
}
?>
--
Some people have a "gift" link here.
Know what I wan
On Wed, June 27, 2007 5:18 pm, Richard Davey wrote:
> How do you go about implementing a swear / bad-word filter in PHP?
>
> Reasons for needing one aside, I'm just wondering if you favour a
> regexp, a substr_count, or what? Do you like to *** out the bad words,
> or just error back to the user? (
WILD GUESS!!!
A rogue Apache child didn't get killed when you shut down Apache?...
On Wed, June 27, 2007 6:59 pm, brian wrote:
> PHP 5.1.4 on Fedora 2
>
> I recieved a note from a client about a problem with their site today.
> Looking at the error log, i found that the DB connection script that'
On Thu, June 28, 2007 8:39 am, Marek wrote:
> It's not really a limitation but a personal goal.
>
> I develop a small public script that is meant to be very compact and
> portable. All of its functionality fits nicely in one php file. But at
> the moment it requires a bunch of tiny icons. I would l
On Fri, June 29, 2007 4:57 am, Ryan A wrote:
> Have a quick question about which is better to get real random values,
> shuffle or mt_rand.
I *thought* that shuffle used mt_rand under the hood, but could be
totally wrong...
As far as REAL random values goes, that's an encyclopedia of
information,
On Tue, 2007-07-03 at 01:03 -0500, Richard Lynch wrote:
> On Sat, June 30, 2007 12:36 pm, Robert Cummings wrote:
> > It was JUST as complex the first time someone did it in C, or Java, or
> > what have your for a chosen language.
>
> No, it was more complex, because it wasn't PHP.
> :-)
Good poin
On Sat, June 30, 2007 12:36 pm, Robert Cummings wrote:
> It was JUST as complex the first time someone did it in C, or Java, or
> what have your for a chosen language.
No, it was more complex, because it wasn't PHP.
:-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy
On Sat, June 30, 2007 12:12 pm, Jay Blanchard wrote:
> [snip]
>> In short PHP cannot perform OCR functions.
>
> Why? PHP provides all requisite functions/features so if someone was
> sadistic enough and talented enough there's nothing to stop them
> writing
>
> an OCR app using it.
> [/snip]
>
> Su
Somewhere in that mess there should be something to do a
mysqli_select_db() to choose WHICH database to use...
Where it's supposed to be in the mess of OOP layers you're wrapped
around yourself, god only knows.
On Fri, June 29, 2007 12:31 pm, Lee PHP wrote:
> Hi,
>
> I have a class that extends m
On Sun, July 1, 2007 5:32 am, Ryan A wrote:
> Sometimes this gets solved with spitting out some headers telling IE
> not to cache while others have (dirty) solved it by adding a hash or
> something else unique to the page or the image...
If you need serious legacy support for cave-man days browser
On Fri, June 29, 2007 10:30 am, David Giragosian wrote:
> I've recently been using some limited free time to explore the
> Freemovie
> (Flash-PHP API) and Ajax technologies.
>
> Can anyone help me to understand whether these can be used together?
> Can I,
> for example, pull data from MySQL, dynami
On Fri, June 29, 2007 11:32 am, Jay Blanchard wrote:
> [snip]
> I am looking for a way to incorporate some simple OCR into a php
> script.
> The
> user will bulk scan a pile of invoices. I want the php script to look
> at
> each
> invoice and read a number off the invoice. The image will then be
>
Jochem Maas wrote:
admin wrote:
Jochem Maas wrote:
another solution for the OP might be (although I think it goes against
all
design principles):
class A {
function foo() {
echo "achoo\n";
}
}
class B extends A {
function foo() {
echo "cough\n";
}
function __call($meth, $arg
I don't even being to understand your question, but it's a MySQL
question anyway.
http://dev.mysql.com/
On Sat, June 30, 2007 12:18 am, kvigor wrote:
> Hello All,
>
> I'm attempting to return rows from a mysql DB based on this criteria:
>
> I have a list, in the form of an array that I need to co
If the date is coming from a database, there might be a
function/format already for that...
And http://php.net/date may also have a format specifier for Quarter.
If not, try this:
$quarter = ((int) ($month / 4)) + 1;
On Sat, June 30, 2007 10:14 am, revDAVE wrote:
> I have segmented a year into
On Sat, June 30, 2007 12:04 pm, jekillen wrote:
> Hello;
> I have the following code:
>
> $prps = str_replace("\n", ' ', $input[3]);
> $request = str_replace("// var purpose = {} ;\n", "var purpose =
> '$prps';\n", $request);
>
> In the first line $input[3] is a string formatted with new lines a
On Mon, July 2, 2007 3:44 pm, admin wrote:
IMHO, you were f'ed from the microsecond where you decided it was a
Good Idea (tm) to have an object instance for each row in the DB...
That just plain won't scale up very well at all for a large table, if
you ever need to get code re-use and do somethin
I meant to say: Got It, My bad, I really feel SHEEPISH... should have
done...
This is what happens when you're trying to code with a migraine, You start
speaking another language.
Thanks Again
""kvigor"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Got I'm my bad I really fe
Ok Jim,
This is what I have so far and I'm still working it out.
$in_list = "".join('',$someArrayList); // do I really need to concatenate
or separate anything here since my array values will be '7orange50lbs'? //
this is the format I want.
$query_One = "SELECT * FROM shoe WHERE CONCAT(size,c
Got I'm my bad I really feel SHEEPISH... s/b have done '$someArray ='
Re-read what I thought I read a it worked like a dream.
Thanks Adam
"Adam Schroeder" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The function str_replace() DOES NOT change the parameter. Rather,
> str_rep
jekillen wrote:
On Jul 2, 2007, at 6:07 PM, jekillen wrote:
On Jul 2, 2007, at 3:15 PM, Greg Donald wrote:
On 6/30/07, jekillen <[EMAIL PROTECTED]> wrote:
Hello;
I have the following code:
$prps = str_replace("\n", ' ', $input[3]);
Are you sure $input[3] doesn't have two newlines at th
The function str_replace() DOES NOT change the parameter. Rather,
str_replace() returns the desired string. Try changing your code to:
for($num = 0; $cntr < $num; $cntr++)
{
$someArray[$num] = str_replace(' ','',$someArray[$num]);
echo "$someArray[$num]";
}
http://us.php.net/manual/en/func
Need to remove all spaces from Array Values... And this doesn't work.
This is similar info that's within array values: $someArray[0] = "PHP is
awesome";s/b PHPisawesome
This is similar info that's within array values: $someArray[1] = "The Toy
Boat";s/b TheToyBoat
Begin Code=
On Jul 2, 2007, at 6:07 PM, jekillen wrote:
On Jul 2, 2007, at 3:15 PM, Greg Donald wrote:
On 6/30/07, jekillen <[EMAIL PROTECTED]> wrote:
Hello;
I have the following code:
$prps = str_replace("\n", ' ', $input[3]);
Are you sure $input[3] doesn't have two newlines at the end?
Why not u
On 6/25/07, Yashesh Bhatia <[EMAIL PROTECTED]> wrote:
i'm implementing an imap based mail client
That's a major wheel to go reinventing, have you not tried IMP/Horde?
http://www.horde.org/imp/
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
On 6/26/07, jeffry s <[EMAIL PROTECTED]> wrote:
i made a mistake when i say i can solve this problem to a friend.
finally i realize it is not as simple as i appear to be.
what he ask me to do is write a simple script that, given a word.. the
script will generate a list of words combinaton
from t
The username and password are probably in a configuration file, look arround
for a config.php, or anything of that variant. Also check in whatever php
code you have ad see if there isnt' a username and pass set in there as a
variagble. There usually is in these guest book scripts. They're sma
Well then after or before that you have to check that the month value is
between 1 and 12 to make sure there's no input errors, then what if you ever
want ot change the quarters yeah anway I just wanted an excuse to tell
people to go low tech and use a switch, it's only 12 entries, and you c
On 6/30/07, jekillen <[EMAIL PROTECTED]> wrote:
Hello;
I have the following code:
$prps = str_replace("\n", ' ', $input[3]);
Are you sure $input[3] doesn't have two newlines at the end?
Why not use trim() to be sure?
$request = str_replace("// var purpose = {} ;\n", "var purpose =
'$prps
Rahul Sitaram Johari wrote:
> Ave,
>
> Can¹t figure this one out. I¹m using the dbase_replace_record() function to
> replace a record in a dbase (.dbf) database. I just want to replace the
> value of one of the fields with another value. This is my code:
>
> $db = dbase_open("CRUMBS.DBF", 2) or d
admin wrote:
> Jochem Maas wrote:
>> another solution for the OP might be (although I think it goes against
>> all
>> design principles):
>>
>> class A {
>> function foo() {
>> echo "achoo\n";
>> }
>> }
>>
>> class B extends A {
>> function foo() {
>> echo "cough\n";
>> }
>> funct
Jim Lucas wrote:
Rihad wrote:
Now will you mentally copy and paste the above code several times,
doing the necessary text substitutions, what will you get? Three
identical copies of doSetColumn() in each class! And the real
doSetColumn() is a bit heavier than a one-liner. We come full circle
admin wrote:
> Once again, calling the parent version of a method "externally" is
> allowed in C++ (and whoever said it was bad design should speak up to
> Bjarne Stroustrup ;-)) Any such trick in PHP?
I stand suitably corrected :)
I didn't realise you could do that in C++ to be honest. I'm tryin
Rihad wrote:
Now will you mentally copy and paste the above code several times, doing
the necessary text substitutions, what will you get? Three identical
copies of doSetColumn() in each class! And the real doSetColumn() is a
bit heavier than a one-liner. We come full circle.
I don't unde
Jochem Maas wrote:
another solution for the OP might be (although I think it goes against all
design principles):
class A {
function foo() {
echo "achoo\n";
}
}
class B extends A {
function foo() {
echo "cough\n";
}
function __call($meth, $args) {
$func = array(parent, str
Linux journal had an article for tesseract
code.google.com/p/tesseract-ocr
the files needed to be cleaned up first though (contrast black text
against white background), so understanding gimp or some other equally
functional command-line image editor is essential. Suggested
alternative was netpb
Jim Lucas wrote:
admin wrote:
OK, here we go: Propel in Symfony uses generated model classes
representing DB rows, stub classes inheriting from them ready to be used
(such as below), and accessors representing data columns:
[snipped]
This is a little different then what you are trying above, b
admin wrote:
Colin Guthrie wrote:
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj->foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Ave,
Can¹t figure this one out. I¹m using the dbase_replace_record() function to
replace a record in a dbase (.dbf) database. I just want to replace the
value of one of the fields with another value. This is my code:
$db = dbase_open("CRUMBS.DBF", 2) or die("Fatal Error: Could not open
database!
Colin Guthrie wrote:
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj->foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
[snipped]
Jim Lucas wrote:
> admin wrote:
>> Inside the body of method foo() you can of course use syntax like
>> parent::foo(). But is there a way to call the parent version of
>> obj->foo() outside the class? That kind of syntax is allowed in C++, for
>> example: Aclass a; if (a.Aparent::foo()) ...;
>>
>>
I'm looking for a way to introduce PHP to some Delphi programmers, so I
thought a comparison would show them the major differences, but I can't find
anything like that on the web. Anyone have an article like that or know of
one?
- Dan
--
PHP General Mailing List (http://www.php.net/)
To un
On 7/2/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
{snip}
Note
Sorry, hit the button before I was done typing.
Note the trailing \r\n after the X-Mailer line as well.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
--
PHP General Mailing List (http://w
On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Daniel Brown a écrit :
> On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> I've already checked :
>>
>> - the mail logs : no mail send
>>
>> - and the apache error and access logs : nothing except this :
>>
>> 192.168.0.1 - - [02/Ju
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj->foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Some contrived example to illustra
admin wrote:
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj->foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Not sure I get your requirement e
Sancar Saran wrote:
> "Beatiful web design" one of the best webs site design books also this kind
> of
> books wery hard to find (because most of them try to teach you html tag by
> tag).
>
> You may look some other photoshop books for generating images.
>
> And of course practice makes perfe
admin wrote:
> Inside the body of method foo() you can of course use syntax like
> parent::foo(). But is there a way to call the parent version of
> obj->foo() outside the class? That kind of syntax is allowed in C++, for
> example: Aclass a; if (a.Aparent::foo()) ...;
>
> Some contrived example t
Daniel Brown a écrit :
On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I've already checked :
- the mail logs : no mail send
- and the apache error and access logs : nothing except this :
192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] "GET /~ee/mail.php
HTTP/1.1" 200 49291 "-" "Mozi
admin wrote:
> Inside the body of method foo() you can of course use syntax like
> parent::foo(). But is there a way to call the parent version of
> obj->foo() outside the class? That kind of syntax is allowed in C++, for
> example: Aclass a; if (a.Aparent::foo()) ...;
there is nothing in the lang
On Monday 02 July 2007 16:38:10 Muhammad Hassan Samee wrote:
> hay
> i m a C++ programmer and new to web development with basic knowledge of
> HTML, CSS and j.script now i want to start learning PHP anybody can direct
> me to some good/fast track tutorials \ books for getting start
Hi,
good/fast
Inside the body of method foo() you can of course use syntax like
parent::foo(). But is there a way to call the parent version of
obj->foo() outside the class? That kind of syntax is allowed in C++, for
example: Aclass a; if (a.Aparent::foo()) ...;
Some contrived example to illustrate the point:
checkout this site http://www.w3schools.com/php/default.asp
On 7/2/07, Davide Bernard <[EMAIL PROTECTED]> wrote:
I've found http://php.net/ to be very helpful. Especially in
troubleshooting.
>>> "Muhammad Hassan Samee" <[EMAIL PROTECTED]> 7/2/2007 8:38 AM
>>>
hay
i m a C++ programmer and new t
On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I've already checked :
- the mail logs : no mail send
- and the apache error and access logs : nothing except this :
192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] "GET /~ee/mail.php
HTTP/1.1" 200 49291 "-" "Mozilla/5.0 (Windows; U; Win
I've found http://php.net/ to be very helpful. Especially in
troubleshooting.
>>> "Muhammad Hassan Samee" <[EMAIL PROTECTED]> 7/2/2007 8:38 AM
>>>
hay
i m a C++ programmer and new to web development with basic knowledge
of
HTML, CSS and j.script now i want to start learning PHP anybody can
direct
of course ceil( month / 3 );
--
/Thunis
Don't panic.
--The Hitchikers Guide to the Galaxy
Fredrik Thunberg skrev:
$q = ceil( month / 4 );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hay
i m a C++ programmer and new to web development with basic knowledge of
HTML, CSS and j.script now i want to start learning PHP anybody can direct
me to some good/fast track tutorials \ books for getting start
$q = ceil( month / 4 );
--
/Thunis
The ships hung in the sky in much the same way that bricks don't.
--The Hitchikers Guide to the Galaxy
revDAVE skrev:
I have segmented a year into four quarters (3 months each)
nowdate = the month of the chosen date (ex: 5-30-07 = month 5)
Q: What is the
I've already checked :
- the mail logs : no mail send
- and the apache error and access logs : nothing except this :
192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] "GET /~ee/mail.php
HTTP/1.1" 200 49291 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr;
rv:1.8.1.4) Gecko/20070515 Firefox/2.0
M. Sokolewicz wrote:
PHP 6 is about as broken as can be, and buggy as hell... why would you
even want to compile it? or extensions for it...?
1) To help out the developers by testing it
2) To test a project against the next major version
3) For funzies! ;)
Cathy: You might have better luck b
PHP 6 is about as broken as can be, and buggy as hell... why would you
even want to compile it? or extensions for it...?
- Tul
Cathy Murphy wrote:
I am trying to compile memcache 2.1.2 with php6 , but getting errors .
Anybody had luck with this?
Thanks,
Cathy
www.nachofoto.com
--
PHP Gener
64 matches
Mail list logo