Is there a string length limitation to crypt()? It generates the same
result for different input strings. I'm using crypt to store access
codes that are generated using uniqid. For example, if I do the
following:
$encrypted = crypt("3c8d15c9cfe5a", "xx");
echo $encrytped;
On Saturday 23 March 2002 23:57, Liam wrote:
> Hi, I've asked this before but I'm still ost.
> How can I receive the contents of a remote website through PHP and only dis
>play one section of it?
>
> Someone said something about curl.
> What is it, where could I get it?
google > curl
--
Jas
Depends on the OS. I suggest using md() instead.
On Sat, 23 Mar 2002, Steven Walker wrote:
> Is there a string length limitation to crypt()? It generates the same
> result for different input strings. I'm using crypt to store access
> codes that are generated using uniqid. For example, if I do
On Saturday 23 March 2002 05:38, Sanj wrote:
> template page at http://www.isbliss.co.nz/beta/mainpages/template.html
> disregard any linked pages.
Is this a php question?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
I can't decide whether to commit suicide or go bowling.
At 23.03.2002 00:05, you wrote:
>
>there's also two tools called sed and grep that are available on any unix
>system. and probably easily gettable on windblows.
>
>That can probably remove most comments.
I know, and use these on LINUX, but I don´t want to spend time to develop
something
which i
Hi there,
I did search for a class to validate e-mail adresses. I found one and tryed
out the examplepage but there seems to be a prob with my php installation.
Everything after the -> ist just printed out to the screen. It just seems
that php thinks the error is the same like ?>
Here is a bit o
php-general Digest 23 Mar 2002 12:11:05 - Issue 1243
Topics (messages 89765 through 89830):
Re: FAQ
89765 by: J. Scott Johnson
89809 by: Demitrious S. Kelly
Drawing graphs - opinions
89766 by: Lee P Reilly
89768 by: Lee P Reilly
89814 by: michael kim
Hi,
Is there any way to emulate the super globals on PHP4.0.6.
I've designed a system using $_GET, $_POST, etc, and I had it all running
wonderfully, but I have been forced to change servers to some folks who do
not seem to have an upgrade to 4.1.x in mind.
What I would like to know is... is th
23/03/2002 11:26:39 PM
Hi, err, I realise this has nothing to do with PHP but...
I am in desperate need of a backup DNS host. I've scoured
the internet and I can't find anyone who'll be my backup DNS.
I'm willing to exchange the favour and be your backup DNS.
If there's any place you know I c
yep,
finally got it working. original linux based web hosting control panel,
written in PHP, now works under freebsd 4.3 (tested), and should work on 4.4
as well.
If interested in testing on a FreeBSD system just let me know, off list, at
[EMAIL PROTECTED] I would like to get this compatible w
Hi,
Does anyone know of a tool that can show how mySQL DB's are related and
which PHP functions are being called. It should maybe be something like UML.
Regards,
Morten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey Dan!!!
This book is for sale I can't buy it!
Can any body explain me how I can to create email POP accounts whith PHP
without using vpopmail
Thanks! Julian
- Original Message -
From: Dan Harrelson
To: Julian ; [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 9:25 PM
Su
You might remind them that anything under PHP 4.1.2 has a security whole
that can be exploited remotely, my web host refused to upgrade until they
learned about the security implications of not doing so.
Jason
"David" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTE
Quite a few, there are 3641 messages in the php-general archive for between
02-01-02 and 03-01-02 this month there are already 3147 messages. If you
are concerned about transfer you could use a news client and connect to
news.php.net, the news groups are interfaces to the mailing lists that way
Hi
I'm just trying to validate an url !
Without tracing or confiming it I just want
www.whatever.max 4 letters
This is what I had but its wrong ! :-))
function check_url($str) {
if (ereg("w{3}.^[a-z0-9-]+(\.[a-z0-9-]+)*$", $str)) {
return 1;
} else {
return 0;
}
}
I just know that some RegEx
Where can I find the changes coming in 4.2?
--
Gaylen
PHP KISGB v4.0.2 Guest Book http://www.gaylenandmargie.com/phpwebsite/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In the NEWS and ChangeLog files in CVS. See
http://cvs.php.net/cvs.php/php4/NEWS and pay attention to the branch name.
On Sat, 23 Mar 2002, Gaylen Fraley wrote:
> Where can I find the changes coming in 4.2?
>
> --
> Gaylen
> PHP KISGB v4.0.2 Guest Book http://www.gaylenandmargie.com/phpwebsite/
On Saturday 23 March 2002 11:34 am, Gaylen Fraley wrote:
> Where can I find the changes coming in 4.2?
There is a 'NEWS' file in the download of the RCx.tgz. You should download
and extract it and read the top section which gives news on the 4.2 release.
And since you've already gone to the tr
If you use xml_parse_into_struct, it does split out the attributes into the
array it creates.
I tested this with the standard manual code, adding a single attribute to
the sample data i.e.
$simple = "simple note";
$p = xml_parser_create();
xml_parse_into_struct($p,$simple,$vals,$index);
xml_pars
In the ChangeLog 4.1.0
"Added support for single dimensional SafeArrays and Enumerations. Added an
is_enum() function to check if a component implements an enumeration. (Alan,
Harald) "
Does anyone know about this or know where I can find documentation on this?
I searched the manual, and frankly
Ultradev is cool for quick dev, but the code is really messy.
Unles you're creating something basic, you'll most likely have to clean
up the code.
Other than that, it's an excellent tool. It cuts down the development
time, help (tremendously) with the layout, and take out takes care of the
On Sunday 24 March 2002 07:26, Liam wrote:
> 23/03/2002 11:26:39 PM
>
> Hi, err, I realise this has nothing to do with PHP but...
>
> I am in desperate need of a backup DNS host. I've scoured
> the internet and I can't find anyone who'll be my backup DNS.
> I'm willing to exchange the favour and
PHAKT does support TABLE JOIN, but you have to edit the SQL statement (in
Ultradev).
To do this (in Ultradev), switch to 'Advance Mode' and modify your query.
It should look something like:
select table1.field1, table2.field2 from table1,table where
table1.field1=table2.field2
*check t
On Saturday 23 March 2002 21:40, Julian wrote:
> Hey Dan!!!
>
> This book is for sale I can't buy it!
>
> Can any body explain me how I can to create email POP accounts whith PHP
> without using vpopmail
It would depend on what mail system you're using -- sendmail, qmail, postfix
etc
I can't include anything on my php scripts
Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear')
How to fix it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Jason!!!
Explain me how to do it with qmail and sendmail, plese.
Thank you! Julian
- Original Message -
From: Jason Wong
To: [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 4:00 PM
Subject: Re: [PHP] Create Email POP accounts with PHP
On Saturday 23 March 2002 21:40, Julian wrote:
Hi,
I installed PHPTriad under Windows XP and I keep getting this error:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I installed PHPTriad under Windows XP and I keep gettting the
following error:
Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line
255
It worked before under Windows ME. WinMySQLadmin1.0 works fine as w
Take a look at jpgraph, it's on freshmeat.
David
Lee P Reilly wrote:
>Hi,
>
>I see there a number of PHP scripts/libraries out there for the purpose
>of graphing data. Which one is considered to be the best, most powerful
>/ easiest to use? I need to plot X/Y graphs for some data sets with
>ver
Hello, I'm having a problem with my Apache/PHP setup. I create a PHP
page and test it in a browser, and the page loads and everything is
fine. However, when I make a change to my PHP script and reload the
page to see my changes, the same output from PHP is given to me. I have
to save the page a
Hello,
I've picked up a book called the PHP Developer's Cookbook, specifically
for the search engine that was featured in it. It required the use of
PEAR's File/Find.php, which my host hasn't installed, ..and very likely
will not.
Is there another way of coming up with a search engine in PHP tha
So just put that file in your own directory and use it from there. It is
just a PHP script.
On Sat, 23 Mar 2002, lmlweb wrote:
> Hello,
>
> I've picked up a book called the PHP Developer's Cookbook, specifically
> for the search engine that was featured in it. It required the use of
> PEAR's Fi
Actually, it looks pretty straight-forward:
";
}
function add_price_point($num, $price) {
global $points, $prices;
// this saves us from div-by-0 and automatically
// discards invalid quantities
if ($num < 1)
return;
$per = $price / $num;
foreach($points as $va
I just downloaded the new version of PHP. I installed it and I am using
Omnicron HTTPD server version 2.09. The PHP that came with the server works,
but when I installed the new version of PHP from PHP.NET, I got the
following error.
Thanks - using xml_parse_into_struct does make parsing the document much
easier... great suggestion.
What I've ended up with is:
// create parser
$xp = xml_parser_create();
xml_parse_into_struct($xp,$xml,$vals,$index);
xml_parser_free($xp);
$found_domain = 0;
$results = array();
for($ctr=0; $c
Hello,
I just enabled GD support for PHP via the php.ini file. When I try to
run a script that uses the functions included in the library, it gives
me a dialog box asking me whether I want to save the php file to a
specific location or not. I don't need to save it, I need PHP to run it.
This is h
Try image/jpeg as your content-type
On Sat, 23 Mar 2002, Navid Yar wrote:
> Hello,
>
> I just enabled GD support for PHP via the php.ini file. When I try to
> run a script that uses the functions included in the library, it gives
> me a dialog box asking me whether I want to save the php file to
Rasmus, thanks so much! It's executing. I've run into another problem
with this script, but I'll try to figure this one out as best I can
first before posting it. Thanks again! :)
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 23, 2002 4:41 PM
T
Hi all!
Just wondering, If I have a query like:
$query = "SELECT name FROM users";
$ret = mysql_query($query);
while(list($name) = mysql_fetch_row($ret)) or die("Error: ".mysql_error());
print ("your name is $name);
$query_update ["name"] = ("UPDATE my_other_table set name = $name");
$result =
You need to put {} in the while function like this
while {
do this
}
$query = "SELECT name FROM users";
$ret = mysql_query($query);
while(list($name) = mysql_fetch_row($ret)) or die("Error: ".mysql_error()) {
print ("your name is $name);
$query_update["name"] = ("UPDATE my_other_table set
On Fri, 22 Mar 2002, Erik Price wrote:
> I have noticed that pressing enter in IE does achieve the same effect as
> pressing the "submit" button for my forms. But I have also heard that
> it's not really "the same", especially if there are more than one
> "submit"-style inputs for the given fo
Hello,
I have some problems related to a site in Russian (I don't speak Russian
myself, so I can't consult tutorials in Russian).
The encoding, passed via HTML, is koi8-r. Then the form will be
submitted and PHP will send out an e-mail with the encoding koi8-r.
Everything seems to work fine
php-general Digest 24 Mar 2002 00:13:09 - Issue 1244
Topics (messages 89831 through 89865):
Superglobals
89831 by: David
89836 by: Jason Sheets
DNS
89832 by: Liam
89845 by: Jason Wong
Web Hosting control panel ported to freebsd
89833 by: Charles
Is the second edition much different from the 1st? If one has 1st Edition,
is it worth $39.95 to get the second?
Thanks
Craig ><>
[EMAIL PROTECTED]
I'm still playing about trying to validate an url
www(dot)something(dot)something !
I thought this would work but know
if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))
can anyone explain why not ???
^(w{3}) = three w at start of string ??
(\\.) = literal dot ??
([a-zA-Z]+) match
On Sun, 24 Mar 2002, John Fishworld wrote:
> I'm still playing about trying to validate an url
> www(dot)something(dot)something !
>
> I thought this would work but know
>
> if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))
First of all, web server hostnames don't need to start with
Okay good point but still why doesn't it work ?
thanks
john
> On Sun, 24 Mar 2002, John Fishworld wrote:
> > I'm still playing about trying to validate an url
> > www(dot)something(dot)something !
> >
> > I thought this would work but know
> >
> > if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,
I have written, in an html form, a drop-downlist that uses :
i.e.
State
AL
AZ
// and so on
I would like a text input as the last option so that a user can type in a
state (non-USA) and have this variable pa
On Sat, 23 Mar 2002, Andre Dubuc wrote:
> I have written, in an html form, a drop-downlist that uses :
>
> i.e.
> State
> AL
> AZ
> // and so on
>
> I would like a text input as the last option so that a user can type
On Saturday 23 March 2002 19:45, you wrote:
> On Sat, 23 Mar 2002, Andre Dubuc wrote:
> > I have written, in an html form, a drop-downlist that uses :
> >
> > i.e.
> > State
> > AL
> > AZ
> > // and so on
> >
> > I would like a
On Fri, 22 Mar 2002, webapprentice wrote:
> I have a form with a text field, say userName.
> I put a value in that has double quotes (i.e. "foobar") and submit this form.
>
> On output I have this:
>
>
> The output ends up being a \.
The quotes go away, or they just get a backslash before them
Don't have 1st, but 2nd looks pretty good. It functions both as a manual and as a
reference and most of the recipes have pieces that I'd say correspond to real life
problems.
not much help I guess :-)
cheers,
--t.
On Sat, 23 Mar 2002, Craig Westerman wrote:
> Is the second edition much diff
If you've seen it on other sites (I can't see how, since there's no
support for it in the HTML spec), then why not just look at the source?
> Too bad, since a few sites seem to have that capability. Oh well . .
>
> Regards,
> Andre
> --
--
PHP General Mailing List (http://www.php.net/)
To uns
On Sun, 24 Mar 2002, John Fishworld wrote:
>> On Sun, 24 Mar 2002, John Fishworld wrote:
>>> I'm still playing about trying to validate an url
>>> www(dot)something(dot)something !
>>>
>>> I thought this would work but know
>>>
>>> if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))
>>
>>
JavaScript is there to do that.
Senih
> I have written, in an html form, a drop-downlist that uses :
>
> i.e.
> State
> AL
> AZ
> // and so on
>
> I would like a text input as the last option so that a user can type in a
> state (non-USA) and have this variable passed on. Is there any way of
>
Hi,
"foobar" becomes simply \
I've lost foobar AND the double quotes. Is there a way to keep them all?
--Stephen
- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "webapprentice" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 7:49 PM
Subject:
That's a little odd; something else must be going on. Can you provide some
more code, and, preferably, a pointer to a live example?
miguel
On Sat, 23 Mar 2002, webapprentice wrote:
> Hi,
> "foobar" becomes simply \
>
> I've lost foobar AND the double quotes. Is there a way to keep them all?
On Saturday 23 March 2002 19:57, you wrote:
> If you've seen it on other sites (I can't see how, since there's no
> support for it in the HTML spec), then why not just look at the source?
>
> > Too bad, since a few sites seem to have that capability. Oh well . .
> >
> > Regards,
> > Andre
> > --
Sorry Miguel, it's the HTML entities nonsense again.
It displayed as \ on my browser, but the HTML source code indicated
otherwise.
Thus, if I entered "foobar", it shows up as \ but the HTML source shows.
So value="\" was the culprit, so you're original solution was in the right
direction. st
From: "Craig Westerman" <[EMAIL PROTECTED]>
> Is the second edition much different from the 1st? If one has 1st
Edition,
> is it worth $39.95 to get the second?
I hope so. Sterling got a list of errors from two German
translators for his 1st edition. Sterling haven´t said a word about
the secon
I'm sorry if this question has been asked before
but could anyone give me instructions on how to debug and interpret php
scripts using Edit Plus ? I download the php modules for edit plus so
it recognise the syntax. But how do I setup the user tools , so I can check
for bu
Hi,
I have a bash script I need to run.
I have tried all the various program execution commands.
My script never completes. It only get 1/4 of the way through.
I have tried running the script in the background.
Any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
On Sunday 24 March 2002 03:52, Julian wrote:
> Hi Jason!!!
>
> Explain me how to do it with qmail and sendmail, plese.
How do you usually do it? ie from the command line?
Use php to execute whatever you usually execute from the command line using
the functions in "Program Execution functions".
what are you trying to do?
Jim Lucas
www.bend.com
- Original Message -
From: "John Fishworld" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 4:33 PM
Subject: [PHP] Still REG EX
> I'm still playing about trying to validate an url
> www(dot)something(dot)some
I'm doing a simple database connection using the follow syntax:
Book-O-Rama Search Results
Book-O-Rama Search Results
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Figure out where your mysql.sock file is and provide the path right in
your mysql_connect() call. "mysqladmin version" tells you the path.
-Rasmus
On Sat, 23 Mar 2002, Jim Hankins wrote:
> I'm doing a simple database connection using the follow syntax:
>
>
>
> Book-O-Rama Search Results
>
In article ,
[EMAIL PROTECTED] (S.Murali Krishna) wrote:
> can any one tell me what is this
>
> ;assert.active= On ; assert(expr); active by default
> ;assert.warning = On ; issue a PHP warning for each failed
> ;assert.bail
On the topic of gd support but a slightly different topic-
I was using php 4.0.5
gd 1.8.3 patched for gif support (using libungif for libgif which I
*think* is OK)
FreeType 1.3.1 (compiled myself in /usr/local )
t1lib 1.3.1 (compiled myself in /usr/local )
I was using gd to draw pictures and wr
Can you give me a syntax example. I've found my sock file but seem to be
having trouble getting it right on the mysql_pconnect line,
my sock is /var/lib/mysql/mysql.sock
Thanks in advance!
So close but yet so far. :) My first MySql project.
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in messa
Hi,
I have a bash script I need to run.
I have tried all the various program execution commands.
My script never completes. It only get 1/4 of the way through.
I have tried running the script in the background.
Any ideas?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
> reading the ./configure -h I see that they CHANGED what the configure
> options mean.
> now --with-freetype=dir refers to freetype 2
Untrue, it only refers to freetype2 when you are building against GD2.
> phpinfo() says I have FreeType linkage.
> But both ImageFtText and ImageTTFText fail to
You may need to redirect output (both stderr and stdout) atleast that helped
me with a similar problem. My system is Linux.
On Saturday 23 March 2002 11:06 pm, Douglas wrote:
> Hi,
>
> I have a bash script I need to run.
> I have tried all the various program execution commands.
>
> My script
And by redirect I mean to /dev/null possibly if you don't want to capture
output.
On Saturday 23 March 2002 03:52 pm, Douglas wrote:
> Hi,
>
> I have a bash script I need to run.
> I have tried all the various program execution commands.
>
> My script never completes. It only get 1/4 of the way
never mind got it "localhost:/pathto/mysql.sock" duh? :) Thanks a
million, I'm up and running.
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Jim Hankins" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 10:50 PM
Subject: Re: [PHP] Trouble
Is that supposed to be ->
$db = @mysql_pconnect("localhost", "bookorama", "bookorama123");
Jim Hankins wrote:
> I'm doing a simple database connection using the follow syntax:
>
>
>
> Book-O-Rama Search Results
>
>
> Book-O-Rama Search Results
>if (!$searchtype || !$searchterm)
> {
>
I don't think my server even has PEAR installed, so even if I just put
the script on my own directory, it still needs the PEAR.php - will I
need to do that too?
> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 23, 2002 1:56 PM
> To: lmlweb
>
My correction - there is a Pear, and it was just a matter of finding the
location
(/root/php-4.1.2/pear/File/Find.php) - so I tried to use the full path -
owrked, but then the Find.php required the PEAR.php, which was one
level. So what I've done so far is to put the Find.php in my directory,
and
Jason Sheets said something on 24 Mar 2002, in php.general:
> You might remind them that anything under PHP 4.1.2 has a security
> whole that can be exploited remotely, my web host refused to upgrade
> until they learned about the security implications of not doing so.
>
> Jason
The are runn
Someone knows a site, or a tutorial article something that would teach
advanced techniques, like suppose using themes, languages, API... ?
Any help is appreciated
Sincerely
Arik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
79 matches
Mail list logo