|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Mon Jul 16 2001 - 02:54:26 CDT
php-general Digest 16 Jul 2001 07:54:26 -0000 Issue 758
Topics (messages 57979 through 58021):
installing 4.0.6 fails
57979 by: Alexander Lohse
Re: Simple (??) control structure problem
57980 by: Christopher Kaminski
Re: Question about strlen I think
57981 by: CC Zona
58006 by: Dennis Kaandorp
58007 by: Dennis Kaandorp
58019 by: CC Zona
I want to learn this!
57982 by: Minardi boy
57984 by: CC Zona
57986 by: Chris Anderson
57988 by: Aral Balkan
58010 by: zerosumzero.yahoo.com
Re: how can i creat a file and write a string to it!
57983 by: Chris Anderson
option value
57985 by: Michael Thomas
58020 by: teo.gecadsoftware.com
Reenviar: Help on LDAP and PHP4
57987 by: osman.bayona
converting multiple URL values for the same variable into an array
57989 by: Kurt Lieber
57990 by: Kurt Lieber
Re: OT I know, but WTF...
57991 by: Chris Anderson
57993 by: Chris Lambert - WhiteCrown Networks
58000 by: Chris Anderson
58001 by: Chris Cocuzzo
58002 by: Kurt Lieber
Installing fdf support in php
57992 by: Michael Stearns
[ANN] MySQLConnect for 4D 1.0 Demo
57994 by: spinel.noos.fr
need some help with EREGI please
57995 by: Andre Bajew
Re: Anybody using Miva or hosted at Hosting4All?
57996 by: Rasmus Lerdorf
Re: Session Question
57997 by: Rasmus Lerdorf
Session questions
57998 by: Jason Rennie
58016 by: Jason Rennie
58017 by: VFSA-eRentals
eregi and case sensitive problem
57999 by: CN YEONG
Help you with our programming skills and experience
58003 by: David Rosen
Re: but mysql? (was: postgres and php)
58004 by: Nuno Silva
mysql_fetch..........
58005 by: Deependra B. Tandukar
html in my form? bad things! help help help!
58008 by: zerosumzero.yahoo.com
58011 by: zerosumzero.yahoo.com
58014 by: Ray Dow
58015 by: zerosumzero.yahoo.com
58018 by: Ray Dow
Re: PHP 4.0.6 -- PSPELL can't load ASPELL module...
58009 by: Garth Dahlstrom
Re: access pop3 without IMAP
58012 by: Adrian D'Costa
Re: REGEXP
58013 by: Adrian D'Costa
Re: output plain HTML for CD Rom
58021 by: David Robley
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi,
I used to install every version up to 4.0.4 with apxs.
Always worked fine. But Version 4.0.6 fails, telling me that apache
would not have been built with mod_so support!
I am using apache 1.3.6.
Any idea?
Regards,
Alex
PS: Please mail cc-me because I am currently offlist!
Thanx.
-- ___________________________ Human Touch Medienproduktion GmbH Am See 1 17440 Klein JasedowAlexander Lohse Tel: (038374) 75211 Fax: (038374) 75223 eMail: al
humantouch.de http://www.humantouch.de
attached mail follows:
Thanks alot! I didn't do that because I wasn't aware of the nl2br() function.
I just taught myself php last weekend. There's still plenty for me to learn.
"Yz James" <liljim
btconnect.com> wrote in message
news:20010715194530.98967.qmail
pb1.pair.com...
> Hi Christopher,
>
> Why not use nl2br() and trim() ?
>
> $string = trim($string); // Clear any unwanted white space (trailing and
> leading);
> $string = nl2br($string); // Add line breaks where necessary
>
> echo "$string"; // Voila
>
> James
>
attached mail follows:
In article <20010715162831.10040.qmail
pb1.pair.com>,
denniskaan
multiweb.nl (Dennis Kaandorp) wrote:
> Is there a way to replace the spaces between the paths? > This is what I mean: > /uploads/ /by/ /dennis/ > must become > /uploads/<4sp>/by/<3sp>dennis/
See <http://php.net/preg-replace>. You can use the "e" or "f" modifier to count the number of captured spaces and write that number into your "<4sp>" replacement pattern.
-- CC
attached mail follows:
Thank you very much!
"Cc Zona" <cczona
nospam.invalid> wrote in message
news:20010715202016.11557.qmail
pb1.pair.com...
> In article <20010715162831.10040.qmail
pb1.pair.com>,
> denniskaan
multiweb.nl (Dennis Kaandorp) wrote:
>
> > Is there a way to replace the spaces between the paths?
> > This is what I mean:
> > /uploads/ /by/ /dennis/
> > must become
> > /uploads/<4sp>/by/<3sp>dennis/
>
> See <http://php.net/preg-replace>. You can use the "e" or "f" modifier to
> count the number of captured spaces and write that number into your
"<4sp>"
> replacement pattern.
>
> --
> CC
attached mail follows:
argh.. it was to complicated for me :( Can you help me with this? $ftpdata['path'] = preg_replace($ftpdata['path']); Thnx
"Cc Zona" <cczona
nospam.invalid> wrote in message
news:20010715202016.11557.qmail
pb1.pair.com...
> In article <20010715162831.10040.qmail
pb1.pair.com>,
> denniskaan
multiweb.nl (Dennis Kaandorp) wrote:
>
> > Is there a way to replace the spaces between the paths?
> > This is what I mean:
> > /uploads/ /by/ /dennis/
> > must become
> > /uploads/<4sp>/by/<3sp>dennis/
>
> See <http://php.net/preg-replace>. You can use the "e" or "f" modifier to
> count the number of captured spaces and write that number into your
"<4sp>"
> replacement pattern.
>
> --
> CC
attached mail follows:
In article <20010716050155.66968.qmail
pb1.pair.com>,
denniskaan
multiweb.nl (Dennis Kaandorp) wrote:
Ah. I see why you're having trouble: documentation of the 'F' modifier has apparently be excised from the manual since the preg_replace_callback() has replaced it in PHP 4.0.5. If you've got 4.0.5, use the new function instead. If you've got an earlier version, here's the info on 'F':
"If this modifier is set, preg_replace() treats the replacement parameter as a function name that should be called to provide the replacement string. The function is passed an array of matched elements in the subject string. NOTE: this modifier cannot be used along with /e modifier; and only preg_replace() recognizes this modifier."
For example: $ftpdata['path'] = preg_replace("/(matchtext)/F", "replace_func",$ftpdata['path']);
function replace_func($arr) { ... }
> argh.. it was to complicated for me :(
> Can you help me with this?
> $ftpdata['path'] = preg_replace($ftpdata['path']);
> Thnx
>
> "Cc Zona" <cczona
nospam.invalid> wrote in message
> news:20010715202016.11557.qmail
pb1.pair.com...
> > In article <20010715162831.10040.qmail
pb1.pair.com>,
> > denniskaan
multiweb.nl (Dennis Kaandorp) wrote:
> >
> > > Is there a way to replace the spaces between the paths?
> > > This is what I mean:
> > > /uploads/ /by/ /dennis/
> > > must become
> > > /uploads/<4sp>/by/<3sp>dennis/
> >
> > See <http://php.net/preg-replace>. You can use the "e" or "f" modifier to
> > count the number of captured spaces and write that number into your
> "<4sp>"
> > replacement pattern.
-- CC
attached mail follows:
Hello
My name is Robert-Jan and I've been webdesigning since 97 (very basic HTML sites, little Java and Flash). I got a job on the web in 99 and this was mainly providing content and other guys did the asp stuff for me.
This is why I kindo overslept the database hype. And heck I want to learn it! The question is where can I learn this. I've downloaded the manual at php.net but this wasn't very satisfying as I really don't like reading lots of complicated stuff on the screen of my laptop. Are there any books you guys/gals could recommend? Are there (non university/school) classes (satisfactory)?
Please tell me cause I really want to automate the sites I run now.
Cheers and thanks for your help
Robert-Jan www.forzaminardi.com
attached mail follows:
In article <20010715202446.14360.qmail
pb1.pair.com>,
minardi
aon.at (Minardi Boy) wrote:
> I've downloaded the manual at > php.net but this wasn't very satisfying as I really don't like reading lots > of complicated stuff on the screen of my laptop.
Then print it. No kidding. I'm all for conserving paper, but this is no waste. The PHP manual--*with annotations*--is a very good introduction to PHP. IMO, far too many people try to get by w/o reading the manual, then end up spending hours or days struggling with something that would have taken them seconds or minutes if they'd read the manual through.
A printout gives you get the best of both worlds: scribble notes all over the printout, while doing copy/pastes of the code snippets of the user annotations from the online version.
> Are there any books you guys/gals could recommend? Are there (non > university/school) classes (satisfactory)?
Julie Meloni has two good intro-level books. Many people seem to like the Wrox book as well. PHP.net has a list of other books (I believe there's a link from <http://php.net/support.php>). Pick whichever one you're most comfortable with.
As to courses, any generalized intro-to-programming should be helpful for understanding concepts & terminology common to PHP and every other programming language.
You mention an interest in databases. If you're using MySQL (which you should, at least while you're learning, since virtually every PHP tutorial for databases uses MySQL as its DBMS), the essential MySQL tutorial/reference book IMO is Paul DuBois' "MySQL" from New Riders. It even has a chapter devoted to using MySQL with PHP.
Caveat: do not expect to "learn databases" from any PHP reference. Database concepts, the SQL language, and the peculiarities (features, functions, syntax) of your DBMS are all big, important topics requiring a dedicated text of their own.
My recommendations: The PHP.net manual, plus any online or printed PHP tutorial of your choice. If you're planning to work with databases, add any standard intro to database concepts and SQL, plus the manual for your chosen DBMS.
Good luck!
-- CC
attached mail follows:
Zona is right, if you avoid the manual you will experience many problems.
Never avoid the documentation
----- Original Message -----
From: "CC Zona" <cczona
nospam.invalid>
To: <php-general
lists.php.net>
Sent: Sunday, July 15, 2001 5:06 PM
Subject: [PHP] Re: I want to learn this!
> In article <20010715202446.14360.qmail
pb1.pair.com>,
> minardi
aon.at (Minardi Boy) wrote:
>
> > I've downloaded the manual at
> > php.net but this wasn't very satisfying as I really don't like reading
lots
> > of complicated stuff on the screen of my laptop.
>
> Then print it. No kidding. I'm all for conserving paper, but this is no
> waste. The PHP manual--*with annotations*--is a very good introduction to
> PHP. IMO, far too many people try to get by w/o reading the manual, then
> end up spending hours or days struggling with something that would have
> taken them seconds or minutes if they'd read the manual through.
>
> A printout gives you get the best of both worlds: scribble notes all over
> the printout, while doing copy/pastes of the code snippets of the user
> annotations from the online version.
>
> > Are there any books you guys/gals could recommend? Are there (non
> > university/school) classes (satisfactory)?
>
> Julie Meloni has two good intro-level books. Many people seem to like the
> Wrox book as well. PHP.net has a list of other books (I believe there's a
> link from <http://php.net/support.php>). Pick whichever one you're most
> comfortable with.
>
> As to courses, any generalized intro-to-programming should be helpful for
> understanding concepts & terminology common to PHP and every other
> programming language.
>
> You mention an interest in databases. If you're using MySQL (which you
> should, at least while you're learning, since virtually every PHP tutorial
> for databases uses MySQL as its DBMS), the essential MySQL
> tutorial/reference book IMO is Paul DuBois' "MySQL" from New Riders. It
> even has a chapter devoted to using MySQL with PHP.
>
> Caveat: do not expect to "learn databases" from any PHP reference.
> Database concepts, the SQL language, and the peculiarities (features,
> functions, syntax) of your DBMS are all big, important topics requiring a
> dedicated text of their own.
>
> My recommendations:
> The PHP.net manual, plus any online or printed PHP tutorial of your
choice.
> If you're planning to work with databases, add any standard intro to
> database concepts and SQL, plus the manual for your chosen DBMS.
>
> Good luck!
>
> --
> CC
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
If you're running Windows, try the .chm (windows helpfile?) version of the manual -- IMHO it's much easier to navigate then the HTML version. I find it indispensable.
Aral :)
______________________________
(aral
kismia.com)
New Media Producer, Kismia, Inc.
(aral
american.edu)
Adj. Prof., American University
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
attached mail follows:
on 7/15/01 4:39 PM, Minardi boy at minardi
aon.at wrote:
> Are there any books you guys/gals could recommend? Are there (non > university/school) classes (satisfactory)?
Try: the Oreilly PHP pocket reference. It shows you how to make forms.
Also "MySQL" from the New Riders has a good chapter on PHP and mySQL
www.webmonkey.com has some good tutorials.
hope this helps!
-- susanfuturebird.com http://futurebird.diaryland.com
attached mail follows:
Try looking under "Filesystem" functions in the manual.
----- Original Message -----
From: "sunny AT wde" <sandeep_wde
yahoo.com>
To: "php" <php-general
lists.php.net>
Sent: Sunday, July 15, 2001 1:27 PM
Subject: [PHP] how can i creat a file and write a string to it!
> i've been looking for an adequate answer all morning in the archives,
> but can't find one, neithr can i understand the manual.
>
> all i want to do is for php to take the strong sent to it through a
> form, and create a new file with a name "2.html" for example, and
> write the string to it.
>
> how can i quickly do this please?
>
> i got this so far but that gives me some filehandler problem. i'm
> running off a unix system btw.
>
> $lastid = mysql_insert_id() ;
> $root = "/home/articles/";
> $file = $root . $lastid . ".html";
>
> fwrite($file, $articletext);
>
> tia!!
>
> /sunny
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free
yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free
yahoo.ie address at http://mail.yahoo.ie
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
how can i populate an dropdown box useing php & postgresql. Thanks in advance
attached mail follows:
Hi Michael! On Sun, 15 Jul 2001, Michael Thomas wrote:
> > how can i populate an dropdown box useing php & postgresql. > Thanks in advance > if you tell me how you tried by yourself first, I'll help you further ;)
it's trivial with Javascript, but if you don't want to use that it's still doable.
-- teodor
attached mail follows:
___________________________________________________________________ Consigue tu e-mail gratuito TERRA.COM.CO Haz click en http://www1.terra.com.co/correo
attached mail follows:
Hi...
I have this issue that is killing me. I installed PHP 4.0.4 with Solaris 8 and Apache. I want to use LDAP connecting to a server in the net (not the same server where i'm working on) And i configure PHP with:
configure --with-apxs=/usr/apache/bin/apxs --with-pgsql=/usr/local/pgsql --with-ldap
then 'make install' and everything works fine until i try:
/usr/apache/bin/apachectl start
then i have this &
!% message:
Syntax error on line 236 of /etc/apache/httpd.conf: Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file /usr/apdap_unbind_s: referenced symbol not found /usr/apache/bin/apachectl start: httpd could not be started
Do you know what can be wrong? There's a lack in the documentation regarding "PHP and LDAP" so i'm not able to find any info. Any advice from you will be Really appreciated. Thanx!
Andrey Bayona.
___________________________________________________________________ Consigue tu e-mail gratuito TERRA.COM.CO Haz click en http://www1.terra.com.co/correo
attached mail follows:
I'm modifying some code for ampache (ampache.kveton.com) and have run into a snag that I'm not sure I understand completely.
Part of the code produces a URL similar to the following:
http://myhost/playlist.pls?song=100&song=101&song=102
and $song then gets passed to this function:
function get_song_path_from_id ( $song ) { GLOBAL $dbh, $db_name;
$songs = ''; $count = 0;
if ( is_array( $song ) ) { while ( list($k,$v) = each($song) ) { //does some cool stuff } } else { //does some other stuff } return ($songs); }
So, am I correct in assuming that $song will never be considered an array? (basically, given the above code and URL, $song will always equal 102)
I'm new to PHP, and since I didn't write the original code, I'm not sure if this is a bug, or something that I just don't fully understand. Assuming it is a bug, can anyone offer some suggestions on how to take the URL and parse it out and input the values into an array called $song? (get_song_path_from_id() is used by several other parts of the code, so any modifications to that code would need to leave the rest of the functionality intact)
Thanks.
--kurt
P.S. If anyone is looking for a simple, easy-to-use (and set up) mp3 manager, I highly recommend ampache. It doesn't have a bunch of bells & whistles (which I don't want) -- it simply provides a simple, effective way to manage playlists and play your mp3 songs from anywhere.
attached mail follows:
I should also clarify that .pls is set up as a PHP extension and the page is being interpreted by the PHP engine.
--kurt
-----Original Message-----
From: Kurt Lieber [mailto:kurt
lieber.org]
Sent: Sunday, July 15, 2001 4:03 PM
To: php-general
lists.php.net
Subject: [PHP] converting multiple URL values for the same variable into
an array
I'm modifying some code for ampache (ampache.kveton.com) and have run into a snag that I'm not sure I understand completely.
Part of the code produces a URL similar to the following:
http://myhost/playlist.pls?song=100&song=101&song=102
and $song then gets passed to this function:
function get_song_path_from_id ( $song ) { GLOBAL $dbh, $db_name;
$songs = ''; $count = 0;
if ( is_array( $song ) ) { while ( list($k,$v) = each($song) ) { //does some cool stuff } } else { //does some other stuff } return ($songs); }
So, am I correct in assuming that $song will never be considered an array? (basically, given the above code and URL, $song will always equal 102)
I'm new to PHP, and since I didn't write the original code, I'm not sure if this is a bug, or something that I just don't fully understand. Assuming it is a bug, can anyone offer some suggestions on how to take the URL and parse it out and input the values into an array called $song? (get_song_path_from_id() is used by several other parts of the code, so any modifications to that code would need to leave the rest of the functionality intact)
Thanks.
--kurt
P.S. If anyone is looking for a simple, easy-to-use (and set up) mp3 manager, I highly recommend ampache. It doesn't have a bunch of bells & whistles (which I don't want) -- it simply provides a simple, effective way to manage playlists and play your mp3 songs from anywhere.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I've actually had an MS representative tell me not to use the IE6 beta.
What's that tell you?
----- Original Message -----
From: "Chris Cocuzzo" <cuzo
mediaone.net>
To: "PHP General List (E-mail)" <php-general
lists.php.net>
Sent: Sunday, July 15, 2001 12:08 PM
Subject: [PHP]OT I know, but WTF...
> hey-
>
> I know this is off topic, but I figured i'd ask to see if other people
were
> experiencing similar problems. I'm having trouble accessing web
sites/pages
> that are secure(https...obviously). I tried changing everything around in
IE
> 6, but so far nothing is working...any ideas?
>
> the error is the normal, annoying, page can't be found or dns error bull.
>
> chris
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
That the IE6 beta is a beta.
/* Chris Lambert, CTO - chris
whitecrown.net
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
----- Original Message -----
From: Chris Anderson <chrisderson
ameritech.net>
To: <cuzo
mediaone.net>; PHP General List (E-mail)
<php-general
lists.php.net>
Sent: Sunday, July 15, 2001 5:35 PM
Subject: Re: [PHP]OT I know, but WTF...
| I've actually had an MS representative tell me not to use the IE6 beta.
| What's that tell you?
| ----- Original Message -----
| From: "Chris Cocuzzo" <cuzo
mediaone.net>
| To: "PHP General List (E-mail)" <php-general
lists.php.net>
| Sent: Sunday, July 15, 2001 12:08 PM
| Subject: [PHP]OT I know, but WTF...
|
|
| > hey-
| >
| > I know this is off topic, but I figured i'd ask to see if other people
| were
| > experiencing similar problems. I'm having trouble accessing web
| sites/pages
| > that are secure(https...obviously). I tried changing everything around
in
| IE
| > 6, but so far nothing is working...any ideas?
| >
| > the error is the normal, annoying, page can't be found or dns error
bull.
| >
| > chris
| >
| >
| > --
| > PHP General Mailing List (http://www.php.net/)
| > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
| > For additional commands, e-mail: php-general-help
lists.php.net
| > To contact the list administrators, e-mail: php-list-admin
lists.php.net
| >
| >
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
| For additional commands, e-mail: php-general-help
lists.php.net
| To contact the list administrators, e-mail: php-list-admin
lists.php.net
|
|
|
attached mail follows:
: )
----- Original Message -----
From: "Chris Lambert - WhiteCrown Networks" <chris
whitecrown.net>
To: <php-general
lists.php.net>
Sent: Sunday, July 15, 2001 7:10 PM
Subject: Re: [PHP]OT I know, but WTF...
> That the IE6 beta is a beta.
>
> /* Chris Lambert, CTO - chris
whitecrown.net
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> ----- Original Message -----
> From: Chris Anderson <chrisderson
ameritech.net>
> To: <cuzo
mediaone.net>; PHP General List (E-mail)
> <php-general
lists.php.net>
> Sent: Sunday, July 15, 2001 5:35 PM
> Subject: Re: [PHP]OT I know, but WTF...
>
>
> | I've actually had an MS representative tell me not to use the IE6 beta.
> | What's that tell you?
> | ----- Original Message -----
> | From: "Chris Cocuzzo" <cuzo
mediaone.net>
> | To: "PHP General List (E-mail)" <php-general
lists.php.net>
> | Sent: Sunday, July 15, 2001 12:08 PM
> | Subject: [PHP]OT I know, but WTF...
> |
> |
> | > hey-
> | >
> | > I know this is off topic, but I figured i'd ask to see if other people
> | were
> | > experiencing similar problems. I'm having trouble accessing web
> | sites/pages
> | > that are secure(https...obviously). I tried changing everything around
> in
> | IE
> | > 6, but so far nothing is working...any ideas?
> | >
> | > the error is the normal, annoying, page can't be found or dns error
> bull.
> | >
> | > chris
> | >
> | >
> | > --
> | > PHP General Mailing List (http://www.php.net/)
> | > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | > For additional commands, e-mail: php-general-help
lists.php.net
> | > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> | >
> | >
> |
> |
> | --
> | PHP General Mailing List (http://www.php.net/)
> | To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | For additional commands, e-mail: php-general-help
lists.php.net
> | To contact the list administrators, e-mail: php-list-admin
lists.php.net
> |
> |
> |
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
alright.
i reinstalled the more stable IE5, however I'm still experiencing problems accessing https sites. any ideas(I went through all the settings too, nothing seems to work).
chris
-----Original Message-----
From: Chris Anderson [mailto:chrisderson
ameritech.net]
Sent: Sunday, July 15, 2001 10:38 PM
To: Chris Lambert - WhiteCrown Networks; php-general
lists.php.net
Subject: Re: [PHP]OT I know, but WTF...
: )
----- Original Message -----
From: "Chris Lambert - WhiteCrown Networks" <chris
whitecrown.net>
To: <php-general
lists.php.net>
Sent: Sunday, July 15, 2001 7:10 PM
Subject: Re: [PHP]OT I know, but WTF...
> That the IE6 beta is a beta.
>
> /* Chris Lambert, CTO - chris
whitecrown.net
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> ----- Original Message -----
> From: Chris Anderson <chrisderson
ameritech.net>
> To: <cuzo
mediaone.net>; PHP General List (E-mail)
> <php-general
lists.php.net>
> Sent: Sunday, July 15, 2001 5:35 PM
> Subject: Re: [PHP]OT I know, but WTF...
>
>
> | I've actually had an MS representative tell me not to use the IE6 beta.
> | What's that tell you?
> | ----- Original Message -----
> | From: "Chris Cocuzzo" <cuzo
mediaone.net>
> | To: "PHP General List (E-mail)" <php-general
lists.php.net>
> | Sent: Sunday, July 15, 2001 12:08 PM
> | Subject: [PHP]OT I know, but WTF...
> |
> |
> | > hey-
> | >
> | > I know this is off topic, but I figured i'd ask to see if other people
> | were
> | > experiencing similar problems. I'm having trouble accessing web
> | sites/pages
> | > that are secure(https...obviously). I tried changing everything around
> in
> | IE
> | > 6, but so far nothing is working...any ideas?
> | >
> | > the error is the normal, annoying, page can't be found or dns error
> bull.
> | >
> | > chris
> | >
> | >
> | > --
> | > PHP General Mailing List (http://www.php.net/)
> | > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | > For additional commands, e-mail: php-general-help
lists.php.net
> | > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> | >
> | >
> |
> |
> | --
> | PHP General Mailing List (http://www.php.net/)
> | To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | For additional commands, e-mail: php-general-help
lists.php.net
> | To contact the list administrators, e-mail: php-list-admin
lists.php.net
> |
> |
> |
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have an idea. Let's keep this thread off the PHP list. One OT email is bad enough -- an entire thread is simply too much.
-----Original Message-----
From: Chris Cocuzzo [mailto:cuzo
mediaone.net]
Sent: Sunday, July 15, 2001 8:10 PM
To: PHP General List (E-mail)
Subject: RE: [PHP]OT I know, but WTF...
alright.
i reinstalled the more stable IE5, however I'm still experiencing problems accessing https sites. any ideas(I went through all the settings too, nothing seems to work).
chris
-----Original Message-----
From: Chris Anderson [mailto:chrisderson
ameritech.net]
Sent: Sunday, July 15, 2001 10:38 PM
To: Chris Lambert - WhiteCrown Networks; php-general
lists.php.net
Subject: Re: [PHP]OT I know, but WTF...
: )
----- Original Message -----
From: "Chris Lambert - WhiteCrown Networks" <chris
whitecrown.net>
To: <php-general
lists.php.net>
Sent: Sunday, July 15, 2001 7:10 PM
Subject: Re: [PHP]OT I know, but WTF...
> That the IE6 beta is a beta.
>
> /* Chris Lambert, CTO - chris
whitecrown.net
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> ----- Original Message -----
> From: Chris Anderson <chrisderson
ameritech.net>
> To: <cuzo
mediaone.net>; PHP General List (E-mail)
> <php-general
lists.php.net>
> Sent: Sunday, July 15, 2001 5:35 PM
> Subject: Re: [PHP]OT I know, but WTF...
>
>
> | I've actually had an MS representative tell me not to use the IE6
> | beta. What's that tell you?
> | ----- Original Message -----
> | From: "Chris Cocuzzo" <cuzo
mediaone.net>
> | To: "PHP General List (E-mail)" <php-general
lists.php.net>
> | Sent: Sunday, July 15, 2001 12:08 PM
> | Subject: [PHP]OT I know, but WTF...
> |
> |
> | > hey-
> | >
> | > I know this is off topic, but I figured i'd ask to see if other
> | > people
> | were
> | > experiencing similar problems. I'm having trouble accessing web
> | sites/pages
> | > that are secure(https...obviously). I tried changing everything
> | > around
> in
> | IE
> | > 6, but so far nothing is working...any ideas?
> | >
> | > the error is the normal, annoying, page can't be found or dns
> | > error
> bull.
> | >
> | > chris
> | >
> | >
> | > --
> | > PHP General Mailing List (http://www.php.net/)
> | > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | > For additional commands, e-mail: php-general-help
lists.php.net To
> | > contact the list administrators, e-mail:
php-list-admin
lists.php.net
> | >
> | >
> |
> |
> | --
> | PHP General Mailing List (http://www.php.net/)
> | To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | For additional commands, e-mail: php-general-help
lists.php.net To
> | contact the list administrators, e-mail:
> | php-list-admin
lists.php.net
> |
> |
> |
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net To
> contact the list administrators, e-mail: php-list-admin
lists.php.net
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I am working in a virtual server environment on FreeBSD with PHP4/apache (I don't have root access to the server).
I would like to install fdf support. The install instructions that came with the package from Adobe are minimal.
From reading the docs on php.net I understood that I could modify my apache httpd.conf with something like this:
php_value extension_dir /usr/home/serverone/usr/local/lib/mylib php_value extension libFdfTk.so
So far that isn't working.
It looks like the two relevant files I need are: FdfTk.h libFdfTk.so
I put both of these files in the directory I referenced above: /usr/home/serverone/usr/local/lib/mylib
I am not clear if I need to put the FdfTk.h in a specific location and how I need to reference that.
Any suggestions for how to proceed would be appreciated!
Regards, Michael
attached mail follows:
FOR IMMEDIATE RELEASE
Exenevex, SA ( http://www.exenevex.com ) announces release of MySQLConnect for 4D 1.0 demo version
Paris, France - Monday, July 16th, 2001: Exenevex, SA, today announced the release of demo version of MySQLConnect for 4D 1.0 (MacOS & Windows). MySQLConnect for 4D is a 4th Dimension plugin which provides connection routines between 4th Dimension-4D Server-4D Runtime-4D Runtime Classic- Engined 4D applications and MySQL Databases Servers.
WHAT'S MYSQL ?
MySQL is a very popular open source RDBMS that comes with 70% of web hosting plans over the world. MySQL runs on several systems like Linux, FreeBSD, Windows NT/2000, MacOS X, Mac OS X Server and more....MySQL is mainly used with Apache/Php to build dynamic web sites for eBusiness solutions. For more informations about MySQL, please visit : http://www.mysql.com For more informations about Apache, please visit : http://www.apache.org For more informations about PHP, please visit : http://www.php.net
FEATURES
Using MySQLConnect for 4D, 4D developers have a set of 4D routines to manage :
- Connections to/Disconnection from MySQL Databases Servers - Structure SQL queries (Create/Alter/Drop Databases & Tables) - Data SQL queries (Insert/Update/Delete data) - Administration SQL queries (Grant/Revoke ...) - Support for 4D datatypes including BLOB & PICTURE data types - Internal mecanisms to manage simple quotes used in SQL queries
Using MySQLConnect for 4D, 4D developers can create well designed systems to manage, exchange, synchronize 4D Applications with eBusiness web hosted solutions, or simply use 4D as a GUI generator for distant MySQL systems.
MySQLConnect for 4D 1.0 doesn't use any external librairy to work with MySQL Databases Servers and returns real good performances.
MySQLConnect for 4D 1.0 is the first release in a suite of data management oriented 4D Plugins that will be released soon by Exenevex, SA.
PRICING & AVAILABILITY
MySQLConnect for 4D 1.0 MacOS & MySQLConnect for 4D 1.0 Windows will be available to orders very soon directly from our secured store area at http://www.4ee4.com. Orders will be accepted using credit cards in USD and Euro. Pricing and licencing issues will be exposed at the same time.
DOWNLOAD MACOS & WIN DEMO VERSIONS
You can immediatly download demo versions of MySQLConnect for 4D (MacOS & Windows) with documentation at http://www.exenevex.com/dev/demoform.html
For more informations, contact : sales
exenevex.com
ABOUT EXENEVEX, SA.
Based in Paris, France, Exenevex SA was founded in 1998 by Stéphane Pinel to provide development and consulting services for MacOS, MacOS X, Windows & Unix platforms. Specifically, Exenevex SA develops softwares and development tools around different RDMS.
For more informations about Exenevex SA, please contact : info
exenevex.com
attached mail follows:
Hi all,
I know I'm doing something dumb but I keep missing it. What I am trying to do is parse through some text and pick up starting at each "<font" and ending with each </a>. Starting at "<a href" and ending with "</a>" works fine. I thought I read the eregi docu thoroughly but maybe not ??
Any help would be appreciated! Andre
//get a line $line = fgets($page, 1024); //loop to get all news page links /* while(eregi("<a.*href=\"(.+)\".*>.*<\/a>", $line, $match)) */ while(eregi("<font.*<\/a>", $line, $match)) { //print out the news link print("<LI>"); $link = ereg_replace("HREF=\"", "HREF=\"http://that domain . com/", $match[0]); print($link); print("<BR>\n");
attached mail follows:
If you have a shell account on the box, or if you have a similar box yourself, you can build the curl extension as a standalone curl.so and simply dl() it from your script.
eg.
./configure <your regular configure flags> --with-curl=shared make
You should then see modules/curl.so which you can dl()
You can get your server's regular configure flags from a phpinfo() call on it.
-Rasmus
On Sun, 15 Jul 2001, Daniel Baldoni wrote:
> G'day folks, > > We've got a web-application ready to install and everything looks okay except > that the client has chosen Hosting4all as their web-hoster. They > (Hosting4all) don't have a version of PHP linked with cURL and we need to > process credit card information. Again, the client has chosen a payment > processor and, as expected, secure-HTTP is required. > > All fair enough - the payment script has been written and works on our > servers. Of course, it'll fail dismally on Hosting4All's servers. > > My question is... > > Is anybody on this list hosting an e-commerce site with Hosting4All? > Or, has anybody had any experience with the "Miva Engine" which > Hosting4All provide "free of charge" (i.e. as part of the > subscription fee)? > > Any help would be much appreciated. Thanks in advance. > > Ciao. > >
attached mail follows:
> Warning: > fopen("/home/tgmalone/sessn-log/0bbaf33ab1c1f9d714e2244459979ec7.txt","a") - > Permission denied in /home/tgmalone/public_html/index.php on line 17 > > The problem is obvious, but I've been searching, searching and wracking my > inadequate brain for a solution and can't find one - can anyone help me find > a solution/workaround?
chmod a+w /home/tgmalone/sessn-log/
attached mail follows:
Hi all,
This might be a dumb question but can anybody tell me why on earth this doesn't work ?
session_start() $logged_in = session_is_registered("auth");
if($logged_in != true) {
if(!(pam_auth($usernamelogin,$pass,&$error))) { // send an error if it doens't login in } else { session_register($username); session_register($auth); $HTTP_SESSION_VARS["username"] = $usernamelogin; $HTTP_SESSION_VARS["auth"] = 1;
}
$user = $HTTP_SESSION_VARS["username"]; start_page("$user's home page");
}
Now the problem is, that although it auth's ok, and username and auth seem to be set, anytime i try to access $HTTP_SESSION_VARS["username"] it is blank.
Also if i try to use $HTTP_SESSION_VARS["username"] directly in a string i get and error about expecting one of a variety of string types.
Sorry if this is a really dumb question.
Jason
attached mail follows:
Hi all,
This might be a dumb question but can anybody tell me why on earth this doesn't work ?
session_start() $logged_in = session_is_registered("auth");
if($logged_in != true) {
if(!(pam_auth($usernamelogin,$pass,&$error))) { // send an error if it doens't login in } else { session_register($username); session_register($auth); $HTTP_SESSION_VARS["username"] = $usernamelogin; $HTTP_SESSION_VARS["auth"] = 1;
}
$user = $HTTP_SESSION_VARS["username"]; start_page("$user's home page");
}
Now the problem is, that although it auth's ok, and username and auth seem to be set, anytime i try to access $HTTP_SESSION_VARS["username"] it is blank.
Also if i try to use $HTTP_SESSION_VARS["username"] directly in a string i get and error about expecting one of a variety of string types.
Sorry if this is a really dumb question.
Jason
attached mail follows:
try just echoing $usernamelogin and see if you can get an out put from that ... it could be because $usernamelogin is not getting set
-----Original Message-----
From: Jason Rennie [mailto:jwrennie
bigpond.com]
Sent: Monday, July 16, 2001 6:14 PM
To: php-general
lists.php.net
Subject: [PHP] Session questions
Hi all,
This might be a dumb question but can anybody tell me why on earth this
doesn't work ?
session_start()
$logged_in = session_is_registered("auth");
if($logged_in != true)
{
if(!(pam_auth($usernamelogin,$pass,&$error)))
{
// send an error if it doens't login in
}
else
{
session_register($username);
session_register($auth);
$HTTP_SESSION_VARS["username"] = $usernamelogin;
$HTTP_SESSION_VARS["auth"] = 1;
}
$user = $HTTP_SESSION_VARS["username"];
start_page("$user's home page");
}
Now the problem is, that although it auth's ok, and username and auth seem
to be set, anytime i try to access $HTTP_SESSION_VARS["username"] it is
blank.
Also if i try to use $HTTP_SESSION_VARS["username"] directly in a string i
get and error about expecting one of a variety of string types.
Sorry if this is a really dumb question.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
For additional commands, e-mail: php-general-help
lists.php.net
To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
word =$ba --------------------------------- ";echo "$c $d";$c = eregi_replace( "$a", "$a", $ba );echo "$c ";?>This is the script that I need to change the color of word "bank" to red, but when I change it the word "BanK" become "bank", how can I keep the word still in "BanK"? "?
--------------------------------- Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
attached mail follows:
Hello,
We are a team of experienced programmers with skills of PHP/Perl/JAVA/C++/VB/Servlet/JSP/ASP/PowerBuilder/XML/ DHTML/WAP & WML with database of MySQL/MS Access/ MS SQL/ORACLE/DB2/Sybase/Informix. We are experienced in programming for various E-Commerce web site and standalone application, configuring, installing and debugging troubled scripts. All will be done in short time with quality guaranteed. Price is negotiable. We are interested in various kind projects,contracts and cooperation.
Pls contact davidnet800
yahoo.com if you are
interested.
Thanks, David Some of the applications of our skills: Web Shop (Shopping cart, online catalogue) Web Search Engine Auctions Banner Exchange Calendars Chat Classified Advertisement Click Tracking Communities Counters Database Tools Discussion Boards & Forums Mailing List Guestbooks News Publishing Polls and Voting Postcards Security Systems User Authentication Web Traffic Analysis
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
attached mail follows:
hello,
teo
gecadsoftware.com wrote:
> Hi Nuno! > On Sat, 14 Jul 2001, Nuno Silva wrote: > > >>hi there! >> >>the operators you want are ~ and ~* and !~ and !~*. >>select name from table where name ~* 'test'; >> > > any idea of something like this in MySQL? I was used to pg and I have no idea > of something equivalent in My. >
these operators do regexp matches in postgresql. to do this in mysql you have the REGEXP operator: http://www.mysql.com/doc/R/e/Regexp.html
Hope it helps, Nuno Silva
>>to see all operators availlable type \do in psql's interactive mode ;) >> >>Regards, >>Nuno Silva >> >>Derek wrote: >> >> > -- teodor > >
attached mail follows:
Greetings !
I have a table in mysql:
id item 1 Apple 2 Orange 3 Banana
I displayed all the items in HTML with PHP
<form> while ($row=mysql_fetch_array($query)) { $item=$row["item"]; echo " <table> <tr><td><input type=text value=$item name=item> </td> </tr> </table>"; }; </form>
Now if I want to capture Banana or any other particular item from the displayed HTML form, and pass the variable to the next form, how can I do it?
Looking forward to hearing from you all.
Warm Regards, DT
attached mail follows:
On my site I want people to be able to type HTML into a form. The function strip_tags(); is great but if a person types:
<a href="http://www.someplace.com>My site!</a>
(note the omitted " )
it screws up the whole page. Is there a function script some place that will stop/fix these kind of errors?
Also, is there a function that will check if links in a swatch of text are any good?
Thanks!
Susan
-- susanfuturebird.com http://futurebird.diaryland.com
attached mail follows:
on 7/16/01 1:47 AM, Ray Dow at ray
massive.com.au wrote:
> Try a different format that is also easier for the users to type. For > example; > <a http://somesite.com>Click me!</a> and then convert that string > OR > [link:http://somesite.com]Click me![link] > > NEVER let users type HTML straight into a form box, its way too easy to > screw up your entire site. > > (Just for starters i could use <iframe> to embed anything into the page, > document.location is another great example of why you should use a different > system) >
iframe removed by strip_tags(); isn't it?
-- susanfuturebird.com http://futurebird.diaryland.com
attached mail follows:
Everything removed by strip_tags(), including <a href="somelink>click me</a> (you original example)
See the problem?
> -----Original Message-----
> From: zerosumzero
yahoo.com [mailto:zerosumzero
yahoo.com]
> Sent: Monday, 16 July 1979 3:46 PM
> To: Ray Dow; php-general
lists.php.net
> Subject: Re: html in my form? bad things! help help help!
>
>
> on 7/16/01 1:47 AM, Ray Dow at ray
massive.com.au wrote:
>
> > Try a different format that is also easier for the users to
> type. For
> > example; <a http://somesite.com>Click me!</a> and then convert that
> > string OR
> > [link:http://somesite.com]Click me![link]
> >
> > NEVER let users type HTML straight into a form box, its way
> too easy
> > to screw up your entire site.
> >
> > (Just for starters i could use <iframe> to embed anything into the
> > page, document.location is another great example of why you
> should use
> > a different
> > system)
> >
>
>
> iframe removed by strip_tags(); isn't it?
>
>
> --
> susan
futurebird.com
> http://futurebird.diaryland.com
>
>
attached mail follows:
on 7/16/01 2:03 AM, Ray Dow at ray
massive.com.au wrote:
> Everything removed by strip_tags(), including <a href="somelink>click me</a> > (you original example) > > See the problem?
Everything isn't removed if you set it up like this:
strip_tags($string,"<a>,<i>,<b>")
that part is working fine, it's tags with missing quotes that have me worried, like this:
<a href="http://www.someplace.com>My site!</a>
-- susanfuturebird.com http://futurebird.diaryland.com
attached mail follows:
Once you open up ANY HTML tag to the public you open a huge can of worms and trouble, like the following for example
<a href="http://php.net" onmousemove="javascript:alert('Blar Blar Blar');">Click me!</a>
My javascript is not great (I could not think of anything more damaging) but its pretty clear what the possibilities are.
Strip all tags and use a custom system is my advice
> -----Original Message-----
> From: zerosumzero
yahoo.com [mailto:zerosumzero
yahoo.com]
> Sent: Monday, 16 July 1979 3:59 PM
> To: Ray Dow; php-general
lists.php.net
> Subject: Re: [PHP] RE: html in my form? bad things! help help help!
>
>
> on 7/16/01 2:03 AM, Ray Dow at ray
massive.com.au wrote:
>
> > Everything removed by strip_tags(), including <a
> href="somelink>click
> > me</a> (you original example)
> >
> > See the problem?
>
> Everything isn't removed if you set it up like this:
>
>
> strip_tags($string,"<a>,<i>,<b>")
>
>
> that part is working fine, it's tags with missing quotes that
> have me worried, like this:
>
> <a href="http://www.someplace.com>My site!</a>
>
>
>
> --
> susan
futurebird.com
> http://futurebird.diaryland.com
>
>
attached mail follows:
('binary' encoding is not supported, stored as-is) Hi all,
I've been searching all over for a solution to get pspell going... I managed to get 4.06 to build with pspell support enabled, first I got an error about no dictionaries... so I installed aspell - since I read there is a dependancy of some kind between them, now I have a new problem.
When I execute the example from pspell_suggest (at http://www.php.net/manual/en/function.pspell-suggest.php)
I get the following output:
Warning: PSPELL couldn't open the dictionary. reason: Unable to load the "aspell" module. in /var/www/spell.php on line 2
Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 4
Warning: 0 is not an PSPELL result index in /var/www/spell.php on line 5 Possible spelling:
My system specs are: - GNU/Debian 2.2 2.4+ kernel (and a bunch of unstable packages needed to build 4.06 from unstable) - libpspell-dev 0.11.2-2.3 - libpspell2 0.11.2-2.3 - ispell 3.1.20-12 - libaspell8 0.32.6-3.4 - aspell 0.32.6-3.4 - libaspell-dev 0.29.1-1 - php4 4.0.6-3
I'm not sure what else to try... Any help would be greatly appricated.
-Garth aka Ironstorm (PHPWidgets http://www.northern.ca/projects/phpwidgets/)
--- http://www.northern.ca
attached mail follows:
Hi James,
I past that stage but stuck with messages that are MultiPart/Mixed. I need to display the attachments and give the viewer to download or view if possible.
Adrian
On Sun, 15 Jul 2001, James Tan wrote:
> hi prachait saxena,
>
> I'm trying to build the same too...
>
> u can use the socket function to manupulate pop protocol at port 110
> refer to the rfc link in the documentation for pop :)
>
> hope it helps...
>
> regards,
>
> James
>
> Prachait Saxena wrote:
>
> > Hi,
> >
> > I want to check mail of a pop account. without using "imap".
> >
> > Can any one know how to do that.
> >
> > kindly send it in details.
> > bye
> >
> > --
> >
> > Prachait Saxena
> > Offical ( prachait
nagpur.dot.net.in )
> > Personal ( prachait
rediffmail.com )
>
>
attached mail follows:
Hi James,
Thanks for your mail. But I think the problem like somewhere else.
I have the following: echo $buffer; There result : Content-Type: multipart/mixed;
This is wrong. It should be Content-Type: multipart/mixed; boundary="------------B42DA66C4EC07C9B572A58FC"
I don't know why it is not reading the whole string. It seems to treat the *boundary* part as another line. I read somewhere the perl compatiable regexp can read a multiply line treating CRLF as part of the line.
Any pointers
Adrian
On Sun, 15 Jul 2001, James Tan wrote:
> hi,, > > u could try using explode function > eg: > > arrayresult = explode(string, separator); > > cont = explode(thestring, "\""); > > echo cont[0] ; > // result as > Content-Type: multipart/mixed; > boundary= > echo cont[1]; > //result as > ------------B42DA66C4EC07C9B572A58FC > echo cont[2]; > // array index 2 will be nothing.. null or "" > > hope it works.. > regards, > > James > > Adrian D'Costa wrote: > > > Hi, > > > > I am trying to capture the Header from a mail for my webmail using php and > > pop3. The header is something like this: > > Content-Type: multipart/mixed; > > boundary="------------B42DA66C4EC07C9B572A58FC" > > > > When I use preg_split("/[\d;]*/", $buffer), I get > > Content-Type: multipart/mixed; > > > > What I want is to return the whole line split by the ";". I usually try > > to avoid regexp (too lazy) but now I want to use it. The final result I > > would need is: ------------B42DA66C4EC07C9B572A58FC so that I can search > > in the body of the message for the rest of the parts. > > > > Any pointers would be helpful. > > > > Adrian > >
attached mail follows:
On Sun, 15 Jul 2001 16:10, Justin French wrote: > Hi, > > I have a client who wishes to publish some catalogues to CD Rom. Of > course they can't be placed onto a CD using PHP code (because it would > require the CD user to have PHP installed!!), but PHP/MySQL is > definately the best way to build the content, since the same data is > being used for online content as well. > > So I guess my question is, what;s the best way to creat a static site > from dynamic content. If it was a small site, i'd just access every > page, view the source, copy it, and save to file, but the catalogues > may get up over 1000 pages!! > > It also occurs to me that this would be helpfull in building dynamic > sites monthly, but publishing a static site to the web, which would > have better luck with search engines, and maybe even with server load / > caching. > > > I could make a script which builds / wrote HTML files to disc, no > problem, but if the pages already exist dynamically, I thought there > might be a way to write the HTML source (same as sent to the browser) > to a HTML file.... > > > Thanks > > Justin French
Scratching around in my multiple mailbox folders, I found these mesages on the topic. Hopefully there is some still useful info there.
##############
Re: [PHP] PHP site to CDRom
Date: Wed, 18 Oct 2000 10:57:53 -0700
From: "Robert V. Zwink" <rzwink
microcenter.com>
To: <php-general
lists.php.net>, "Andrea Resmini" <a.resmini
ogcs.com>
There was a message posted today for a script viewer that is probably what you guys are looking for. It can be found here: http://www.angorasoftware.com/scriptviewer.html
This windows application is designed to show a parsed script file without the need of a web server. This may be useful for CD-ROM distribution, Stand-Alone materials, and other uses. The application starts the php executable with a file parameter, showing the result in a HTML format.
Hope this helps.
Robert V. Zwink
##############
Re: [PHP] PHP site to CDRom
Date: Wed, 18 Oct 2000 16:53:06 +0200
From: Andrea Resmini <a.resmini
ogcs.com>
To: php-general
lists.php.net
Phil Driscoll wrote: > > I do this kind of job (on windows) with some software called WinHTTrack > http://httrack.free.fr/ > It sorts everything out for you.
Yowza!
Thanks Phil. I went to the site above and found out that they also have a new site at www.httrack.com, and that the thing is also available for Linux and Solaris. I downloaded and simply launched it (as usual, you have your three-screens-load of switches) and it correctly parsed and saved the files in a safe format (index.html and then indexXXXX.html, where XXXX is an alphanumberic combo). Works great: anybody looking out for a quick way to move some PHP site to a CDRom should go take a look.
Thanks again ##############
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIAOn a radiator repair shop: Best place to take a leak.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]