php-general Digest 27 Sep 2002 15:32:45 -0000 Issue 1610

Topics (messages 117809 through 117859):

Re: length function
        117809 by: Smith, Benjamin
        117816 by: . Edwin
        117817 by: . Edwin
        117818 by: . Edwin
        117819 by: . Edwin

no $PATH_INFO by using URLs with "*.php/value" and not "*.php?value"
        117810 by: michael schoenboeck

Re: Looking for a forum
        117811 by: Chip Wiegand

php on apache on win2k
        117812 by: Vic
        117823 by: Brian McGarvie
        117830 by: Sascha Braun
        117837 by: karthikeyan

PHP & mysql configuration for windows
        117813 by: Uma Shankari T.

parse html code
        117814 by: Rodrigo
        117820 by: Khalid El-Kary

Date-problem?
        117815 by: Gustavus

Re: Finding out when a Web page has changed
        117821 by: Vikram Vaswani
        117822 by: Vikram Vaswani

parsing PHP to create HTML only page
        117824 by: Tony Burgess
        117841 by: Marek Kilimajer

Instalation problem
        117825 by: Alicia Molina (ABS)
        117826 by: Chris Hewitt
        117850 by: Chris Hewitt

Re: remote files to servers
        117827 by: Simon Angell

php-Re: Remote files to servers
        117828 by: Simon Angell

setting .htaccess authentication with PHP
        117829 by: Javier Montserat

Re: mobile number
        117831 by: Ford, Mike               [LSS]

what do you think?
        117832 by: Arminas
        117835 by: Ford, Mike               [LSS]
        117838 by: Miles Thompson
        117845 by: Chase Urich

Send mail in HTML
        117833 by: Christian Ista

GD & Fonts
        117834 by: Jonathan Rosenberg

Re: Displaying full array contents
        117836 by: Brad Harriger

Re: Encrypted MySQL passwords
        117839 by: Richard Fox

Mobile Number - End of thread.
        117840 by: Ryan A

Bus Schedule / Time table
        117842 by: Craig

Re: Update involving a list field
        117843 by: Marek Kilimajer

Re: Encrypted MySQL passwords (new info from MysQL list)
        117844 by: Richard Fox

Web Caching
        117846 by: Scott Fletcher

php mysql fulltext search min word length = 3
        117847 by: ROBERT MCPEAK
        117856 by: Marek Kilimajer

4.0.2 => 4.2.3, form vars are empty?
        117848 by: Qmail List
        117851 by: Erwin
        117852 by: Scott Houseman
        117853 by: ed.home.homes2see.com
        117854 by: Jesse Cablek

exec issue - return value 127
        117849 by: christian haines

$_SESSION[] and register_globals=on
        117855 by: Andre Dubuc
        117859 by: Leon Mergen

Re: exec issue - return value 127 (more)
        117857 by: christian haines

Getting part of a string
        117858 by: ed.home.homes2see.com

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 ---
http://www.php.net/manual/en/function.strlen.php

-----Original Message-----
From: Jeff Bluemel [mailto:[EMAIL PROTECTED]]
Sent: Friday, 27 September 2002 1:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] length function


I am looking for a function that will give me the number of characters of a
string, or number.  I tried using the function length, but that function
seems to deal with arrays, and doesn't seem to function like I am intending
it to.

--

Thanks,

Jeff Bluemel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Why, can't you just use strlen()?

  http://www.php.net/manual/en/function.strlen.php

Or, am I missing something?

- E

"Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am looking for a function that will give me the number of characters of
a
> string, or number.  I tried using the function length, but that function
> seems to deal with arrays, and doesn't seem to function like I am
intending
> it to.
>
> --
>
> Thanks,
>
> Jeff Bluemel
>
>
--- End Message ---
--- Begin Message ---
Why, can't you just use strlen()?

  http://www.php.net/manual/en/function.strlen.php

Or, am I missing something?

- E

"Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am looking for a function that will give me the number of characters of
a
> string, or number.  I tried using the function length, but that function
> seems to deal with arrays, and doesn't seem to function like I am
intending
> it to.
>
> --
>
> Thanks,
>
> Jeff Bluemel
>
>
--- End Message ---
--- Begin Message ---
Why, can't you just use strlen()?

  http://www.php.net/manual/en/function.strlen.php

Or, am I missing something?

- E

"Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am looking for a function that will give me the number of characters of
a
> string, or number.  I tried using the function length, but that function
> seems to deal with arrays, and doesn't seem to function like I am
intending
> it to.
>
> --
>
> Thanks,
>
> Jeff Bluemel
>
>
--- End Message ---
--- Begin Message ---
Why, can't you just use strlen()?

  http://www.php.net/manual/en/function.strlen.php

Or, am I missing something?

- E

"Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

>I am looking for a function that will give me the number of characters of 
a
>string, or number.  I tried using the function length, but that function
>seems to deal with arrays, and doesn't seem to function like I am 
intending
>it to.
>
>--
>
>Thanks,
>
>Jeff Bluemel
>





_________________________________________________________________
かわいくて愉快なイラスト満載 MSN キャラクター http://character.msn.co.jp/
--- End Message ---
--- Begin Message ---
hi,

when i enter the URL www.domain.com/dir/file.php?value=1 the script work
fine, but when i enter www.domain.com/dir/file.php/value/1 i become a
404 error.

OS: Apache/2.0.40 (Win32) PHP/4.2.3 

but on win2k pro with apache 1.3.20 & php4.0.6 i did not have this
problem.

php is loaded as module. (php4apache2.dll)

on the phpinfo(); i also can't find any $PATH_INFO

did any one know about this problem, becouse all my apps are based on
this feature, and when i using CGI files at apache2 i can use the /

SEEYA
michael


--- End Message ---
--- Begin Message ---
On Wed, 2002-09-25 at 22:26, John Taylor-Johnston wrote:
> Hi,
> I'm looking for some forum script, a bit like this:
> http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi
> Can anyone post a link to something useful?
> John

I set up phpBB on my company web site. It was easy to set up and has all
the features you could want.

--
Chip

> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


--- End Message ---
--- Begin Message ---
I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I
decided o now go with apache for open source's sake and the sake of my
sanity.

Well right now my sanity is in question, php tells me that I have to
manually config the apache conf file - no prob here done this many
times; but it tells me to add theis line here:

LoadModule php4_module c:/php/sapi/php4apache.dll

Now I don't see php4apache.dll anywhere in sight.

What I do see is: php4ts.dll; and I wonder if the documentation is
outdated. - (or if I am a complete fool)

Either way I get this error when running the apache test:

Cannot load blah blah module blah blah LoadModule php4_module
c:/php/sapi/php4apache.dll

Not only that, but I see no "sapi" anywhere in c:/php/

Ok, cool, now what? Any help?

- Victor - www.argilent.com  


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
 

______________________________________________________________________ 
Post your ad for free now! http://personals.yahoo.ca
--- End Message ---
--- Begin Message ---
on www.php.net you need to download the zip file for php, this will include
the missing files...

"Vic" <[EMAIL PROTECTED]> wrote in message
000001c265e6$c3a2b920$a3a96518@jumpy">news:000001c265e6$c3a2b920$a3a96518@jumpy...
> I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I
> decided o now go with apache for open source's sake and the sake of my
> sanity.
>
> Well right now my sanity is in question, php tells me that I have to
> manually config the apache conf file - no prob here done this many
> times; but it tells me to add theis line here:
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
>
> Now I don't see php4apache.dll anywhere in sight.
>
> What I do see is: php4ts.dll; and I wonder if the documentation is
> outdated. - (or if I am a complete fool)
>
> Either way I get this error when running the apache test:
>
> Cannot load blah blah module blah blah LoadModule php4_module
> c:/php/sapi/php4apache.dll
>
> Not only that, but I see no "sapi" anywhere in c:/php/
>
> Ok, cool, now what? Any help?
>
> - Victor - www.argilent.com
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
>
>
> ______________________________________________________________________
> Post your ad for free now! http://personals.yahoo.ca


--- End Message ---
--- Begin Message ---

----- Original Message -----
From: "Sascha Braun" <[EMAIL PROTECTED]>
To: "Vic" <[EMAIL PROTECTED]>
Sent: Friday, September 27, 2002 10:02 AM
Subject: Re: [PHP] php on apache on win2k


> Hi Vic,
>
> the Apache DLL resides in the php/sapi folder.
>
> But if you use Apache Version 2000 and above you have to change
> load_module c:/php/sapi/php4apache.dll to c:/php/sapi/php4apache2.dll
>
> After that you only have to put the last following lines named in the
> install.txt
> in the httpd.conf.
>
> But it's not pobably working when you put these line direktly under the
> load_module option. Search thru the httpd.conf and find out where it may
> fit best.
>
> I had another problem when I installed PHP4.2.3 together with apache
2.0.42.
> Hole PHP did't work to an unchangable error. So at last I installed the
> CGI Version of PHP. If you are able to to this in a different way,
> please remind me and tell me how you did it and what Apache Version
> you used for it.
>
> Have it nice
>
> Sascha Braun
>
>
>
> > I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I
> > decided o now go with apache for open source's sake and the sake of my
> > sanity.
> >
> > Well right now my sanity is in question, php tells me that I have to
> > manually config the apache conf file - no prob here done this many
> > times; but it tells me to add theis line here:
> >
> > LoadModule php4_module c:/php/sapi/php4apache.dll
> >
> > Now I don't see php4apache.dll anywhere in sight.
> >
> > What I do see is: php4ts.dll; and I wonder if the documentation is
> > outdated. - (or if I am a complete fool)
> >
> > Either way I get this error when running the apache test:
> >
> > Cannot load blah blah module blah blah LoadModule php4_module
> > c:/php/sapi/php4apache.dll
> >
> > Not only that, but I see no "sapi" anywhere in c:/php/
> >
> > Ok, cool, now what? Any help?
> >
> > - Victor - www.argilent.com
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
> >
> >
> > ______________________________________________________________________
> > Post your ad for free now! http://personals.yahoo.ca
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>

--- End Message ---
--- Begin Message ---
<snip>
> > Cannot load blah blah module blah blah LoadModule php4_module
> > c:/php/sapi/php4apache.dll
</snip>

This means you need to put php4ts.dll which will be PHPDir to
Window/System(98) WinNt/System32(NT)
directory.  If you do that you wont get that error.

Hope this helps.

karthikeyan.

----- Original Message -----
From: "Brian McGarvie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 27, 2002 1:31 PM
Subject: [PHP] Re: php on apache on win2k


>
> on www.php.net you need to download the zip file for php, this will
include
> the missing files...
>
> "Vic" <[EMAIL PROTECTED]> wrote in message
> 000001c265e6$c3a2b920$a3a96518@jumpy">news:000001c265e6$c3a2b920$a3a96518@jumpy...
> > I used to have php 4.2.3 on iis on 200 and xp and it worked fine, but I
> > decided o now go with apache for open source's sake and the sake of my
> > sanity.
> >
> > Well right now my sanity is in question, php tells me that I have to
> > manually config the apache conf file - no prob here done this many
> > times; but it tells me to add theis line here:
> >
> > LoadModule php4_module c:/php/sapi/php4apache.dll
> >
> > Now I don't see php4apache.dll anywhere in sight.
> >
> > What I do see is: php4ts.dll; and I wonder if the documentation is
> > outdated. - (or if I am a complete fool)
> >
> > Either way I get this error when running the apache test:
> >
> > Cannot load blah blah module blah blah LoadModule php4_module
> > c:/php/sapi/php4apache.dll
> >
> > Not only that, but I see no "sapi" anywhere in c:/php/
> >
> > Ok, cool, now what? Any help?
> >
> > - Victor - www.argilent.com
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002
> >
> >
> > ______________________________________________________________________
> > Post your ad for free now! http://personals.yahoo.ca
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---


Hello,

  I have installed and mysql and configured php also..But in mysql it is 
not fetching the data's.In the mysql error file it is displaying an error 
message like InnoDB file path is not setup ...Can anyone please tell me in 
which place have to set the path..?? mysql is up ..

Regards,
Uma

--- End Message ---
--- Begin Message ---
I want to enter an url, get the html code, and obtain from this all the referenced 
urls.
Anybody knows the way to do that?

Bergus
--- End Message ---
--- Begin Message ---
hi,
you have two things to do here, first obtain the file, second get urls 
inside it ...

about the first you can get the file so easily using the functions fopen, 
fread and fclose

int fopen ( string filename, string mode [, int use_include_path [, resource 
zcontext]] )

//for example (this will open for writing only)
$file=fopen("http://www.anydomain.com/index.html","w";);

//follow the other php file system functions to read the file and obtain a 
string from it.
http://it3.php.net/manual/en/ref.filesystem.php

about getting URLs from the file this could be done through string functions 
(by applying them on the returned string)

refer to functions strpos, substr, substr_count, strlen  in the php manual
http://it3.php.net/manual/en/ref.strings.php

hopefully this will help

yours,
khalid






_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
Hi,

I'm using ImpAkt2 (PHP4, MySql, Apache on W2K)

I have update form (which has date-field). So now I have to enter date on 
format yy.mm.dd (ex. today 02.09.27), and in the database has then correct 
format yyyy-mm-dd. 

Ok! I have also listing-page, which has date-field (it format is dd.mm.yyyy 
(finland or germany). When I'll goto update form, date-field format is 
dd.mm.yyyy. But when I'll accept form, everything goes wrong.... I'll get 
strange date. In the listing-page date-format is now 20.09.2027.
How I can correct this problem? Can I use Impakt UniformVal and RegExp-field or 
what I have do to.

This is quite difficult problem to explain!

gustavus
--- End Message ---
--- Begin Message ---
>> I need to write an application that accepts a list of URLs and checks them
>> on a daily basis (via cron) to see if the pages have changed in the past
day.
>> 
>> I need some help with this. Does anyone know the most optimal way to find
>> out when a particular Web page has been modified? I am thinking about using
>> the Last-Modified: HTTP header - however, all servers do not return this
>> header - any ideas on what the fallback should be?
>
>You could calculate and store the MD5 hash of the page. If the hash is
>different the next day, you know the page has been modified.

Does this mean that I need to read the entire contents of the HTTP stream
into a variable, calculate the hash and store it for comparison? Or is
there an easier way to get the MD5 hash?

Basically, I'm wondering if there is a way to do this without having to
read the entire URL contents via HTTP.

Vikram
--- End Message ---
--- Begin Message ---
Yup, thought of that one - but it just seems a little sub-optimal ;) Any
way to do this without resorting to a brute-force "read the entire file
stream over HTTP"?

I can't think of one, so I guess I may do it this way after all - but if
something occurs to you, or anyone else on the list, please let me know.

Thanks for the help :)

Vikram

>You could cache/save the actual contents of the file, then when you read
>it next time, compare it to what you saved and see if it changed. You
>may want to filter out everything but what's between <body> and </body>,
>so you're not thinking it changed just b/c of something in the
>headers...
>
>---John Holmes...
>
>> -----Original Message-----
>> From: Vikram Vaswani [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, September 26, 2002 7:04 AM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] Finding out when a Web page has changed
>> 
>> Hi all,
>> 
>> I need to write an application that accepts a list of URLs and checks
>them
>> on a daily basis (via cron) to see if the pages have changed in the
>past
>> day.
>> 
>> I need some help with this. Does anyone know the most optimal way to
>find
>> out when a particular Web page has been modified? I am thinking about
>> using
>> the Last-Modified: HTTP header - however, all servers do not return
>this
>> header - any ideas on what the fallback should be?
>> 
>> TIA,
>> 
>> Vikram
>> --
>> "I find your lack of faith disturbing."
>>                      --Darth Vader
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi All,

I'm really just looking for some advice!

I am looking to build a website which users will be able to logon and have a
template based website generated for them, the output will have to be HTML
so that these sites can be indexed by search engines, it will also have to
change Apache conf files and DNS records.

Perhaps someone knows of a similar open source project or could point me in
the right direction.

My idea is to create the site using PHP, making use of a number of different
templates which will be PHP pages that have the same includes i.e
Navigation, Header, Footer, Content etc. Once the pages have been generated
(view source) all you have is the HTML, this is what I would like to
achieve, but I'm unsure how to pass the pages to give me only HTML from the
databases.

Any help or advice would be greatly appreciated.
--
Tony Burgess


--- End Message ---
--- Begin Message ---
You can use phpnuke or similar to achieve this, all you need is to 
decide which database to use (you may use
Host: header, or directory). But sure, this won't change your dns 
records or Apache conf files.

Tony Burgess wrote:

>Hi All,
>
>I'm really just looking for some advice!
>
>I am looking to build a website which users will be able to logon and have a
>template based website generated for them, the output will have to be HTML
>so that these sites can be indexed by search engines, it will also have to
>change Apache conf files and DNS records.
>
>Perhaps someone knows of a similar open source project or could point me in
>the right direction.
>
>My idea is to create the site using PHP, making use of a number of different
>templates which will be PHP pages that have the same includes i.e
>Navigation, Header, Footer, Content etc. Once the pages have been generated
>(view source) all you have is the HTML, this is what I would like to
>achieve, but I'm unsure how to pass the pages to give me only HTML from the
>databases.
>
>Any help or advice would be greatly appreciated.
>--
>Tony Burgess
>
>
>
>  
>

--- End Message ---
--- Begin Message ---

Hi!
I'm installing PHP 4.2.3, I have already installed version 4.0.5 working
without problems. 
Once installed version 4.2.3, I'm using the order phpinfo() and continues
appearing the old version of PHP 4.0.5 how if it continued installed and it
had not been updated. 
What can be happening? 
Thank you very much !

--- End Message ---
--- Begin Message ---
Alicia Molina (ABS) wrote:

>Hi!
>I'm installing PHP 4.2.3, I have already installed version 4.0.5 working
>without problems. 
>Once installed version 4.2.3, I'm using the order phpinfo() and continues
>appearing the old version of PHP 4.0.5 how if it continued installed and it
>had not been updated. 
>What can be happening? 
>Thank you very much !
>
Have you restarted the webserver? You don't tell us which webserver/OS.

HTH
Chris


--- End Message ---
--- Begin Message ---
Alicia Molina (ABS) wrote:

>Yes! I have restarted my server, my webserver and all.
>I have red hat 6.2 and Apache 1.3.20
>
>Alicia Molina (ABS) wrote:
>
>>I'm installing PHP 4.2.3, I have already installed version 4.0.5 working
>>without problems. 
>>Once installed version 4.2.3, I'm using the order phpinfo() and continues
>>appearing the old version of PHP 4.0.5 how if it continued installed and it
>>had not been updated. 
>>
>Have you restarted the webserver? You don't tell us which webserver/OS.
>
>HTH
>Chris
>
Either the configuration for apache remains pointed at the location of 
the old installation (and your new installation is somewhere different) 
or apache was compiled with php not as a module but built in.

In the second case you would need to recompile apache. I suspect it is 
as a module though, Check /etc/httpd/conf/httpd.conf for the LoadModule 
line for php4 and check that the new libphp4.so is in that directory. It 
probably is not, so you need to move it there and restart apache.

HTH
Chris


--- End Message ---
--- Begin Message ---
From: Brad Bonkoski <[EMAIL PROTECTED]>
Sure,
see fopen() and fread() and fwrite()
-Brad

I Have looked through the manual at these and have got the general idea of
it, but how do i join the commands to do the function i am after?

--
Cheers
---------------------------------------------------------
Simon Angell
Canberra ACT
www.canberra-wx.com
---------------------------------------------------------
Member of:
Australian Severe Weather Association.
www.severeweather.asn.au
---------------------------------------------------------
This email is virus free.
Scanned before leaving my mailbox
using Norton Antivirus 2002 for Win2k
Scanned with the latest definition File.


"Simon Angell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all.
> i was wondering if it is possible to use PHP to retrieve a remote file and
> then write a copy to my own server for quicker access?
>
> --
> Cheers
> ---------------------------------------------------------
> Simon Angell
> Canberra ACT
> www.canberra-wx.com
> ---------------------------------------------------------
> Member of:
> Australian Severe Weather Association.
> www.severeweather.asn.au
> ---------------------------------------------------------
> This email is virus free.
> Scanned before leaving my mailbox
> using Norton Antivirus 2002 for Win2k
> Scanned with the latest definition File.


--- End Message ---
--- Begin Message ---
From: Brad Bonkoski <[EMAIL PROTECTED]>
Sure,
see fopen() and fread() and fwrite()
-Brad

I Have looked through the manual at these and have got the general idea of
it, but how do i join the commands to do the function i am after?

--
Cheers
---------------------------------------------------------
Simon Angell
Canberra ACT
www.canberra-wx.com
---------------------------------------------------------
Member of:
Australian Severe Weather Association.
www.severeweather.asn.au
---------------------------------------------------------
This email is virus free.
Scanned before leaving my mailbox
using Norton Antivirus 2002 for Win2k
Scanned with the latest definition File.


"Simon Angell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all.
> i was wondering if it is possible to use PHP to retrieve a remote file and
> then write a copy to my own server for quicker access?
>
> --
> Cheers
> ---------------------------------------------------------
> Simon Angell
> Canberra ACT
> www.canberra-wx.com
> ---------------------------------------------------------
> Member of:
> Australian Severe Weather Association.
> www.severeweather.asn.au
> ---------------------------------------------------------
> This email is virus free.
> Scanned before leaving my mailbox
> using Norton Antivirus 2002 for Win2k
> Scanned with the latest definition File.


--- End Message ---
--- Begin Message ---
Hello Everyone,

I've developed a feature which allows clients to upload files to a dir on 
the server.  I want to allow clients to email a url to the file as follows 
:-

http://www.mysite.com/clientX/file01.jpg

I want to setup challenge / response authentication on the client folder so 
that when someone clicks the link they are prompted for a username / 
password.  I'm thinking that apache .htaccess permissions are the best way 
to do this.  The server is running Linux.

My question is, can I write a PHP / shell script to automatically set folder 
access permissions and how would this be done?

Thanks,

Javier



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Ryan A [mailto:[EMAIL PROTECTED]]
> Sent: 26 September 2002 17:26
> 
> Hey,
> 
> > It used to be that 07xxx = vodafone ... and 07yyy = orange 
> - but now it
> > could be anything.
> 
> DAMN, that sounds bad, any fixed numbers in the UK atleast?
> My cousins number is +44 79320----- so that could be any 
> company right?

Yes, right.  Although the prefixes (07xxx) are initially allocated to specific 
providers, the UK has full number portability, which means that a user can change 
service providers and keep their original number -- several times, if they so wish!  
This is partially in response to an EC directive, so you'll have the same problem 
EC-wide eventually.

And, in any case, each UK provider has a large number of prefixes allocated, not in 
any particular sequence, so the best you could do given a provider would be to offer a 
drop-down of all the possible prefixes.  If you *really* want to know the full gory 
details, you can download the allocations list from 
http://www.oftel.gov.uk/ind_info/numbering/s7.xls, but a (very) short extract gives, 
for example:

07780        Vodafone
07781        Guernsey Telecoms
07782        Hutchison
07785-07789  Vodafone
07790-07792  Orange
07795-07796  Vodafone
077977-8     Jersey Telecoms
07798-07799  Vodafone
07800        Orange
07801-07803  O2
07808-07809  O2

In the US it's even worse, I think, as I believe it's still the case that mobile 
numbers are allocated out of the regular numbering space, so each provider has 
prefixes allocated for each geographic area code in which they operate.

All in all, I guess this is a very long-winded way of saying "don't even bother 
trying"!

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 
--- End Message ---
--- Begin Message ---
about http://smanager.web1000.com/


--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Arminas [mailto:[EMAIL PROTECTED]]
> Sent: 27 September 2002 11:38
> 
> about http://smanager.web1000.com/

I think the page needs a drastic proof-read and grammar check -- I have trouble 
understanding what some of it is even trying to say.  And I haven't a clue what "ASSAY 
TO INTEGRATE MANAGEMENT" is supposed to mean!

It looks like a nice product, but I wouldn't even evaluate it after looking at this 
because I'd be worried about having to spend too much time trying to decipher it's 
output.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 
--- End Message ---
--- Begin Message ---

Fully concur.

mt

At 01:26 PM 9/27/2002 +0100, Ford, Mike               [LSS] wrote:
> > -----Original Message-----
> > From: Arminas [mailto:[EMAIL PROTECTED]]
> > Sent: 27 September 2002 11:38
> >
> > about http://smanager.web1000.com/
>
>I think the page needs a drastic proof-read and grammar check -- I have 
>trouble understanding what some of it is even trying to say.  And I 
>haven't a clue what "ASSAY TO INTEGRATE MANAGEMENT" is supposed to mean!
>
>It looks like a nice product, but I wouldn't even evaluate it after 
>looking at this because I'd be worried about having to spend too much time 
>trying to decipher it's output.
>
>Cheers!
>
>Mike
>
>---------------------------------------------------------------------
>Mike Ford,  Electronic Information Services Adviser,
>Learning Support Services, Learning & Information Services,
>JG125, James Graham Building, Leeds Metropolitan University,
>Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
>Email: [EMAIL PROTECTED]
>Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Ditto.

Chase
On Fri, 2002-09-27 at 07:34, Miles Thompson wrote:
> 
> Fully concur.
> 
> mt
> 
> At 01:26 PM 9/27/2002 +0100, Ford, Mike               [LSS] wrote:
> > > -----Original Message-----
> > > From: Arminas [mailto:[EMAIL PROTECTED]]
> > > Sent: 27 September 2002 11:38
> > >
> > > about http://smanager.web1000.com/
> >
> >I think the page needs a drastic proof-read and grammar check -- I have 
> >trouble understanding what some of it is even trying to say.  And I 
> >haven't a clue what "ASSAY TO INTEGRATE MANAGEMENT" is supposed to mean!
> >
> >It looks like a nice product, but I wouldn't even evaluate it after 
> >looking at this because I'd be worried about having to spend too much time 
> >trying to decipher it's output.
> >
> >Cheers!
> >
> >Mike
> >
> >---------------------------------------------------------------------
> >Mike Ford,  Electronic Information Services Adviser,
> >Learning Support Services, Learning & Information Services,
> >JG125, James Graham Building, Leeds Metropolitan University,
> >Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
> >Email: [EMAIL PROTECTED]
> >Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211
> >
> >--
> >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
-- 
PGP Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8

Attachment: signature.asc
Description: This is a digitally signed message part

--- End Message ---
--- Begin Message ---
Hello,

I use the mail function to send mail. On my development PC, I receive
the mail in HTML, with the high priority,...

I put the files on the production server, a linux machine, when I
receive the mail is not in HTML but in plain text, I don't see the high
priority. I receive that :

Content-Type: text/html; charset=iso-8859-1

X-Priority: 1

X-Mailer: PHP / 4.2.3

Click on the link to activate the ....

Could you tell me what can I do ?

I use this code to send mail :

$sender_name = "MyWebsite"; 
$sender_email = ""; 
                
$contactemail = $Email1;
$myreplyemail = ""; 
                
$message = "Click on the link to activate the account.".'<br>';
$message .= http://www.website.com;

$subject = "TEST"; 
                
$header = "From: \"".addslashes($sender_name)."\"
<".$sender_email.">\r\n";
$header .= "Reply-To: ".$sender_email."\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$header .= "X-Priority: 1\r\n";
$header .= "X-Mailer: PHP / ".phpversion()."\r\n";
                
mail($contactemail, $subject, $message, $header);  


thanks,

--- End Message ---
--- Begin Message ---
I've just started using the GD library in PHP to do some graphic
manipulation/creation.  I find myself quite confused about how to work with
fonts.

I believe that I have both FreeType & TrueType enabled, since my phpinfo()
says

        '--with-freetype-dir=/usr' '--with-gd'
        '--enable-gd-native-ttf' '--with-ttf'

& under GD it says

        FreeType Support                enabled
        FreeType Linkage                with freetype

What I'm unclear on is how/where I can find fonts to use.  Should I expect
to find them already installed on the server somewhere?  Or does one
typically have to download & install them as needed?

Or am I just misunderstanding how fonts work?

--
JR


--- End Message ---
--- Begin Message ---
OK.  Now I have something I can work with.  Thanks everyone.

Brad

Brad Harriger wrote:

> I'm trying to write a function that will display the full contents of an 
> array.  If one of the keys contains a value that is an array, the full 
> array (all indices) should be shown.
> 
> As an example, given the following definitions:
> 
> $Arr1[1] = "Apple";
> $Arr1[2] = "Banana";
> $Arr1[3] = $Arr2[];
> $Arr2[1] = "Carrot";
> $Arr2[2] = $Arr3[];
> $Arr3[1] = "Orange";
> $Arr3[2] = "Peach";
> 
> 
> the output should be:
> 
> Arr1:1:Apple
> Arr1:2:Banana
> Arr1:3:Arr2[]
> Arr1:3:Arr2:1:Carrot
> Arr1:3:Arr2:2:Arr3[]
> Arr1:3:Arr2:2:Arr3:1:Orange
> Arr1:3:Arr2:2:Arr3:2:Peach
> 
> The closest I've come is:
> 
>  while (current($myArr))
>   {
>     if(is_array(current($myArr)))
>     {
>       $arrKey = key(current($myArr));
>       echo "Array ";
>       echo "&nbsp=&nbsp";
>       $baseArray = key($myArr);
>       echo key($myArr);
>       echo "<BR>\n";
>       walkArray(current($myArr));
>     }
>     else
>     {
>       $arrKey = key($myArr);
>       if ($baseArray != "")
>       {
>         echo $baseArray;
>         echo ":";
>       }
>       echo $arrKey;
>       echo "&nbsp=&nbsp";
>       echo current($myArr);
>       echo "<BR>\n";
>     }
>     next($myArr);
>   }
> 
> This code only echoes one dimension of a multi-dimension array.  I can't 
> find a way to reliably store more than that.  Any suggestions?
> 
> Thanks in advance,
> 
> Brad
> 

--- End Message ---
--- Begin Message ---

"Rodolfo Gonzalez" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Thu, 26 Sep 2002, Brad Bonkoski wrote:
>
> > also might be better then sending it in the clear.
>
> But I guess that the original poster wanted to know how to avoid the clear
> text session originated by the client-server dialog itself, not the
> passwords in a query (its easy to log the sessions using tcpdump, for
> example). BTW (and I have not checked the CVS/TODO, so I ask here), is
> there planned support for SSL & MySQL 4.x.x in PHP?.
>

That's right, I want to avoid the original clear text session from the
start. Thanks for all the info. When I am ready to go online with my app, I
will either recompile my MySQL 3.23.49 to use SSL, or if production MySQL
4.x.x is ready I'll switch to it.



--- End Message ---
--- Begin Message ---
Hi all,
well, time to explain, I am just practiceing my programming skills in PHP and was 
bored...so I wondered why not do the mobile thing as I have not seen it in any 
sites...now i know why...its coz its a pain in the ass as pointed out by so many of 
you. Thank you.
Since I am not a person who looks logic in the eye and still does crap (unlike my ex 
girl heheheh) I have dropped the whole idea.
Thanks go out to everyone who responded to my thread, 
cheers and have a great day.
-Ryan.

--- End Message ---
--- Begin Message ---
I have been given the task to program a site in php that displays the
timetable of a local bus company
Does any one have any suggestions into where to look for any info or advice?

Thanks

craig


--- End Message ---
--- Begin Message ---
You mean enum column type? There is nothing special about it, besides 
you cannot change it to anything else. echo your update query and see 
what it looks like.

Shiloh Madsen wrote:

>Hi,
>
>Im using a form that updates a database entry. In it one of my fields is a drop 
>down/list field. Whenever the value in this field is changed, instead of updating it 
>to the new item, it is deleted entirely. I have the same field in my entry page that 
>inserts just fine, but for some reason the update deletes the info. Is there 
>something special about updating a recordset off of a dropdown field that I am 
>missing? if it matters, im pulling the initial value of the field from the value in 
>the database row.I can send the code for the page to anyone who needs more info.
>
>Shiloh
>
>  
>

--- End Message ---
--- Begin Message ---



> Hi Andrew and Richard,
> The password and connection info is scrambled up. You can look,  If
> you want to check it out for your self look in the source code of
> ./mysql-3.23.XX/libmysql  search for the following functions.
> especially in 'mysql_real_connect' function.   It is not the best
> method,  but it is not clear text!
>
> void hash_password(ulong *result, const char *password)
> void make_scrambled_password(char *to,const char *password)
> char *scramble(char *to,const char *message,const char *password,
>                my_bool old_ver)
>
> See ya
> Ken



--- End Message ---
--- Begin Message ---
Hi!

    Any web browsers that establish a SSL connection with Apache.  What I
understand is that any webpages through SSL would not be cache after the web
browser received it.  But I noticed that only any webpage that use html
"<form>" tag follow by the method like "Get" or "Post" would effectively not
be cached.  It can be shown by pressing the back or forward button on the
web browser.  But not on any webpage that doesn't have html "<form>" tag.

    Is there a way for PHP to take care of that problem?  I realized that
PHP is on the server side and the web browser is on the client side.  So, it
wouldn't work that way.  Anyone know?  Suggestion?  Recommendation?

Thanks,
 FletchSOD


--- End Message ---
--- Begin Message ---
Much to my dismay, I've learned that the mySQL minimum
indexable/searchable word length is 3 characters.  This is a real
problem for me.  Anybody know a workaround, or how to tweak mySQL to
allow for matches of words 3 chars or less.

>From the online mysql docs
(http://www.mysql.com/doc/en/Fulltext_Search.html) 

"MySQL uses a very simple parser to split text into words. A ``word''
is any sequence of characters consisting of letters, numbers, `'', and
`_'. Any ``word'' that is present in the stopword list or is just too
short (3 characters or less) is ignored. "

Any thoughts, help would be terrific!  Thanks!
--- End Message ---
--- Begin Message ---
The only option is to recompile mysql

ROBERT MCPEAK wrote:

>Much to my dismay, I've learned that the mySQL minimum
>indexable/searchable word length is 3 characters.  This is a real
>problem for me.  Anybody know a workaround, or how to tweak mySQL to
>allow for matches of words 3 chars or less.
>
>>From the online mysql docs
>(http://www.mysql.com/doc/en/Fulltext_Search.html) 
>
>"MySQL uses a very simple parser to split text into words. A ``word''
>is any sequence of characters consisting of letters, numbers, `'', and
>`_'. Any ``word'' that is present in the stopword list or is just too
>short (3 characters or less) is ignored. "
>
>Any thoughts, help would be terrific!  Thanks!
>
>  
>

--- End Message ---
--- Begin Message ---
Hello List,

I'm putting a php app that has been off-line for about 18 months back
on-line. During my absence from php I had heard about some security issues,
so figured I'd try the latest 4.2.3 release.

Sessions and the DB are fine, but GET/POST vars are continually empty. I
mean a form submission from .html to .php (about the simplest thing
possible) the variables are not getting populated with their form values.

Actually, phpinfo() does show the variables and their values if I throw it
in the .php file. But tailing the mysql log shows the following:

SELECT * FROM users WHERE username='' AND password=''

    from this code.

$query = mysql_query("SELECT * FROM users WHERE username='$username' AND
password='$password'");


Regards, Thx

--- End Message ---
--- Begin Message ---
Qmail List wrote:
> Hello List,
> 
> I'm putting a php app that has been off-line for about 18 months back
> on-line. During my absence from php I had heard about some security
> issues, so figured I'd try the latest 4.2.3 release.
> 
> Sessions and the DB are fine, but GET/POST vars are continually
> empty. I mean a form submission from .html to .php (about the
> simplest thing possible) the variables are not getting populated with
> their form values. 

Turn register_globals = On in the php.ini file...

HTH
Erwin
--- End Message ---
--- Begin Message ---
This is almost certainly due to the new superglobals arrays which are used in newer 
versions of php.
in short, you will not be aqble to use the value 'name' from a posted form by simply 
refering
to '$name', but should rather use '$_POST["name"]'.See the php manual for more info.

To solve this issue with your older app:

edit php.ini
find 'register_globals', this will probably be set to 'off'
change it to 'register_globals = on'

Cheers

Scott



Qmail List wrote:
> Hello List,
> 
> I'm putting a php app that has been off-line for about 18 months back
> on-line. During my absence from php I had heard about some security issues,
> so figured I'd try the latest 4.2.3 release.
> 
> Sessions and the DB are fine, but GET/POST vars are continually empty. I
> mean a form submission from .html to .php (about the simplest thing
> possible) the variables are not getting populated with their form values.
> 
> Actually, phpinfo() does show the variables and their values if I throw it
> in the .php file. But tailing the mysql log shows the following:
> 
> SELECT * FROM users WHERE username='' AND password=''
> 
>     from this code.
> 
> $query = mysql_query("SELECT * FROM users WHERE username='$username' AND
> password='$password'");
> 
> 
> Regards, Thx
> 
> 


-- 
//--------------------------------------------//
// Scott Houseman                             //
// Jam Warehouse http://www.jamwarehouse.com/ //
// Smart Business Innovation                  //
// +27 21 4477440 / +27 82 4918021            //
//--------------------------------------------//

--- End Message ---
--- Begin Message ---

 I recently have experienced the same thing in upgrading from 4.0.0 to
4.2.3

All variables are now stored globally and can only be retrieved using
$_POST['var'] or $_GET['var'] declarations

i.e. 

$username = $_POST['username']; or get if your method was get in the
form.

On Fri, 27 Sep 2002, Qmail List wrote:

> Hello List,
> 
> I'm putting a php app that has been off-line for about 18 months back
> on-line. During my absence from php I had heard about some security issues,
> so figured I'd try the latest 4.2.3 release.
> 
> Sessions and the DB are fine, but GET/POST vars are continually empty. I
> mean a form submission from .html to .php (about the simplest thing
> possible) the variables are not getting populated with their form values.
> 
> Actually, phpinfo() does show the variables and their values if I throw it
> in the .php file. But tailing the mysql log shows the following:
> 
> SELECT * FROM users WHERE username='' AND password=''
> 
>     from this code.
> 
> $query = mysql_query("SELECT * FROM users WHERE username='$username' AND
> password='$password'");
> 
> 
> Regards, Thx
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Erwin <mailto:[EMAIL PROTECTED]> scribbled;
> 
> Qmail List wrote:
>> Hello List,
>> 
>> I'm putting a php app that has been off-line for about 18 months back
>> on-line. During my absence from php I had heard about some security
>> issues, so figured I'd try the latest 4.2.3 release.
>> 
>> Sessions and the DB are fine, but GET/POST vars are continually
>> empty. I mean a form submission from .html to .php (about the
>> simplest thing possible) the variables are not getting populated with
>> their form values.
> 
> Turn register_globals = On in the php.ini file...
> 
> HTH
> Erwin

Or better yet, actually use the new $_GET[] and $_POST[] and leave that
option off.

-jesse

--- End Message ---
--- Begin Message ---
hi all,

i am having a problem with exec. every command i try to run returns 127
(seg fault i think) but no array with info.
what could be causing this problem?

i have tried running the complete path to the command e.g. usr/bin/ls -l
etc but with no luck.

could this be something to do with my php.ini settings?

any help would be greatly appreciated!

many thanks in advance,

christian

--- End Message ---
--- Begin Message ---
A short question:

My IP informed me that they have register_globals=on in their php.ini. Is 
this going to cause problems with my scripts that were written  using $_POST, 
$_SESSION, etc?

Tia,
Andre
--- End Message ---
--- Begin Message ---

"Andre Dubuc" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> A short question:
>
> My IP informed me that they have register_globals=on in their php.ini. Is
> this going to cause problems with my scripts that were written  using
$_POST,
> $_SESSION, etc?

No, if everything is setup correctly both will work now. Otherwise, a lot of
websites would have many many problems with the transition phase between
register_globals = on and register_globals = off.

Grtz,

Leon


--- End Message ---
--- Begin Message ---
ok.. i found that i need to check the httpd error_log and it tells me that
it can't find the file or directory for the command.

how do i fix this?

i tried a full pathname to the command but it still says it cannot find dir
or file etc

c.



Christian Haines wrote:

> hi all,
>
> i am having a problem with exec. every command i try to run returns 127
> (seg fault i think) but no array with info.
> what could be causing this problem?
>
> i have tried running the complete path to the command e.g. usr/bin/ls -l
> etc but with no luck.
>
> could this be something to do with my php.ini settings?
>
> any help would be greatly appreciated!
>
> many thanks in advance,
>
> christian

--- End Message ---
--- Begin Message ---

I've got a situation where I need to pull a string from a variable but I
can't seem to get it figured out. 

I.e.

value of $a = /realtor/Remax/Ed/files/

I need to get the string between the second and third / (slash)

What I need: Remax

Thanks,

Ed


--- End Message ---

Reply via email to