php-general Digest 1 Apr 2005 06:39:50 -0000 Issue 3371
Topics (messages 211971 through 212010):
Re: .htaccess config
211971 by: Philip Hallstrom
211972 by: Matthew Weier O'Phinney
Password expiration script
211973 by: Bosky, Dave
211982 by: Ryan A
211984 by: xfedex
gmp in windows snaps
211974 by: Jon Aston
211977 by: Frank M. Kromann
Re: Create MDB File
211975 by: Ren� Fournier
211998 by: Rory Browne
Re: Best Server Platform
211976 by: Gerald Artman
211978 by: Chris W. Parker
link problem - Apache or PHP?
211979 by: germ germ
211981 by: John Nichel
Filemaker Checkbox Data Problem...
211980 by: Nick Zukin
211983 by: John Nichel
211985 by: Nick Zukin
211986 by: John Nichel
211989 by: Nick Zukin
211992 by: John Nichel
Re: Cannot connect to database when using Zend studio debugger
211987 by: Supersky
upload image file to my server
211988 by: Tom�s Rodriguez Orta
211991 by: Pablo M. Rivas
212008 by: Nadim Attari
strange problem, seems to be related to the character '$'
211990 by: Chris Francy
212004 by: Zareef Ahmed
URL file-access disabled
211993 by: Jackson Linux
211995 by: Marek Kilimajer
211997 by: Jackson Linux
LDAP questions and hair pulling
211994 by: John E. Vincent
Signal 11 - php-5.0.1-dev - cygwin
211996 by: Jason Barnett
hotlinking images
211999 by: Sebastian
212000 by: Philip Hallstrom
212002 by: John Nichel
Catching error from mail function?
212001 by: Ben Cheng
April fool easter egg
212003 by: Ligaya Turmelle
PHP logo is freaked in phpinfo();
212005 by: Dan Rossi
212006 by: Lars B. Jensen
Jpgraph and drop down menus examples
212007 by: Graham Anderson
212010 by: Richard Lynch
booking
212009 by: Rob Agar
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
allow_url_fopen can only be set in php.ini. See here for more info:
http://us2.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
On Thu, 31 Mar 2005, Neo Theone wrote:
Hi
I got a simple problem:
I need to have allow_url_fopen on for a certain directory and so I wanted to
control it by .htaccess file.
now I can control other php_flags like register_globals in this directory (so
apache allows the Override) but I just simple can't get the following line to
work:
php_flag allow_url_fopen on
any help is appreciated
neo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
* Neo Theone <[EMAIL PROTECTED]>:
> I got a simple problem:
> I need to have allow_url_fopen on for a certain directory and so I
> wanted to control it by .htaccess file.
> now I can control other php_flags like register_globals in this
> directory (so apache allows the Override) but I just simple can't get
> the following line to work:
> php_flag allow_url_fopen on
>
> any help is appreciated
>From the manual (http://php.net/manual/en/ini.php#ini.list),
allow_url_fopen is only configurable from php.ini or httpd.conf; you
cannot set it via .htaccess or within a script.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:[EMAIL PROTECTED] | http://vermontbotanical.org
--- End Message ---
--- Begin Message ---
I'm looking for a script that would require a user to change their password
every 30 days. Does anyone use a script that has functionality similar to
what I'm looking for?
Thanks,
Dave
HTC Disclaimer: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified that
any dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify us
immediately by replying to the message and deleting it from your computer.
Thank you.
--- End Message ---
--- Begin Message ---
Theres instant2c pro at securecents.com, but that might be like using a tank
to kill a fly :-D
On 3/31/2005 11:18:31 AM, Bosky, Dave ([EMAIL PROTECTED]) wrote:
> ------_=_NextPart_001_01C53626.6CCF76C0
>
> Content-Type: text/plain
>
>
>
> I'm looking for a script that would require a user to change their
password
> every 30 days. Does anyone use a script that has functionality similar to
> what I'm
> looking for?
>
>
>
>
>
>
>
> Thanks,
>
>
>
> Dave
>
>
>
>
>
>
>
>
>
>
>
> HTC Disclaimer: The information contained in this message may be
> privileged and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee or agent
> responsible for delivering this message to the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please notify us immediately by replying to the
> message and deleting it from your computer. Thank you.
>
>
>
> ------_=_NextPart_001_01C53626.6CCF76C0--
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 3/30/2005
--- End Message ---
--- Begin Message ---
On Thu, 31 Mar 2005 14:18:31 -0500, Bosky, Dave <[EMAIL PROTECTED]> wrote:
> I'm looking for a script that would require a user to change their password
> every 30 days. Does anyone use a script that has functionality similar to
> what I'm looking for?
>
> Thanks,
>
> Dave
>
I got do it so using a DBquery
$sql = 'SELECT TO_DAYS(NOW()) - TO_DAYS(\''.$last_pass_chg.'\');';
--- End Message ---
--- Begin Message ---
I asked this in the windows section yesterday and received no answer.
I have copied the sample of gmp_add() from the function page and have tried
to run it from the snap that I downloaded this morning with the recommended
ini that is in the folder with it and I keep getting the error here.
PHP Fatal error: Call to undefined function gmp_add()
do I need a dll extension or need to install gmp somehow?
Thanks
--- End Message ---
--- Begin Message ---
Hi Jon,
You need to install the gmp extension. Not sure if this is included in the
snaps builds, but you should be able to download it from my site:
http://kromann.info/php.php.
- Frank
> I asked this in the windows section yesterday and received no answer.
>
> I have copied the sample of gmp_add() from the function page and have
tried
> to run it from the snap that I downloaded this morning with the
recommended
> ini that is in the folder with it and I keep getting the error here.
>
> PHP Fatal error: Call to undefined function gmp_add()
>
> do I need a dll extension or need to install gmp somehow?
>
> Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Coincidentally, I also need a way to read a table from MySQL and write
it out to an .MDB file on-the-fly (from within a PHP script).
The CSV export idea isn't an option in this case.
Has anyone found a way to create an MDB file (with a single table) from
PHP?
...Rene
On 28-Mar-05, at 7:18 PM, Rory Browne wrote:
MDB suggests Access, so why not simply create a CSV, or some other
generic format file from your MySQL, and import it into access, using
COM/OLE, and save it as an MDB file.
On Mon, 28 Mar 2005 22:14:07 +0100, Shaun
<[EMAIL PROTECTED]> wrote:
Thanks for your reply,
but this only works on Windows. I need a program that will create an
MDB
file on the fly from a query on the MySQL database...
"Johannes Findeisen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Sorry,
i forgot that link:
http://www.convert-in.com/sql2acc.htm
On Monday 28 March 2005 22:46, Johannes Findeisen wrote:
Hello,
i had the same problem some years ago. At this time i have set up
all
tables in Access and wrote a script which reads from MySQL and
inserts
into
the MDB file via the ODBC connector. This works but is much work
when
your
database is very big.
2 Years ago i had the same problem but it must go as fast as
possible so
i
decided to buy a converteer since i didn't find anything free. They
are
working very good. I don't know where i have buyed them but i think
there
is only one company which delivers this software.
Regards
Johannes
On Monday 28 March 2005 22:08, Shaun wrote:
Hi,
Does anyone know if its possible to create an MDB file from a Mysql
database using a PHP script, I have only managed to find Access to
Mysql
conversion programs so far...
Thanks for your help
--
# Johannes Findeisen
--
# Johannes Findeisen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I don't think it's a case of 'finding a way'. I think its a case of
writing some code.
Some pseudo code to get you started:
connect_to_mysql();
$ms_Access_handler = use_com_ole_or_odbc_to_open_an_access_db();
while( $row = get_row_from_mysql() ){
$ms_Access_handler->insert_row($row);
}
$ms_Access_handler->save_db("filename.mdb");
Just a thought.
On Thu, 31 Mar 2005 12:36:51 -0700, Ren� Fournier <[EMAIL PROTECTED]> wrote:
> Coincidentally, I also need a way to read a table from MySQL and write
> it out to an .MDB file on-the-fly (from within a PHP script).
>
> The CSV export idea isn't an option in this case.
>
> Has anyone found a way to create an MDB file (with a single table) from
> PHP?
>
> ...Rene
>
>
> On 28-Mar-05, at 7:18 PM, Rory Browne wrote:
>
> > MDB suggests Access, so why not simply create a CSV, or some other
> > generic format file from your MySQL, and import it into access, using
> > COM/OLE, and save it as an MDB file.
> >
> >
> > On Mon, 28 Mar 2005 22:14:07 +0100, Shaun
> > <[EMAIL PROTECTED]> wrote:
> >> Thanks for your reply,
> >>
> >> but this only works on Windows. I need a program that will create an
> >> MDB
> >> file on the fly from a query on the MySQL database...
> >>
> >>
> >> "Johannes Findeisen" <[EMAIL PROTECTED]> wrote in message
> >> news:[EMAIL PROTECTED]
> >>> Sorry,
> >>>
> >>> i forgot that link:
> >>>
> >>> http://www.convert-in.com/sql2acc.htm
> >>>
> >>>
> >>> On Monday 28 March 2005 22:46, Johannes Findeisen wrote:
> >>>> Hello,
> >>>>
> >>>> i had the same problem some years ago. At this time i have set up
> >>>> all
> >>>> tables in Access and wrote a script which reads from MySQL and
> >>>> inserts
> >>>> into
> >>>> the MDB file via the ODBC connector. This works but is much work
> >>>> when
> >>>> your
> >>>> database is very big.
> >>>>
> >>>> 2 Years ago i had the same problem but it must go as fast as
> >>>> possible so
> >>
> >>>> i
> >>>> decided to buy a converteer since i didn't find anything free. They
> >>>> are
> >>>> working very good. I don't know where i have buyed them but i think
> >> there
> >>>> is only one company which delivers this software.
> >>>>
> >>>> Regards
> >>>> Johannes
> >>>>
> >>>> On Monday 28 March 2005 22:08, Shaun wrote:
> >>>>> Hi,
> >>>>>
> >>>>> Does anyone know if its possible to create an MDB file from a Mysql
> >>>>> database using a PHP script, I have only managed to find Access to
> >>>>> Mysql
> >>>>> conversion programs so far...
> >>>>>
> >>>>> Thanks for your help
> >>>>
> >>>> --
> >>>> # Johannes Findeisen
> >>>
> >>> --
> >>> # Johannes Findeisen
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Interesting,
There were about a dozen or so comments on the question posed. I saw
many alternatives presented, except OSX. When presented, there were a
number of responses questioning the viability. When evidence is
presented to support the issue, the response is 'FUDSPAM' and it is not
a PHP related thread. If that were true, then all of the responses would
also be. I made no disparaging remarks of other OS's, just the
suggestion that OSX is a possible solution and worth consideration as
well. I noted a number of responses that BSD was given poor marks
because of its thread methodology. Yet, I do note that 20% of that top
50 list had BSD in the OS, so it must be fairly capable also.
Even Mr. Torvalds uses a G5 from Apple :-)
Jerry Artman
PS: According to Netcraft, the mixed site was running Solaris for many
years before Apple started replacing them with Apple servers. Makes
sense sense to me that they would all work together. There's only so
much they can garner in their pings.
--- End Message ---
--- Begin Message ---
Gerald Artman <mailto:[EMAIL PROTECTED]>
on Thursday, March 31, 2005 11:50 AM said:
> Even Mr. Torvalds uses a G5 from Apple :-)
Well yeah... but he doesn't run OSX or write PHP applications. So what
does his running Linux on a PowerPC have to do with the "best server
platform"?
>From http://www.zdnet.com.au/news/0,39023165,39183867,00.htm:
"Torvald's response came quickly and succinctly. "My main machine these
days is a dual 2GHz G5 (aka PowerPC 970) - it's physically a regular
Apple Mac, although it obviously only runs Linux, so I don't think you
can call it a Mac any more ;)" he said."
Chris.
--- End Message ---
--- Begin Message ---
In my HTML file the HREF tag is: <A
HREF="www.google.com" TARGET="_blank">google.com</A>
When clicked, the link in then directed to:
http://10.10.1.5/test-a/ref/www.google.com
Basically it seems like it appends the link to the URL
path.
Is this a PHP or Apache problem and how do I fix it?
-Aaron
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
--- End Message ---
--- Begin Message ---
germ germ wrote:
In my HTML file the HREF tag is: <A
HREF="www.google.com" TARGET="_blank">google.com</A>
When clicked, the link in then directed to:
http://10.10.1.5/test-a/ref/www.google.com
Basically it seems like it appends the link to the URL
path.
Is this a PHP or Apache problem and how do I fix it?
-Aaron
It's not a 'problem' of either. Without the 'http://' Apache assumes it
is an releative link, and is appending it to the cwd.
--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I've got a client who uses Filemaker Pro and I'm trying to parse some of
their data. However, the checkbox data of theirs is giving me fits. From
what I've read, it's supposed to save checkboxes as data separated by
carriage returns. However, in looking at the data in EditPlus I can't
discern what they are and in trying to parse them with str_replace I've had
no luck searching for \r \n \r\n or anything else.
Anyone else had this misfortune?
TIA,
Nick
--- End Message ---
--- Begin Message ---
Nick Zukin wrote:
I've got a client who uses Filemaker Pro and I'm trying to parse some of
their data. However, the checkbox data of theirs is giving me fits. From
what I've read, it's supposed to save checkboxes as data separated by
carriage returns. However, in looking at the data in EditPlus I can't
discern what they are and in trying to parse them with str_replace I've had
no luck searching for \r \n \r\n or anything else.
If this is these 'repeating fields' I had to deal with a few months
back, it's some special character. You can make this character in php
with....
chr ( 29 );
--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Just tried a str_replace using chr(29) and it didn't work. Thanks for
trying so quickly, though.
Nick
-----Original Message-----
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 12:43 PM
To: [email protected]
Subject: Re: [PHP] Filemaker Checkbox Data Problem...
Nick Zukin wrote:
> I've got a client who uses Filemaker Pro and I'm trying to parse some of
> their data. However, the checkbox data of theirs is giving me fits. From
> what I've read, it's supposed to save checkboxes as data separated by
> carriage returns. However, in looking at the data in EditPlus I can't
> discern what they are and in trying to parse them with str_replace I've
had
> no luck searching for \r \n \r\n or anything else.
If this is these 'repeating fields' I had to deal with a few months
back, it's some special character. You can make this character in php
with....
chr ( 29 );
--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Nick Zukin wrote:
Just tried a str_replace using chr(29) and it didn't work. Thanks for
trying so quickly, though.
Nick
Good luck. Filemaker has some wierd stuff in it. If you find the
answer away from the list, please let us know, as some of us are stuck
with working with it too. :(
--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Will do. The only funky workaround I've found so far is just pasting the
character into a str_replace. It appears as a little unknown character box
in both EditPlus and Dreamweaver. What's funny, though, is that if I try to
paste it as part of the line here in Outlook 2000 like this:
$mystring = str_replace("
", ", ", $mystring);
It breaks the line up, apparently creating a carriage return. Ugh. I'd
sure like to find a less hacky way to do it. I've done a lot of googling
and haven't found anything yet.
Nick
-----Original Message-----
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 1:16 PM
To: [email protected]
Subject: Re: [PHP] Filemaker Checkbox Data Problem...
Nick Zukin wrote:
> Just tried a str_replace using chr(29) and it didn't work. Thanks for
> trying so quickly, though.
>
> Nick
Good luck. Filemaker has some wierd stuff in it. If you find the
answer away from the list, please let us know, as some of us are stuck
with working with it too. :(
--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Nick Zukin wrote:
Will do. The only funky workaround I've found so far is just pasting the
character into a str_replace. It appears as a little unknown character box
in both EditPlus and Dreamweaver. What's funny, though, is that if I try to
paste it as part of the line here in Outlook 2000 like this:
$mystring = str_replace("
", ", ", $mystring);
It breaks the line up, apparently creating a carriage return. Ugh. I'd
sure like to find a less hacky way to do it. I've done a lot of googling
and haven't found anything yet.
Yeah, that sounds like what I went thru...'cept on my end, I didn't have
to match the character, I had to create it...which is what the chr(29)
made. Have you tried setting the character to a variable, before doing
the string replace?
$funky = chr(29);
$mystring = str_replace ( $funky, ", ", $mystring );
--
John C. Nichel
�berGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Dear Richard,
Thanks.
After I swaped to PHP4 option in the preference of Zend Studio, I can
connect to the database. However, other problems arised. The problem might
be that my PHP version installed is 5.0.3 indeed.
Best regards,
Supersky
"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello Supersky,
>
> Thursday, March 31, 2005, 11:49:37 AM, you wrote:
>
> S> I am learning how to use Zend studio 4.0 debugger. With internal
> S> mode, when I debug a program that needs a connection to a Mysql
> S> database, I get the message "Fatal error</b>: Call to undefined
> S> function mysql_connect() in <b>D:\Program Files\Apache
> S> Group\Apache2\htdocs\topiclist.php".
>
> Sounds to me like Zend is debugging with the wrong PHP library.
>
> mysql_connect() is a PHP4 function, it's mysqli_connect() in PHP5 (by
> default anyway) - see if it helps swapping over the debug version used
> in the Zend Studio properties for your project?
>
> Best regards,
>
> Richard Davey
> --
> http://www.launchcode.co.uk - PHP Development Services
> "I do not fear computers. I fear the lack of them." - Isaac Asimov
--- End Message ---
--- Begin Message ---
Hello, hard people.
I want to do this, I like to upload image file,
What can I do?.
somebody help me.?
best regards TOMAS
-------------------------------------------------------------------------
Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
en el dominio de correo angerona.cult.cu y no se encontro ninguna coincidencia.
--- End Message ---
--- Begin Message ---
Hello Tomas:
take a look at:
http://www.php.net/manual/en/features.file-upload.php
and for an example, take a look at.
http://www.tek-tips.com/faqs.cfm?fid=5699
Good Luck.
On Thu, 31 Mar 2005 17:48:37 -0800, Tom�s Rodriguez Orta
<[EMAIL PROTECTED]> wrote:
> Hello, hard people.
>
> I want to do this, I like to upload image file,
> What can I do?.
>
> somebody help me.?
>
> best regards TOMAS
>
> -------------------------------------------------------------------------
> Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
> en el dominio de correo angerona.cult.cu y no se encontro ninguna
> coincidencia.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Pablo M. Rivas. http://www.pmrivas.com http://www.r3soft.com.ar
-----------------------------------------------------------
--- End Message ---
--- Begin Message ---
you may use this function
http://www.alienworkers.com/misc/uploadImage.htm
Regards,
Nadim Attari
> Hello, hard people.
>
> I want to do this, I like to upload image file,
> What can I do?.
>
> somebody help me.?
>
> best regards TOMAS
--- End Message ---
--- Begin Message ---
Hello all,
I am hoping someone can point me in the right direction to resolving an odd
bug. I tried searching the bugs database and groups, but I can't think of
the terms to use while searching for my problem that the search system will
accept.
I have a script like the below, copied from the crypt manual page
---
<?php if (CRYPT_MD5 == 1) { var_dump(crypt('rasmuslerdorf',
'$1$rasmusle$')); } ?>
---
On my main web server, which is running php 4.3.10 with apache this script
produces the following when I view the page on the web
---
string(13) "$1Hat1hn6A1pw"
---
When I run the script from the command line [php test.php] on the exact same
server I get
---
string(34) "$1$rasmusle$rISCgZzpwk3UhDidwXvin0"
---
I have also occasionaly seen some odd behavior where strings with dollar
symbols $ in them won't print out correctly, but they have never seen that
important.. Does anyone have any guesses, or hints about what the next step
is to search for what is causing this odd behavior? Any suggestions about a
better place to ask?
Thanks for any help
Chris Francy
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi Chris,
I tried to reproduce the problem with vertsoin 4.3.3 and 5, and its
working fine(producing same string).
If you have not find a bug in bug database why not submit a new bug?
anyway changing single quotes to double may help ;)
zareef ahmed
<?php if (CRYPT_MD5 == 1) { var_dump(crypt('rasmuslerdorf',
'$1$rasmusle$')); } ?>
On Apr 1, 2005 2:36 AM, Chris Francy <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am hoping someone can point me in the right direction to resolving an odd
> bug. I tried searching the bugs database and groups, but I can't think of
> the terms to use while searching for my problem that the search system will
> accept.
>
> I have a script like the below, copied from the crypt manual page
> ---
> <?php if (CRYPT_MD5 == 1) { var_dump(crypt('rasmuslerdorf',
> '$1$rasmusle$')); } ?>
> ---
>
> On my main web server, which is running php 4.3.10 with apache this script
> produces the following when I view the page on the web
> ---
> string(13) "$1Hat1hn6A1pw"
> ---
>
> When I run the script from the command line [php test.php] on the exact same
> server I get
> ---
> string(34) "$1$rasmusle$rISCgZzpwk3UhDidwXvin0"
> ---
>
> I have also occasionaly seen some odd behavior where strings with dollar
> symbols $ in them won't print out correctly, but they have never seen that
> important.. Does anyone have any guesses, or hints about what the next step
> is to search for what is causing this odd behavior? Any suggestions about a
> better place to ask?
>
> Thanks for any help
>
> Chris Francy
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net
--- End Message ---
--- Begin Message ---
Hi, ho,
I have a problem; something which works locally is complaining on the
BSD Unix server I use:
The Code: (somewhere else I define $image_dir)
<!-- If there's an image, get it, get its height and width and slap it
into an image tag, otherwise, move on -->
<?php if (!empty($article['image'])) {
$image = ($article['image']);
$size1 = getimagesize("$image_dir"."$image");
$width1 = $size1[0];
$height1 = $size1[1];
include_once(INCLUDES . 'image.include.php');
}
?>
The Include:
<img class='right-float' src='<?php echo $image_dir.$image ?>'
width='<?php echo $width1 ?>' height='<?php echo $height1 ?>'
alt='<?php echo $image ?>' border='0' />
The Error:
Warning: getimagesize(): URL file-access is disabled in the server
configuration in /usr/www/users/user/articles/technology/index.htm on
line 180
Warning:
getimagesize(http://www.domain.com/images/combination_device.jpg):
failed to open stream: no suitable wrapper could be found in
/usr/www/users/user/articles/technology/index.htm on line 180
The Question:
Anything I can do within .htaccess to make this not happen? I don't
have root access or access to php.ini, and they're loathe to change the
configuration on a shared servcer.
Thanks in advance,
Jack
--- End Message ---
--- Begin Message ---
$image_dir is an url (begins with http:// or similar) and
allow_url_fopen is off on your BSD.
Do you need to access it using url wrappers? If the images are local you
can access them using plain filesystem access
Jackson Linux wrote:
Hi, ho,
I have a problem; something which works locally is complaining on the
BSD Unix server I use:
The Code: (somewhere else I define $image_dir)
<!-- If there's an image, get it, get its height and width and slap it
into an image tag, otherwise, move on -->
<?php if (!empty($article['image'])) {
$image = ($article['image']);
$size1 = getimagesize("$image_dir"."$image");
$width1 = $size1[0];
$height1 = $size1[1];
include_once(INCLUDES . 'image.include.php');
}
?>
The Include:
<img class='right-float' src='<?php echo $image_dir.$image ?>'
width='<?php echo $width1 ?>' height='<?php echo $height1 ?>' alt='<?php
echo $image ?>' border='0' />
The Error:
Warning: getimagesize(): URL file-access is disabled in the server
configuration in /usr/www/users/user/articles/technology/index.htm on
line 180
Warning:
getimagesize(http://www.domain.com/images/combination_device.jpg):
failed to open stream: no suitable wrapper could be found in
/usr/www/users/user/articles/technology/index.htm on line 180
The Question:
Anything I can do within .htaccess to make this not happen? I don't have
root access or access to php.ini, and they're loathe to change the
configuration on a shared servcer.
Thanks in advance,
Jack
--- End Message ---
--- Begin Message ---
My provider has provided me the solution: adding
php_flag allow_url_fopen on
to the .htaccess
Apologies to the list for wasting time and bandwidth.
Jack
On 31 Mar 2005, at 17:47, Jackson Linux wrote:
Hi, ho,
I have a problem; something which works locally is complaining on the
BSD Unix server I use:
The Code: (somewhere else I define $image_dir)
<!-- If there's an image, get it, get its height and width and slap it
into an image tag, otherwise, move on -->
<?php if (!empty($article['image'])) {
$image = ($article['image']);
$size1 = getimagesize("$image_dir"."$image");
$width1 = $size1[0];
$height1 = $size1[1];
include_once(INCLUDES . 'image.include.php');
}
?>
The Include:
<img class='right-float' src='<?php echo $image_dir.$image ?>'
width='<?php echo $width1 ?>' height='<?php echo $height1 ?>'
alt='<?php echo $image ?>' border='0' />
The Error:
Warning: getimagesize(): URL file-access is disabled in the server
configuration in /usr/www/users/user/articles/technology/index.htm on
line 180
Warning:
getimagesize(http://www.domain.com/images/combination_device.jpg):
failed to open stream: no suitable wrapper could be found in
/usr/www/users/user/articles/technology/index.htm on line 180
The Question:
Anything I can do within .htaccess to make this not happen? I don't
have root access or access to php.ini, and they're loathe to change
the configuration on a shared servcer.
Thanks in advance,
Jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi all,
I've search google left and right. Search archive after archive for
various tips using various search strings and I cannot for the life of
me find an answer.
Let me explain the situation. We have an LDAP directory that our users
are stored in. It's not AD or Novell just plain OpenLDAP.
A subsection of my tree looks like this:
dc=domain,dc=com
ou=People
cn=John E. Vincent,ou=People,dc=domain,dc=com
uid=foo
[EMAIL PROTECTED]
password=bar
ou=Departments
ou=IT
cn=Intranet (groupOfUniqueNames or groupOfNames)
cn=John E. Vincent.... (alias to above ou=People entry)
Now I've been doing LDAP authentication for quite some time in various
apps through the ou=People,dc=domain,dc=com search base. My problem
comes when I want access to be group based but I want the user to log in
with his email address. All of our other web applications authenticate
with webaddress.
Now I have Apache authentication working against these groups for things
like SVN and WebDav. Apache follows the alias through to look up the
email address and password.
Same for Postfix and Courier.
I just can't seem to get the right option to work in PHP. I have a
feeling it's my search filter but I don't know. For some reason I can't
even get an filter using ldapsearch to work properly.
Dear god, all I want to do is follow the alias and verify the entered
email address and password for the entry (dereference it, correct?) =)
Can anyone provide any good pointers? I swear I've hit EVERY single
google result I could for this. I've even looked at the Net_LDAP package
but it doesn't seem to work either.
Thanks for any help that anyone can provide.
John E. Vincent
--- End Message ---
--- Begin Message ---
OK, so I built php-5.1.0-dev from source using cygwin / gcc.
- buildconf ran ok
- configure ran ok
- make ran ok
- make install failed. Output was:
Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
Installing PEAR environment: /usr/local/lib/php/
Signal 11
make[1]: *** [install-pear-installer] Error 139
make: *** [install-pear] Error 2
Any tips on what's going on here? I haven't built PHP from source
before so I would appreciate any tips / links.
I've done enough digging to figure out that Signal 11 is a Segmentation
Fault, but when I looked through the archives I didn't see anything
specific to this problem. I'm building with cygwin, but I hope / assume
that all signals and errors should correlate to errors building on *nix.
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images like this:
<img src=http://mydomain.com/script.php?pic=232">
not only is bandwidth usage increase but so does cpu because php/gd has to
process them as well.. if they're including 5 or 6 of these images on a
single page i can imagin how much cpu is being used.
how can i work around this, if at all possible?
--- End Message ---
--- Begin Message ---
Check the value of um... $_SERVER[HTTP_REFERER] (check my spelling). If
it's not from your own host, then bail out... or return a static image
saying something along the lines of "this image stolen without permission"
-philip
On Thu, 31 Mar 2005, Sebastian wrote:
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images like this:
<img src=http://mydomain.com/script.php?pic=232">
not only is bandwidth usage increase but so does cpu because php/gd has to
process them as well.. if they're including 5 or 6 of these images on a
single page i can imagin how much cpu is being used.
how can i work around this, if at all possible?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Sebastian wrote:
i have an issue with site linking directly to my images.
the problem is these images are generated on the fly with php/gd -- they're
generated each time its viewed because i have done some watermarking
manipulation and didnt want to watermaker them in a static way. they're
including the images like this:
<img src=http://mydomain.com/script.php?pic=232">
not only is bandwidth usage increase but so does cpu because php/gd has to
process them as well.. if they're including 5 or 6 of these images on a
single page i can imagin how much cpu is being used.
how can i work around this, if at all possible?
Are you using apache? This might work in a .htaccess
Deny from all
Allow from .mydomain.com
Satisfy any
If that doesn't, maybe a rewrite rule that is normally used for media...
http://www.modwest.com/help/kb1-223.html
Try just changing/adding the php extension (don't know if that will
work, but it's worth a shot).
--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
Hi I'm using the mail() function to send email and I know it's failing
because it's returning a false but how do I tell what problem is? Is
there an error message that I can grab that will show me why the
function is returning false? Any help greatly appreciated. Thanks!
-Ben
--- End Message ---
--- Begin Message ---
don't forget to open up your phpinfo to see the easter egg for today.
--- End Message ---
--- Begin Message ---
Is someone playing games with me I have a rabbit photo which has taken
over the php logo in my phpinfo(), I also saw a dog in a logo on a
mirror for the php manual :) Its kinda cute, interested how its done.
--- End Message ---
--- Begin Message ---
Is someone playing games with me I have a rabbit photo which has taken
over the php logo in my phpinfo(), I also saw a dog in a logo on a
mirror for the php manual :) Its kinda cute, interested how its done.
yeah, we hacked your server and changed the logo ... just for the fun of it
--
Lars B. Jensen, Internet Architect
CareerCross Japan
Japan's premier online career resource for english speaking professionals
http://www.careercross.com
--- End Message ---
--- Begin Message ---
does anyone have or know of an example where:
user chooses values from a couple of drop down boxes
dateabase is queries and gives the values to jpgraph
jpgraph draws the image on the same html page
all the examples I have seen reload the whole page or go to a new page
when jpgraph does its thing....
does an example like this exist ?
--- End Message ---
--- Begin Message ---
On Thu, March 31, 2005 9:26 pm, Graham Anderson said:
> does anyone have or know of an example where:
>
> user chooses values from a couple of drop down boxes
> dateabase is queries and gives the values to jpgraph
> jpgraph draws the image on the same html page
>
> all the examples I have seen reload the whole page or go to a new page
> when jpgraph does its thing....
>
> does an example like this exist ?
Well, no.
If it was drawn on the same page without hitting the server, then PHP
wouldn't be involved, and it would all be in JavaScript.
Actually, I guess you could *MAYBE* write a Java Applet/Servlet, using
keep-alive, and then have PHP create the Java objects, and then, in
theory, you could have an open connection from the browser back and forth
to PHP...
But I've never seen anybody succeed at that, and I can guarantee that
you're asking for a LOT of headaches and big problems with server/browser
interaction, and HORRIBLE performance for the end-user experience.
You might be able to find something like jpgraph for JavaScript, but then
your question wouldn't really be appropriate here.
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---
--- Begin Message ---
hey up all,
anyone have a snippet for generating a unique booking reference string,
say 6-10 characters long? The kind of thing you get when you book a
flight or whatnot online.
it's friday afternoon and I'm too dim to figure one out myself :-/
Rob Agar
Web Site Consultant
Wild Lime Media - [EMAIL PROTECTED]
Studio 1, 70 McLeod Street, Cairns 4870
Tel: 07 4081 6677 | Fax: 07 4081 6679
Web and Software Development Services - www.wildlime.com
Search Engine Optimisation Services - search.wildlime.com
Professional Website Hosting Services -www.hostonlime.com.au
Winner 2004 Telstra North QLD Media Awards - Best Website - Online
Content & Information
--- End Message ---