[PHP] Re: Variables aren't being passed to php page
Jason Wong wrote: > On Monday 15 July 2002 03:55, Tim Luoma wrote: > >>Jason Wong wrote: >> >>>This list gets at least one question a day on this subject ... >> >>And there will be a lot more as people scan the web for example scripts >>and find ones that assume 'register_globals' is set to on. > > Questions coming from those sources are partly understandable. It was confusing to me to wonder why from one day to the next the same scripts stopped working, until I checked the PHP version. > What I was referring to was the particular case of "I've got an application > that was working perfectly using php X.XX, then I upgraded to php Y.YY and > now it doesn't work anymore". > > It is those people who should look before they leap and read before they > upgrade. Quite right. TjL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysql error or PHP
Hi all, has anybody ever seen this? And knows what it means? thx. You have an error in your SQL syntax near 's self-supporting ribbed form was probably not strong enough to render the desig' at line 1 regards Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -
Re: [PHP] mysql error or PHP
try add_slashes($string) before inserting into the database, or turn on magic quotes in php.ini justin french on 15/07/02 5:57 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote: > Hi all, > > > has anybody ever seen this? And knows what it means? > thx. > > You have an error in your SQL syntax near 's self-supporting ribbed form was > probably not strong enough to render the desig' at line 1 > > > regards Wilbert > > > - > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel 070 4450855 > fax 070 4450852 > http://www.pdd.nl > [EMAIL PROTECTED] > - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] select multiple within for-each
This works OK with creating buttons but is not what I want. POST/INPUT myform list.php post submit insert ***This is what I would like to do but it does _not_ work and is wrong.*** POST/SELECT MULTIPLE myform list.php post insert So how do I get a select-multiple form to work this way? -- Bill Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 15 Jul 2002 08:52:25 -0000 Issue 1465
php-general Digest 15 Jul 2002 08:52:25 - Issue 1465 Topics (messages 107636 through 107680): mysql LIMIT 107636 by: Alexander Ross 107638 by: Robert Cummings 107640 by: David Freeman Re: REminder APllication 107637 by: The Doctor retrieving random data from mysql database 107639 by: mm fernandez 107641 by: David Freeman 107642 by: Chris Knipe 107667 by: Anas Mughal Re: Can not delete files that were uploaded 107643 by: Richard Lynch Question 1 107644 by: Chris Kay 107669 by: David Robley 107672 by: David Robley 107673 by: David Robley Training / Courses in Australia 107645 by: Chris Kay Re: PHP and geographic maps 107646 by: Martin Towell Re: Newbie Date question 107647 by: Jason Morehouse DOM XML : experimental ? 107648 by: Mario de Mello Bittencourt Neto Re: Does not work 107649 by: Alberto Serra 107651 by: Justin French 107658 by: Saci 107660 by: Peter 107662 by: Justin French 107664 by: Saci 107665 by: Justin French Re: (Exact) Difference between -> and :: 107650 by: Alberto Serra Re: compiling with mysql 107652 by: David Robley IF inside LOOP? 107653 by: César Aracena 107654 by: Martin Towell Re: IF inside LOOP? <-- SOLVED 107655 by: César Aracena two way encryption 107656 by: Justin French 107657 by: Joe Conway 107661 by: Justin French 107663 by: Joe Conway 107666 by: James Cox 107668 by: Justin French 107670 by: Jason Wong ignore_user_abort question 107659 by: Jose Arce Re: Variables aren't being passed to php page 107671 by: Jason Wong 107677 by: Tim Luoma BREAK into the DB 107674 by: César Aracena 107675 by: Martin Towell Re: BREAK into the DB <-- SOLVED 107676 by: César Aracena mysql error or PHP 107678 by: Wilbert Enserink 107679 by: Justin French select multiple within for-each 107680 by: William S. 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 --- can I use limit to show the 2nd record on without knowing how many more records there might be? also, what happens if I set the limit in a mysql statement (LIMIT 5,10), but there are only 3 results? 7 results? --- End Message --- --- Begin Message --- Alexander Ross wrote: > > can I use limit to show the 2nd record on without knowing how many more > records there might be? > > also, what happens if I set the limit in a mysql statement (LIMIT 5,10), but > there are only 3 results? 7 results? This looks like a question that could be answered with a 10 second test query! Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phone : (613) 731-4046 x.109 | :--: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `--' --- End Message --- --- Begin Message --- > can I use limit to show the 2nd record on without knowing > how many more records there might be? > > also, what happens if I set the limit in a mysql statement > (LIMIT 5,10), but there are only 3 results? 7 results? My answer would tend to be that you should try it for yourself and see... But anyway, without having tried it myself recently, the first question is that you could use LIMIT (2, 1) and you'd probably get what you're trying for. As for the second question, you'll only get what records there are. If your limit excludes all possible results then you'll get no result (ie. If you use LIMIT(5, 10) and you've only got 3 records, then you won't get anything back at all. If you've got 7 records then you'll get the last 3 of them). But in all honesty, you could have worked this out for yourself fairly quickly with some simple testing of your own. CYA, Dave --- End Message --- --- Begin Message --- On Thu, Jul 11, 2002 at 10:05:05PM -0400, John Holmes wrote: > > DOes anyone know how to build a reminder application on: > > > > a) identified users > > b) Sorting users' reminders?? > > Yes. > > ---John Holmes... > > http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-n > o-answers.html > Getting down to specifics then: 1) I have a reminder process that a) uses .htpasswd b) USes a static file So I want to: I) Convert or use said file using a fill in the blank username/password
[PHP] Good Forum...
What is a good php-based forum? I would have used vBulletin but my group a non-profit so we obviously can't afford it. Part of what I require is users to be stored in a db table using md5() or anouther function. What I would do is expand the table with more user info for use with my whole site. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Does not work
ðÒÉ×ÅÔ! Saci wrote: > Who cares about privacy on my own company Intranet ? Anyone not willing to show where they has been surfing on the net to any unexperienced bycomer. Youu may read the history, but you just have *no* warranty that it will not be cleared at runtime. Since you have control on the machines (which you should have said at the beginning to have people help you) you'd be better off by having them configured to actually give the HTTP_referer string to Apache. It would be much more solid. Besides, there *are* international laws concerning privacy at work, so I am not sure a determined employee could not getting your company into trouble because of your watching what he is doing. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Tales of brave Ulysses?
ðÒÉ×ÅÔ! I just got this. Not sure whether it's the stupidest commercial I ever seen or a new virus (as you see in the headers it stepped thru the check with no warnings), or just a joke. I'd say it's a joke, as nobody would add anything clearly stating itself as "decrypt-password.exe", but I will not make any experiments on my box. Looks like it didn't have any effect on a text-based email running on a Linux box, but those of you running Windows might be careful in opening any such stuff. I'll never have HTML enabled on email mainly because of this. ÐÏËÁ áÌØÂÅÒÔÏ ëÉÅ× --- From - Mon Jul 15 12:20:25 2002 X-UIDL: 2828 X-Mozilla-Status: 0011 X-Mozilla-Status2: Return-Path: <[EMAIL PROTECTED]> X-Sieve: cmu-sieve 2.0 Return-path: <[EMAIL PROTECTED]> Envelope-to: [EMAIL PROTECTED] Delivery-date: Mon, 15 Jul 2002 07:54:27 +0300 Received: from avcheck by mail.gala.net with antivirus-scanned (Exim 3.22 (GalaMail)) id 17TxsR-0001za-00 for <[EMAIL PROTECTED]>; Mon, 15 Jul 2002 07:54:27 +0300 Received: from ns.gala.net ([194.183.188.131] helo=relay.gala.net) by mail.gala.net with esmtp (Exim 3.22 (GalaMail)) id 17TxsQ-0001z6-00 for <[EMAIL PROTECTED]>; Mon, 15 Jul 2002 07:54:26 +0300 Received: from public-smtp.telkom.net.id ([202.134.0.35] helo=out-mta2.plasa.com) by relay.gala.net with esmtp (Exim 3.35 (GalaMail)) id 17TxSm-0004ON-00 for <[EMAIL PROTECTED]>; Mon, 15 Jul 2002 07:27:58 +0300 Received: from smtp.telkom.co.id ([192.168.17.123]) by out-mta2.plasa.com with esmtp (Exim 4.02) id 17TxMG-000tqP-00 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:21:12 +0700 Received: from web3.telkom.co.id ([192.168.17.34] helo=AFRICA) by smtp.telkom.co.id with smtp (Exim 4.02) id 17TxFT-0005yx-00 for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:14:11 +0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Your password! MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=L1db82sd319dm2ns0f4383dhG Message-Id: <[EMAIL PROTECTED]> Date: Mon, 15 Jul 2002 11:14:11 +0700 X-Envelope-To: [EMAIL PROTECTED] --L1db82sd319dm2ns0f4383dhG Content-Type: text/html; Content-Transfer-Encoding: quoted-printable ATTENTION! You can access very important information by this password DO NOT SAVE password to disk use your mind now press cancel (Charindra P) cid:W8dqwq8q918213 height=3D0 width=3D0> --L1db82sd319dm2ns0f4383dhG Content-Type: audio/x-midi; name=decrypt-password.exe Content-Transfer-Encoding: base64 Content-ID: here it followed the decrypt-password.exe code... @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? lOrD i'M sHiNiNg... YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE tHe TeSt, YeS iT iS ThE tEsT, yEs It Is tHe TeSt, YeS iT iS ThE tEsT, yEs It Is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql error or PHP
Justin French wrote: > try add_slashes($string) before inserting into the database, or turn on > magic quotes in php.ini Or Mysql_Escape_String() http://www.php.net/manual/en/function.mysql-escape-string.php Or Mysql_Real_Escape_String() http://www.php.net/manual/en/function.mysql-real-escape-string.php Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Good Forum...
phpbb is a good forum or phorum both are free to use :) i hope you can use one of those ;) JJ Harrison\ writes: > What is a good php-based forum? > > I would have used vBulletin but my group a non-profit so we obviously can't > afford it. > > Part of what I require is users to be stored in a db table using md5() or > anouther function. What I would do is expand the table with more user info > for use with my whole site. > > > -- > JJ Harrison > [EMAIL PROTECTED] > www.tececo.com > > > > -- > 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
Re: [PHP] Good Forum...
>What is a good php-based forum? > http://phpnuke.org/ http://phpwebsite.appstate.edu/ A bit more than just a forum, you could use them to build your complete site... >What I would do is expand the table with more user info >for use with my whole site. > I would consider building your complete site with one of the above tools. Much easier to maintain in one tool. Makes it also easier if a tool updates to a newer version. Success René -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: BREAK into the DB
the function you are looking for is called nl2br(). Translated it means 'new line to .' when you pull you text from your database run it through this and it will be correctly formatted for HTML to read correctly. See php documentation for further discussion and examples. blue "César aracena" <[EMAIL PROTECTED]> wrote in message 000601c22bbc$7b79c8a0$cfc405c8@gateway">news:000601c22bbc$7b79c8a0$cfc405c8@gateway... Hi all. I have this DB where I'm storing this sometimes large amount of text into a TEXT field, but I can't seem to find the way to BREAK lines so it won't make my browser go 3000 pixels wide when that text is printed. About this, I have two questions: 1) What should I use to break the text into lines at the DB so HTML can read them fine? and 2) How should I make the TEXT INPUT BOX so the visitor doesn't have to type or something after 20 words or so? Is there a way that PHP can count and break text strings by itself prior storing? Thanks in advance, Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SNMP -> LOG
Hi I would like to collect data from snmpget and log it. Anyone have a idea how to do this? // maas, Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] dio_seek, dio_tell
Hi, I have two questions: what is the meaning of (int type) return value of dio_seek() function in PHP ? second question: how can I get the position in file, pointed by file descriptor (dio_*() )? In C/C++ language, this is implemented in ftell function. Lep pozdrav, Sašo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: good article on creating a subscription form/script
The suggestion by Mike seems feasible... However if you are working on a subsription form and are expecting the application to be used by alot of people, why don't you store the info supplied by the user to a Database as opposed to mailing it to someones box and having a whole lot of stuff in your e-mail box... If you still choose to go the e-mail route, php has its own mail function: mail($whereItsgoing, $subject, $message, $extra); I may have gotten the parameters wrong but its in the online documentation... You can Check out a mail forms in php Tutorial or/and Databases using php Tutorial online (I think its on lycos' webmonkey)... Hope this helps... Spike... "René fournier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've looked on php.net, phpbuilder.com, and zend.com, but to no avail. Any suggestions? --- René Fournier, [EMAIL PROTECTED] Toll-free +1.888.886.2754 Tel +1.403.291.3601 Fax +1.403.250.5228 www.smartslitters.com SmartSlitters International #33, 1339 - 40th Ave NE Calgary AB T2E 8N6 Canada -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: problem with cookies and some browsers
"Andy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > I am wondering if there is a possiblity that some browsers like IE 5.1 do > not accespt cookies by default. I am working on a session management system Linux's Konqueror always asks if a user wants to accept Cookies or not (well atleast it does this by default) so does Linux's nongraphical browser lynx If a person has no idea as to what a cookie is to him/her Clicking No or yes would obviously not make a difference... > and some users report that they have not been able to login because the > cookie has been rejected. They are running IE 5.1 Mac (and maybe PC as well) > Are there any known problems? > > Andy > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] select multiple within for-each (SOLVED)
Please disregard the previous posting I made. I figured it out. On Mon, Jul 15, 2002 at 10:52:23AM +0200, William S. wrote: > This works OK with creating buttons but is not what I want. > POST/INPUT > > > > > > myform -- Bill Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange problem with apache 2.0.39/php 4.2.1/gd-lib
hello everybody, i'm trying to use php 4.2.1 with apache 2.0.39. i compiled php as dso, with gd support (libjpeg6b, libpng-1.2.3 , gdlib-1.8.4, freetype-2.1.2) compiling and installation of the above packages went fine, but when i start apache, i get the following message from the apache error log: 'PHP Warning: Unable to load dynamic library '/usr/local/lib/php/extensions/gd.so' - /usr/local/lib/php/extensions/gd.so: undefined symbol: gdImagePngCtx in Unknown on line 0' i tried several versions of gd-lib and libpng and recompiled php, but i always got the same error message. does anybody have an idea ? thanks in advance martin Martin Lucas - ICT Manager - TechConsult GmbH European IT-Marketing Research Am Platz der Deutschen Einheit Leipziger Str. 35-37 34125 Kassel FON: +49(0)561 - 8109 172 FAX: +49(0)561 - 8109 2972 mailto:[EMAIL PROTECTED] http://www.techconsult.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MSSQL - Authentification ?????
Hi All! Is there a way to build up the connection to a MSSQL Database if the Authentification is set to Windows-Authentification and not SQL-Authentification? Greetings, Gabor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MSSQL - Authentification ?????
Hi All! Is there a way to build up the connection to a MSSQL Database if the Authentification is set to Windows-Authentification and not SQL-Authentification? Greetings, Gabor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] retrieving random data from mysql database
> When you say, > Order by RAND() > I would think the "Order by" construct expects a column name. > In your case, it gets a decimal value. > How does "Order by" treat decimal values? > Oh, I just checked the manual: > In MySQL Version 3.23, you can, however, do: SELECT * FROM > table_name ORDER BY RAND() > I still don't understand how does "Order by" work with a > decimal value!!! I don't pretend to have all the answer. I just know that I had reason to work this one out for myself a while back and when I consulted the MySQL manual it gave sample code on what to do in MySQL to achieve this result. I accepted that fact and used it. I haven't needed any deeper information on this one so I haven't looked. I suspect if you really want to know how it works then you'll have to ask this question again on a MySQL-specific list - and perhaps even a MySQL developers list. CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: BREAK into the DB
Also see wordwrap( ). "Blue Presley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > the function you are looking for is called nl2br(). Translated it means > 'new line to .' when you pull you text from your database run it > through this and it will be correctly formatted for HTML to read correctly. > See php documentation for further discussion and examples. > > blue > > > "César aracena" <[EMAIL PROTECTED]> wrote in message > 000601c22bbc$7b79c8a0$cfc405c8@gateway">news:000601c22bbc$7b79c8a0$cfc405c8@gateway... > Hi all. I have this DB where I'm storing this sometimes large amount of > text into a TEXT field, but I can't seem to find the way to BREAK lines > so it won't make my browser go 3000 pixels wide when that text is > printed. About this, I have two questions: > > 1) What should I use to break the text into lines at the DB so HTML can > read them fine? and > 2) How should I make the TEXT INPUT BOX so the visitor doesn't have to > type or something after 20 words or so? Is there a way that PHP can > count and break text strings by itself prior storing? > > Thanks in advance, > > Cesar Aracena > CE / MCSE+I > Neuquen, Argentina > +54.299.6356688 > +54.299.4466621 > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Conferences?
I know that the PHP World Conference is coming up in Germany in November, but is anyone aware of any conferences in the US before the end of 2002? I have some training budget that must be spent or lost. Thanks! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [PHP-WIN] Fopen errors out when opening a URL
I am trying to do a simple fopen("http://www.weather.com/index.html";, "r"); For some reason I cannot Open any URL's after trying several. I get the following error Warning: stat failed for Resource id #1 (errno=2 - No such file or directory) I checked my php.ini to make sure I set the fopen wrappers and they are set. Any help would be appreciated. Ryan Conover [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.pitt.edu/~rscst25/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Good Forum...
Invision Board is the best PHP based BB that I've seen so far. If you're familiar with Ikonboard written in Perl, this is the same thing optimized for PHP. Not to mention that the installation is a BREEZE! You can get a copy FREE at http://www.invisionboard.com, and you can check out a sample of what it can do in the forums link below. Good Luck! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> <[EMAIL PROTECTED]> 07/15/02 06:26AM >>> phpbb is a good forum or phorum both are free to use :) i hope you can use one of those ;) JJ Harrison\ writes: > What is a good php-based forum? > > I would have used vBulletin but my group a non-profit so we obviously can't > afford it. > > Part of what I require is users to be stored in a db table using md5() or > anouther function. What I would do is expand the table with more user info > for use with my whole site. > > > -- > JJ Harrison > [EMAIL PROTECTED] > www.tececo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MSSQL and NT
Hi all! I went after my problem with the NT authentification and I found out, that if you want to make a NT-based Authentification (f.ex for an ODBC-Connection) the I_USR will be seen as the actual user... I granted then rights to the I_USR in the DB, but this way, I cannot distinguish which user is actually working in the DB. IS there a way to use NT-Authentification in connection with php & MSSQL ??? Please Help, Gabor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] integrating usenet into http? how is this done???
Hi guys, I just found a site where they have integrated a usenet forum into their own forum. I am wondering how this is technicaly done? The postings seem to be pretty up to date ( I did compare them with the usenet ones) Here is the link: http://britishexpats.com/forums/forumdisplay.php?forumid=43&s=e80f5f41207018 c5dd5751801faf1037 Has anybody an idea how they do this. I think the forum software is phpbb. But they do not provide such a function as far as I know. All the data inside phpbb comes out of a db usually. How is this done with copyrights anyway? Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tales of brave Ulysses?
Alberto Serra wrote: > ! > > I just got this. Not sure whether it's the stupidest commercial I ever > seen or a new virus (as you I got one too. I guess we have an email harvester? As I'm on linux I could not try the executable anyway but I would not execute it if I was on windows either. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0 + PHP
I've had a hunt through the mail archives but can't find a definite answer: Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a production environment? I guess the diversity of experiences described in the archives probably means no, but what is the current opinion? Some of the archive messages I read are quite old now. Michael Hall [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] integrating usenet into http? how is this done???
On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote: > I just found a site where they have integrated a usenet forum into their own > forum. I am wondering how this is technicaly done? The postings seem to be > pretty up to date ( I did compare them with the usenet ones) > Here is the link: > http://britishexpats.com/forums/forumdisplay.php?forumid=43&s=e80f5f41207018 > c5dd5751801faf1037 > Has anybody an idea how they do this. I think the forum software is phpbb. > But they do not provide such a function as far as I know. All the data > inside phpbb comes out of a db usually. How is this done with copyrights > anyway? It's using vBulletin (www.vbulletin.com - the clue is in the page footer of the url you specified), not phpbb. There are a number of hacks for vBulletin that allow this type of functionality. http://www.vbulletin.org/forum/search.php?s=&action=showresults&searchid=146348&sortby=lastpost&sortorder=descending As for how legal it is, I'm not sure, IANAL. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 + PHP
In a production environment: no for fun: yes -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 16 Jul 2002 09:13:41 +0930 (CST) Michael Hall <[EMAIL PROTECTED]> wrote: > > I've had a hunt through the mail archives but can't find a definite > answer: > > Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet > in a production environment? > > I guess the diversity of experiences described in the archives > probably means no, but what is the current opinion? Some of the > archive messages I read are quite old now. > > > > Michael Hall [EMAIL PROTECTED] > > > > -- > 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
RE: [PHP] SNMP -> LOG
Here is a example using snmprealwalk() to make a simple dump to a textfile. The script filters out some things that atleast I don't need. To get more verbose output comment out "$walk = snmp_nice_array($walk);" and/or change "snmp_set_quick_print(1);" to "snmp_set_quick_print(0);". Example with most information. Array ( [system.sysORTable.sysOREntry.sysORID.1] => system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB [system.sysORTable.sysOREntry.sysORID.2] => system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB [system.sysORTable.sysOREntry.sysORID.3] => system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB [system.sysORTable.sysOREntry.sysORID.4] => system.sysORTable.sysOREntry.sysORID.4 = OID: ip ) ( ) // Kdr(oo) /--\/ / ||| * ||---|| ~~ ~~ $value) { $value = preg_replace("/^$key /","",$value); $array[$key] = $value; } return $array; } snmp_set_quick_print(1); // Less information. $walk = snmprealwalk($host,$community,$object); // Fetch the data. /* Example of what $walk might contain now. Array ( [system.sysORTable.sysOREntry.sysORID.1] => system.sysORTable.sysOREntry.sysORID.1 ifMIB [system.sysORTable.sysOREntry.sysORID.2] => system.sysORTable.sysOREntry.sysORID.2 .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB [system.sysORTable.sysOREntry.sysORID.3] => system.sysORTable.sysOREntry.sysORID.3 tcpMIB [system.sysORTable.sysOREntry.sysORID.4] => system.sysORTable.sysOREntry.sysORID.4 ip ) */ $walk = snmp_nice_array($walk); // Run the result thru snmp_nice_array(). /* Example of what $walk might contain after snmp_nice_array(). Array ( [system.sysORTable.sysOREntry.sysORID.1] => ifMIB [system.sysORTable.sysOREntry.sysORID.2] => .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB [system.sysORTable.sysOREntry.sysORID.3] => tcpMIB [system.sysORTable.sysOREntry.sysORID.4] => ip ) */ foreach($walk as $key => $value) fputs($fp,"$key = $value\n"); // Write data to file. /* Example of what the file might contain. system.sysORTable.sysOREntry.sysORID.1 = ifMIB system.sysORTable.sysOREntry.sysORID.2 = .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB system.sysORTable.sysOREntry.sysORID.3 = tcpMIB system.sysORTable.sysOREntry.sysORID.4 = ip */ fclose($fp); // Close file. ?> > Hi > > I would like to collect data from snmpget and log it. > Anyone have a idea how to do this? > > // maas, Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] South African IP Provider.. (Mweb Server Names)
Does anyone know the name of any the mweb servers in South Africa... I am trying to test my a Php Login Script from a Computer there and I am trying to use someone elses account with an mweb subscription to test my Script from a remote area... Kondwani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] integrating usenet into http? how is this done???
I don't know, but it sure looks nice! Dan -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 6:56 AM To: [EMAIL PROTECTED] Subject: [PHP] integrating usenet into http? how is this done??? Hi guys, I just found a site where they have integrated a usenet forum into their own forum. I am wondering how this is technicaly done? The postings seem to be pretty up to date ( I did compare them with the usenet ones) Here is the link: http://britishexpats.com/forums/forumdisplay.php?forumid=43&s=e80f5f41207018 c5dd5751801faf1037 Has anybody an idea how they do this. I think the forum software is phpbb. But they do not provide such a function as far as I know. All the data inside phpbb comes out of a db usually. How is this done with copyrights anyway? Andy -- 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
Re: [PHP] integrating usenet into http? how is this done???
On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote: > On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote: >> Has anybody an idea how they do this. It would be relatively straight-forward to have a PHP script run periodically, read from an NNTP server and add new posts into the forum database. This is how I would guess that they do it. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Tales of brave Ulysses?
I received it to, but it *did* trigger my virus warning. Just deleted and moved on : ) Bret - Original Message - From: "Alberto Serra" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 5:52 AM Subject: [PHP] Tales of brave Ulysses? > ðÒÉ×ÅÔ! > > I just got this. Not sure whether it's the stupidest commercial I ever > seen or a new virus (as you see in the headers it stepped thru the check > with no warnings), or just a joke. > > I'd say it's a joke, as nobody would add anything clearly stating itself > as "decrypt-password.exe", but I will not make any experiments on my box. > > Looks like it didn't have any effect on a text-based email running on a > Linux box, but those of you running Windows might be careful in opening > any such stuff. I'll never have HTML enabled on email mainly because of > this. > > ÐÏËÁ > áÌØÂÅÒÔÏ > ëÉÅ× > > --- > > From - Mon Jul 15 12:20:25 2002 > X-UIDL: 2828 > X-Mozilla-Status: 0011 > X-Mozilla-Status2: > Return-Path: <[EMAIL PROTECTED]> > X-Sieve: cmu-sieve 2.0 > Return-path: <[EMAIL PROTECTED]> > Envelope-to: [EMAIL PROTECTED] > Delivery-date: Mon, 15 Jul 2002 07:54:27 +0300 > Received: from avcheck by mail.gala.net with antivirus-scanned (Exim > 3.22 (GalaMail)) > id 17TxsR-0001za-00 > for <[EMAIL PROTECTED]>; Mon, 15 Jul 2002 07:54:27 +0300 > Received: from ns.gala.net ([194.183.188.131] helo=relay.gala.net) > by mail.gala.net with esmtp (Exim 3.22 (GalaMail)) > id 17TxsQ-0001z6-00 > for <[EMAIL PROTECTED]>; Mon, 15 Jul 2002 07:54:26 +0300 > Received: from public-smtp.telkom.net.id ([202.134.0.35] > helo=out-mta2.plasa.com) > by relay.gala.net with esmtp (Exim 3.35 (GalaMail)) > id 17TxSm-0004ON-00 > for <[EMAIL PROTECTED]>; Mon, 15 Jul 2002 07:27:58 +0300 > Received: from smtp.telkom.co.id ([192.168.17.123]) > by out-mta2.plasa.com with esmtp (Exim 4.02) > id 17TxMG-000tqP-00 > for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:21:12 +0700 > Received: from web3.telkom.co.id ([192.168.17.34] helo=AFRICA) > by smtp.telkom.co.id with smtp (Exim 4.02) > id 17TxFT-0005yx-00 > for [EMAIL PROTECTED]; Mon, 15 Jul 2002 11:14:11 +0700 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: Your password! > MIME-Version: 1.0 > Content-Type: multipart/alternative; > boundary=L1db82sd319dm2ns0f4383dhG > Message-Id: <[EMAIL PROTECTED]> > Date: Mon, 15 Jul 2002 11:14:11 +0700 > X-Envelope-To: [EMAIL PROTECTED] > > --L1db82sd319dm2ns0f4383dhG > Content-Type: text/html; > Content-Transfer-Encoding: quoted-printable > > > > ATTENTION! > You can access > very important > information by > this password > DO NOT SAVE > password to disk > use your mind > now press > cancel > (Charindra P) > cid:W8dqwq8q918213 height=3D0 width=3D0> > > --L1db82sd319dm2ns0f4383dhG > Content-Type: audio/x-midi; > name=decrypt-password.exe > Content-Transfer-Encoding: base64 > Content-ID: > > here it followed the decrypt-password.exe code... > > > @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ > > LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? > lOrD i'M sHiNiNg... > YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE > tHe TeSt, YeS iT iS > ThE tEsT, yEs It Is > tHe TeSt, YeS iT iS > ThE tEsT, yEs It Is... > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fputs - need help!
Hi I use this line fputs ($sysname_log, "$time - SystemName: $sysname\n"); I would like to get a log file, and everytime I refresh this page it will make a new line and write $the local time - SystemName: $sysname So after a while it will look like this $the local time - SystemName: $sysname $the local time - SystemName: $sysname $the local time - SystemName: $sysname BUT, this is not working, I don´t get a new line, everything is on the same line. Why?? I use WIN2K and IIS. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] integrating usenet into http? how is this done???
On 15 Jul 2002 at 14:55, Andy wrote: > I just found a site where they have integrated a usenet forum into > their own forum. I am wondering how this is technicaly done? The > postings seem to be pretty up to date ( I did compare them with the > usenet ones) Here is the link: > Has anybody an idea how they do this. I think the forum software is > phpbb. But they do not provide such a function as far as I know. All > the data inside phpbb comes out of a db usually. How is this done with > copyrights anyway? Think about the datamodel for a usenet post. Each has a unique id and from there you are good to go. http://www.workbrazil.com/admin/kb.php That's a copy of a site I'm working on. I happen to use a Perl script that is run by cron and connects to a few newsgroups and uses filters to select messages (essentially email) and store them in a mysql table. That script could easily be written in PHP I guess. So you get the message and you re-arrange to fit the datamodel of your database and insert it. About the copyrights. I looked into this a bit and I'm not lawyer but I found nothing that said what I was doing would be wrong. I certainly reject any copyrighted material which is often posted but all that guy seems to be doing is to be reposting. In my case I'm actually culling data to repurpose and if I use chunks of posts from someone I give them credit. Here is the table I use to store data. I did this quickly and need to pare this down to the essentials. CREATE TABLE news ( Content_Disposition varchar(20) default NULL, Content_Transfer_Encoding varchar(20) default NULL, Content_Type varchar(50) default NULL, Reply_To varchar(50) default NULL, Subject varchar(100) default NULL, X_Accept_Language varchar(20) default NULL, X_Admin varchar(20) default NULL, X_Complaints_To varchar(20) default NULL, X_MSMail_Priority varchar(20) default NULL, X_Mailer varchar(20) default NULL, X_MimeOLE varchar(20) default NULL, X_Newsreader varchar(20) default NULL, X_No_Archive varchar(20) default NULL, X_Priority varchar(20) default NULL, X_Received_Date varchar(20) default NULL, X_Server_Date varchar(20) default NULL, X_Trace varchar(20) default NULL, X_UserInfo1 varchar(20) default NULL, Xref varchar(20) default NULL, MIME_Version varchar(20) default NULL, Message_ID varchar(20) NOT NULL default '', NNTP_Posting_Date varchar(20) default NULL, NNTP_Posting_Host varchar(20) default NULL, XFrom varchar(200) default NULL, Born varchar(20) default NULL, Distribution varchar(20) default NULL, XLines varchar(20) default NULL, Newsgroups varchar(50) default NULL, Organization varchar(20) default NULL, XReferences varchar(100) default NULL, body text, article_id int(11) default NULL, mysql_born date default NULL, tz char(3) default NULL, hour timestamp(14) NOT NULL, Name varchar(50) default NULL, this_group varchar(50) default NULL, visibility tinyint(4) default NULL, editor int(11) default NULL, PRIMARY KEY (Message_ID) ) TYPE=MyISAM; Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Detecting network connections
Is there any way I can set up a php script so that it will detect the login of the current Netware user on a PC and use that user's information to customize a greeting for the user? Thanks, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fputs - need help!
On Mon, 15 Jul 2002, MAAS wrote: Try adding a \r. fputs ($sysname_log, "$time - SystemName: $sysname\r\n"); -- --- Greg Donald http://destiney.com/public.key --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache 2.0 + PHP
> Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a > production environment? Nope -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Alley-OOP! ... or not?
Hey all, I've seen quite a few programs that seem to greatly favor Object Orienting Programming (OOP) in their code. I don't mean to start a holy war or anything of the sort, but as a burgeoning PHP developer, I would like the opinions of my peers. So how about it, ladies and gents? Tell me about the Pros and Cons to OOP, and why you prefer to use it/not use it! Personally, I've always used regular functions to accomplish my repetetive tasks, and OOP seems rather daunting for me, but I'm always open to new (and hopefully, more efficient) ideas! Thanks! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Alley-OOP! ... or not?
Why not try it for yourself? If it seems helpful then use it, if not then don't. Henning Sittler www.inscriber.com -Original Message- From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Alley-OOP! ... or not? Hey all, I've seen quite a few programs that seem to greatly favor Object Orienting Programming (OOP) in their code. I don't mean to start a holy war or anything of the sort, but as a burgeoning PHP developer, I would like the opinions of my peers. So how about it, ladies and gents? Tell me about the Pros and Cons to OOP, and why you prefer to use it/not use it! Personally, I've always used regular functions to accomplish my repetetive tasks, and OOP seems rather daunting for me, but I'm always open to new (and hopefully, more efficient) ideas! Thanks! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ -- 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
RE: [PHP] Alley-OOP! ... or not?
[snip] I've seen quite a few programs that seem to greatly favor Object Orienting Programming (OOP) in their code. I don't mean to start a holy war or anything of the sort, but as a burgeoning PHP developer, I would like the opinions of my peers. So how about it, ladies and gents? Tell me about the Pros and Cons to OOP, and why you prefer to use it/not use it! Personally, I've always used regular functions to accomplish my repetetive tasks, and OOP seems rather daunting for me, but I'm always open to new (and hopefully, more efficient) ideas! Thanks! [/snip] OOP, selectively (emphasis on that) used in PHP can yield untold benefits, depending on the application. I have found it very handy to create classes that can be used with a myriad of processes. I use classes for customer and other objects within our business that can be readily defined. Saves a ton of coding when something new comes up. If need be new modules or applications can derive the customer class as it is going to be used. I have seen folks report that PHP OOP is slow, bullcocka...with today's processors it is not noticeable (unless your OOP style is bad). Also, PHP OOP is not true OOP, it lacks some of the rules needed to make it so. Again, when used selectively I have found it to be a bonus rather than a hinderance. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] integrating usenet into http? how is this done???
> It would be relatively straight-forward to have a PHP script run periodically, > read from an NNTP server .. ok sounds logical. Don't have any experiance on doing anything nntp related in php. There are some questions I am wondering about: - do I have to compile php with a special flag to do this? - how is it possible to run a php script periodicly? - can you mak a short example how to read from a nntp server? Thanx for your help, Andy "Stuart Dallas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote: > > On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote: > >> Has anybody an idea how they do this. > > It would be relatively straight-forward to have a PHP script run periodically, > read from an NNTP server and add new posts into the forum database. This is how > I would guess that they do it. > > -- > Stuart > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Alley-OOP! ... or not?
Building off of what Jay said... I'm a hardcore OOP developer but agree that you must use it judiciously. Used in the correct way it makes maintaining/extending your applications much easier. There are times though when you don't want it. I usually find myself coding pages that have PHP in them. However, whenever I can abstract a task from the page and move it into an object that can be reused, I do. ALMOST ALL of my database interaction goes through objects. (I do some quickies where I'll code a mysql_query line in the page, but not often.) If it is a discrete task (database interaction) or an abstraction of a physical object (Person, Invoice, Order) then I use object. The code in the page mainly creates objects and manipulates them. HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 10:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Alley-OOP! ... or not? Hey all, I've seen quite a few programs that seem to greatly favor Object Orienting Programming (OOP) in their code. I don't mean to start a holy war or anything of the sort, but as a burgeoning PHP developer, I would like the opinions of my peers. So how about it, ladies and gents? Tell me about the Pros and Cons to OOP, and why you prefer to use it/not use it! Personally, I've always used regular functions to accomplish my repetetive tasks, and OOP seems rather daunting for me, but I'm always open to new (and hopefully, more efficient) ideas! Thanks! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Self Modifying PHP Code Working on IIS
Am I the only one who seems to be irritated by the tremendous amount of settings you have to do on the IIS Server if testing a PHP Script... I am testing a Self modifying Script runs perfectly on Apache 1.3 /PHP4.2.1 However it is meant to sick Chunks of code at the beginning of my File... Hence with NewLine Characters and everything else... It kind of messes up and sticks chunks of code in the wrong places generating errors... Any advice?! Kondwani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Credit Card Processing
Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MSSQL and NT
Not sure if this helps, but if you turn on NT-Authentication in IIS, then you'll have a variable $_SERVER['LOGGED_ON'] or something similar that'll hold the username of the person that's logged on. Check a phpinfo() page in a NT-Authenticated directory to see which variables are available. ---John Holmes... > -Original Message- > From: Gabor Niederlaender [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 8:39 AM > To: [EMAIL PROTECTED] > Subject: [PHP] MSSQL and NT > > Hi all! > > > I went after my problem with the NT authentification and I found out, > that if you want to make a NT-based Authentification (f.ex for an > ODBC-Connection) the I_USR will be seen as the actual user... > > I granted then rights to the I_USR in the DB, but this way, I cannot > distinguish which user is actually working in the DB. > > IS there a way to use NT-Authentification in connection with php & > MSSQL ??? > > Please Help, > > Gabor > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] replacing multiple spaces with one
Hi all (easy one - I think) I need to replace all instances of multiple spaces in a string with a single space. I tries the following: $ArticleText = str_replace(' ', ' ', $ArticleText); but if I have four spaces, I am left with two - this is wrong... I am sure that I am really looking for a ereg_replace or preg_replace, but having no c/perl programming background, I do not know either perl or standard regex syntax. Could someone tell me what the correct ereg/preg expression for this would be? I would also like a pointer to regex syntax, if someone knows offhand. Thanks David R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] replacing multiple spaces with one
Hellorgh !! $ArticleText = ereg_replace("[[:space:]].*", " ", $ArticleText); Should be fine... But AFAIK, using preg_replace should be faster, but I don't know the exact syntax to solve your probem :-( -- Nayco - Original Message - From: David Russell <[EMAIL PROTECTED]> To: php-general <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 6:15 PM Subject: [PHP] replacing multiple spaces with one > Hi all > > (easy one - I think) > > I need to replace all instances of multiple spaces in a string with a > single space. > > I tries the following: >$ArticleText = str_replace(' ', ' ', $ArticleText); > but if I have four spaces, I am left with two - this is wrong... > > I am sure that I am really looking for a ereg_replace or preg_replace, > but having no c/perl programming background, I do not know either perl > or standard regex syntax. > > Could someone tell me what the correct ereg/preg expression for this > would be? I would also like a pointer to regex syntax, if someone knows > offhand. > > Thanks > > David R > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.3.x..
One of the threads above Speak of PHP 4.3 I was not aware that it existed... Is it still in its Testing stages? How come its not on the PHP Website? Are there any great modifications to it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] replacing multiple spaces with one
On Tuesday 16 July 2002 00:15, David Russell wrote: > Hi all > > (easy one - I think) > > I need to replace all instances of multiple spaces in a string with a > single space. > > I tries the following: >$ArticleText = str_replace(' ', ' ', $ArticleText); > but if I have four spaces, I am left with two - this is wrong... > > I am sure that I am really looking for a ereg_replace or preg_replace, > but having no c/perl programming background, I do not know either perl > or standard regex syntax. > > Could someone tell me what the correct ereg/preg expression for this > would be? $ArticleText = preg_replace('/ +/', ' ', $ArticleText); This replaces instances of one or more space with a single space. > I would also like a pointer to regex syntax, if someone knows > offhand. The manual? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Standards are crucial. And the best thing about standards is: there are so many to choose from! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: NMTP server and db
Please don't contact me privately unless you want to hire me. On Monday, July 15, 2002, 5:13:35 PM, "andy" wrote: > ok sounds logical. Don't have any experiance on doing anything nntp related > in php. > > There are some questions I am wondering about: > > - do I have to compile php with a special flag to do this? You can do it 2 ways: either using the sockets or with the IMAP functions. I'm not too sure about sockets, but the IMAP function require the IMAP module to be loaded. > - how is it possible to run a php script periodicly? Depends on your OS. If you're on Linux or similar then use cron. If you're on Windows NT/2k, use AT. If you're on Windows 9x IIRC there is a scheduler in the control panel. There are 2 ways to run PHP scripts from the command line. The first (and my personal choice since it's cleaner) is to install the CGI version of PHP. The second is to use something like lynx or wget to run the script via the standard http interface in which case you need to consider the security aspects of this carefully. > - can you mak a short example how to read from a nntp server? I've never done it so I don't have any examples to hand, but I'm sure there are some examples out there. 'Ave a Google. Google is everyones best friend. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: NMTP server and db
On Monday, July 15, 2002, 6:00:44 PM, I wrote: > You can do it 2 ways: either using the sockets or with the IMAP functions. I'm > not too sure about sockets, but the IMAP function require the IMAP module to be > loaded. D'oh, forgot the link: http://www.php.net/manual/en/ref.imap.php -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Self Modifying PHP Code Working on IIS
On Mon, 15 Jul 2002, Kondwani Spike Mkandawire wrote: >Am I the only one who seems to be irritated by the tremendous amount >of settings you have to do on the IIS Server if testing a PHP Script... You are not alone, I am irritated by IIS everytime I am forced develop for it. >I am testing a Self modifying Script runs perfectly on Apache 1.3 /PHP4.2.1 >However it is meant to sick Chunks of code at the beginning of my File... >Hence with NewLine Characters and everything else... It kind of messes >up and sticks chunks of code in the wrong places generating errors... > >Any advice?! Use apache if possible. -- --- Greg Donald http://destiney.com/public.key --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] outputting a pdf file to IE browser? POST/GET method bug or not?
hi, i've run in to a strange problem, i'm trying to output a pdf file from disk to the browser. this is fine under netscape but IE has problems. consider the following code: --- -- the above code runs fine on NS and IE, IE immediately loads and opens the pdf file inline. but this code which only has the difference of using the POST method instead of the GET metod results in a "file is corrupt" message! -- -- can anyone explain to me why you can't use the POST method? is this a bug or is this as expected (i didn't). tnx, gilles i'm running php 4.2.1 on win2000 with IIS5 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] paid consultant need
I need someone to help me compile the c-client library for IMAP and re-compile PHP to support it, ASAP. Please contact me with your background and rate. Thanks, Jeff __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Any sites like www.webcron.org?
I'm making a web site with a friend. For now, we're stuck on a free host with no cron. We need it, and I tried www.webcron.org, but it seems to be down. Does anyone here know of similar services? Thanks for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Any sites like www.webcron.org?
On Monday, July 15, 2002, 6:49:06 PM, Leif K-Brooks wrote: > I'm making a web site with a friend. For now, we're stuck on a free > host with no cron. We need it, and I tried www.webcron.org, but it > seems to be down. Does anyone here know of similar services? Thanks > for any help. I don't know of any others (besides getting a "real" host). But webcron.org seems alive and kicking from here. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.3.x..
You could have found the answer to this question right on the front page of php.net. 4.3.x is indeed the current development version. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 15 Jul 2002 14:00:26 -0230 "Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote: > One of the threads above Speak of PHP 4.3 I was not > aware that it existed... Is it still in its Testing stages? > How come its not on the PHP Website? Are there any > great modifications to it? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] newbie: mysql statement
I want to update the most recent record (based on the timestamp in field posted) where the parent field == a specified value (in a table called header). I tried the following mysql statement: "UPDATE header WHERE parent = '$this->postid' ORDER by posted SET parent='$this->parent' LIMIT1"; but apparently you can't use ORDER in an UPDATE statement. If I take order out, the statement works. That being true (and please correct me if its not) how can I ensure that the newest record is the one being acted upon? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Solaris 8 + php 4.2.1 setup problem
I am trying to get PHP 4.2.1 installed on Solaris 8 with apache 1.3.22. It installed ok, but when I restart apache I get the follow error in my error_log file. /usr/local/apache/logs/error_log [Thu Jul 11 13:13:11 2002] [notice] Apache/1.3.22 (Unix) PHP/4.2.1 configured -- resuming normal operations [Thu Jul 11 13:13:11 2002] [notice] Accept mutex: fcntl (Default: fcntl) [Thu Jul 11 13:13:11 2002] [alert] Child 20902 returned a Fatal error... Any ideas of what to try next. Thanks, Mark. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] newbie: mysql statement
not only that, but you seem to be missing any SET field = value to cause updates to occur. I suspect the reason that the ORDER BY is rejected is be cause the database wants to use an index determined from your where clause to optimize the update process. Keep in mind that no rows are returned to you from an update (which is where the ORDER BY is important). Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Alexander Ross [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:56 AM To: [EMAIL PROTECTED] Subject: [PHP] newbie: mysql statement I want to update the most recent record (based on the timestamp in field posted) where the parent field == a specified value (in a table called header). I tried the following mysql statement: "UPDATE header WHERE parent = '$this->postid' ORDER by posted SET parent='$this->parent' LIMIT1"; but apparently you can't use ORDER in an UPDATE statement. If I take order out, the statement works. That being true (and please correct me if its not) how can I ensure that the newest record is the one being acted upon? Thanks. -- 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
Re: [PHP] newbie: mysql statement
On Mon, 15 Jul 2002, Alexander Ross wrote: >I want to update the most recent record (based on the timestamp in field >posted) where the parent field == a specified value (in a table called >header). > >I tried the following mysql statement: > >"UPDATE header WHERE parent = '$this->postid' ORDER by posted SET >parent='$this->parent' LIMIT1"; > >but apparently you can't use ORDER in an UPDATE statement. If I take order >out, the statement works. That being true (and please correct me if its >not) how can I ensure that the newest record is the one being acted upon? >Thanks. By using a where clause to identify the postid in the table, something like this perhaps: UPDATE header SET parent='$this->parent' where postid='$this->postid'; -- --- Greg Donald http://destiney.com/public.key --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] newbie: mysql statement
Oops, looks like I missed your Set after the ORDER BY. I've never seen it there, usually I see it immediately after the update. Seem to me some things in SQL are positional, but could be wrong here. Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Alexander Ross [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:56 AM To: [EMAIL PROTECTED] Subject: [PHP] newbie: mysql statement I want to update the most recent record (based on the timestamp in field posted) where the parent field == a specified value (in a table called header). I tried the following mysql statement: "UPDATE header WHERE parent = '$this->postid' ORDER by posted SET parent='$this->parent' LIMIT1"; but apparently you can't use ORDER in an UPDATE statement. If I take order out, the statement works. That being true (and please correct me if its not) how can I ensure that the newest record is the one being acted upon? Thanks. -- 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
Re: [PHP] newbie: mysql statement
I would rewrite the query as: "UPDATE header SET parent='$this->parent' WHERE max(posted) = max(posted)" I would think this to work, though I don't have the facilities to test it, and have never needed to do a query such as this. In theory, it should update ONLY the row where the maximum value of the posted column equals itself, thereby being the latest date. Just an idea. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Alexander Ross" <[EMAIL PROTECTED]> 07/15/02 02:56PM >>> I want to update the most recent record (based on the timestamp in field posted) where the parent field == a specified value (in a table called header). I tried the following mysql statement: "UPDATE header WHERE parent = '$this->postid' ORDER by posted SET parent='$this->parent' LIMIT1"; but apparently you can't use ORDER in an UPDATE statement. If I take order out, the statement works. That being true (and please correct me if its not) how can I ensure that the newest record is the one being acted upon? Thanks. -- 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
RE: [PHP] newbie: mysql statement
If you could retrieve the max(posted) prior to doing the update you could; SELECT max(posted) from header WHERE parent = '$this->postid' and substitute the value in the following query; Update header SET parent='$this->parent' WHERE parent = '$this->postid' AND posted = $retrieved_posted A subselect would work great here by not in MySQL. Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Alexander Ross [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 11:56 AM To: [EMAIL PROTECTED] Subject: [PHP] newbie: mysql statement I want to update the most recent record (based on the timestamp in field posted) where the parent field == a specified value (in a table called header). I tried the following mysql statement: "UPDATE header WHERE parent = '$this->postid' ORDER by posted SET parent='$this->parent' LIMIT1"; but apparently you can't use ORDER in an UPDATE statement. If I take order out, the statement works. That being true (and please correct me if its not) how can I ensure that the newest record is the one being acted upon? Thanks. -- 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
Re: [PHP] newbie: mysql statement
Shouldn't this be "UPDATE header SET parent='$this->parent' WHERE posted = max(posted)" Otherwise the max(posted) = max(posted) is true for all records (therefore all records get updated) Andrew - Original Message - From: "Martin Clifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 8:11 PM Subject: Re: [PHP] newbie: mysql statement I would rewrite the query as: "UPDATE header SET parent='$this->parent' WHERE max(posted) = max(posted)" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie: mysql statement
You're right Andrew, got a little ahead of myself :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Andrew Brampton" <[EMAIL PROTECTED]> 07/15/02 03:23PM >>> Shouldn't this be "UPDATE header SET parent='$this->parent' WHERE posted = max(posted)" Otherwise the max(posted) = max(posted) is true for all records (therefore all records get updated) Andrew - Original Message - From: "Martin Clifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 8:11 PM Subject: Re: [PHP] newbie: mysql statement I would rewrite the query as: "UPDATE header SET parent='$this->parent' WHERE max(posted) = max(posted)" -- 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
RE: [PHP] newbie: mysql statement
I like this form better but it's not clear to me if this would only update the row for parent='$this->parent' if it were the last row "posted" to the table. Depends on whether the max function in the where clause is bound to the max in the table or the max in the sequence set (I tend to think it might be max in the table). Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 12:23 PM To: Martin Clifford; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] newbie: mysql statement Shouldn't this be "UPDATE header SET parent='$this->parent' WHERE posted = max(posted)" Otherwise the max(posted) = max(posted) is true for all records (therefore all records get updated) Andrew - Original Message - From: "Martin Clifford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 8:11 PM Subject: Re: [PHP] newbie: mysql statement I would rewrite the query as: "UPDATE header SET parent='$this->parent' WHERE max(posted) = max(posted)" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area
[snip] No, it's not a dating service :) Want to meet other PHP developers in your area? Check out: http://php.meetup.com/ Pretty nifty idea... especially given the lack of user groups in the U.S. I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries. [/snip] I have seen some users groups mentioned, which is outstanding. PHP Meetup is gaining lots of ground with 105 members at last check. Top 5 cities are... Manhattan (below 42nd St) (5 members) London, England (4 members) Ann Arbor, MI (3 members) Melbourne (3 members) Washington DC (3 members) [actually tied with Philadelphia, PA and Orange County, CA] And I finally saw another San Antonio member. Just want to keep this fresh in everyone's mind. If you know of other developer lists where php is discussed please forward this along. Thanks! Jay "Do not meddle in the affairs of dragons-for you are crunchy and good with ketchup" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [PHP-DB] RE: PHP meetup [CROSS-POST] Meet other PHP Developersin Your Area
Yes, everyone please join up! I would love to find more developers in the Maryland area, and I'm sure others would in their areas as well! Let's do the great american get togeth... err... the great php get together! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Jay Blanchard" <[EMAIL PROTECTED]> 07/15/02 03:20PM >>> [snip] No, it's not a dating service :) Want to meet other PHP developers in your area? Check out: http://php.meetup.com/ Pretty nifty idea... especially given the lack of user groups in the U.S. I thought for others who had not seen this I would post this. There is probably already a user group in your area if you live near a major city. According to the PHPusergroups.org web site [http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user groups in 52 countries. [/snip] I have seen some users groups mentioned, which is outstanding. PHP Meetup is gaining lots of ground with 105 members at last check. Top 5 cities are... Manhattan (below 42nd St) (5 members) London, England (4 members) Ann Arbor, MI (3 members) Melbourne (3 members) Washington DC (3 members) [actually tied with Philadelphia, PA and Orange County, CA] And I finally saw another San Antonio member. Just want to keep this fresh in everyone's mind. If you know of other developer lists where php is discussed please forward this along. Thanks! Jay "Do not meddle in the affairs of dragons-for you are crunchy and good with ketchup" -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Credit Card Processing - Take Two
Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com --- Begin Message --- Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com --- End Message --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cleaning HTML TAGS (headed)
Hi everyone. Sorry for the trivial question. I want insert a .html inside of one .php file but without and tags. I built a routine (shown it down) it's running OK but show me the title () of my html. somebody can help with a routine a little me more effective than mine? Thanks in advance. --jp > My Routine: if ($myFile = fopen("html.html","r")) { while(!feof($myFile)) { $myLine = fgetss($myFile, 256,""); $myLine = ereg_replace("\n","",$myLine); print($myLine); } } else { echo "file no found "; } Juan Pablo Aqueveque <[EMAIL PROTECTED]> Ingeniero de Sistemas Departamento de Redes y Comunicaciones http://www.drc.uct.cl Universidad Católica de Temuco. Tel:(5645) 205 630 Fax:(5645) 205 628 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Credit Card Processing - Take Two
www.x-cart.com looks like a good and inexpensive option - I will be implementing it soon, but I have not tried it yet. Anyone used x-cart? Thanks, olinux --- Daniel Guerrier <[EMAIL PROTECTED]> wrote: > > Can anyone recommend a good and cheap shopping cart > and credit card processing combo. > > Based on PHP of course. > > Thanks > > > __ > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes > http://autos.yahoo.com > ATTACHMENT part 2 message/rfc822 > Date: Mon, 15 Jul 2002 08:58:39 -0700 (PDT) > From: Daniel Guerrier <[EMAIL PROTECTED]> > Subject: Credit Card Processing > To: [EMAIL PROTECTED] > > Can anyone recommend a good and cheap shopping cart > and credit card processing combo. > > Based on PHP of course. > > Thanks > > __ > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes > http://autos.yahoo.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Credit Card Processing - Take Two
You might check out http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/ Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Daniel Guerrier [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: [PHP] Credit Card Processing - Take Two Can anyone recommend a good and cheap shopping cart and credit card processing combo. Based on PHP of course. Thanks __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] outputting a pdf file to IE browser? POST/GET method bug or not?
> From: gilles [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 1:19 PM > Subject: [PHP] outputting a pdf file to IE browser? POST/GET > method bug or not? > error_reporting(E_ALL); > > session_start(); > if (!isset($_SESSION['download'])) { > @$_SESSION['download'] = $_POST['download']; > } > > if(isset($_POST["download"])){ > $file_name=$_SESSION['download']; > header("Content-type:application/pdf"); > header("Content-Disposition: inline;filename=\"mypdf.pdf\""); > header("Content-length:".(string)(filesize($file_name))); > header("location: $file_name"); > exit; > } > ?> > > > Your code runs fine on my freebsd box running php 4.2.1 and apache. I'd try changing the header into an echo, and see what you're sending to the browser. Are you meaning to only set the session var one time? You only set it when it's not set, so if you change the value of $_POST['download', the session var will still hold the first name. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cleaning HTML TAGS (headed)
This isn't any more effective but it is fewer lines of code.. $file = implode('', file("file.html")); preg_match('/(.*)<\/title>/', $result); $title = $result[1]; -Kevin - Original Message - From: "Juan Pablo Aqueveque" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 8:07 AM Subject: [PHP] cleaning HTML TAGS (headed) > Hi everyone. > Sorry for the trivial question. > > I want insert a .html inside of one .php file but without and > tags. > > I built a routine (shown it down) it's running OK but show me the title > () of my html. > > somebody can help with a routine a little me more effective than mine? > > Thanks in advance. > > --jp > > > My Routine: > > if ($myFile = fopen("html.html","r")) > { > while(!feof($myFile)) > { > $myLine = fgetss($myFile, 256,""); > $myLine = ereg_replace("\n","",$myLine); > print($myLine); > > > } > } > else > { > echo "file no found "; > > } > > > > > Juan Pablo Aqueveque <[EMAIL PROTECTED]> > Ingeniero de Sistemas > Departamento de Redes y Comunicaciones http://www.drc.uct.cl > Universidad Católica de Temuco. > Tel:(5645) 205 630 Fax:(5645) 205 628 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ^k ? -- how do I match that?
Hi! I keep getting that evil little character ... ^k from mac users (pre X) and I need to remove it. Does anyone know how to remove? This site has that character as a vertical tab. This character is what is used in MS Excel when people hit return inside a cell. If they copy and paste that into a form its ok, but when I export that data to a csv it gets ugly. http://www.robelle.com/smugbook/ascii.html Thanks in advance! Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cleaning HTML TAGS (headed)
Sorry.. I screwed up my preg_match string. It should have $file as the second parameter and also included an 'i' after the closing delimeter for a case-insensitive search. preg_match('/(.*)<\/title>/i', $file, $result); - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Juan Pablo Aqueveque" <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 2:33 PM Subject: Re: [PHP] cleaning HTML TAGS (headed) > This isn't any more effective but it is fewer lines of code.. > > $file = implode('', file("file.html")); > preg_match('/(.*)<\/title>/', $result); > $title = $result[1]; > > -Kevin > > - Original Message - > From: "Juan Pablo Aqueveque" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 15, 2002 8:07 AM > Subject: [PHP] cleaning HTML TAGS (headed) > > > > Hi everyone. > > Sorry for the trivial question. > > > > I want insert a .html inside of one .php file but without and > > tags. > > > > I built a routine (shown it down) it's running OK but show me the title > > () of my html. > > > > somebody can help with a routine a little me more effective than mine? > > > > Thanks in advance. > > > > --jp > > > > > My Routine: > > > > if ($myFile = fopen("html.html","r")) > > { > > while(!feof($myFile)) > > { > > $myLine = fgetss($myFile, 256,""); > > $myLine = ereg_replace("\n","",$myLine); > > print($myLine); > > > > > > } > > } > > else > > { > > echo "file no found "; > > > > } > > > > > > > > > > Juan Pablo Aqueveque <[EMAIL PROTECTED]> > > Ingeniero de Sistemas > > Departamento de Redes y Comunicaciones http://www.drc.uct.cl > > Universidad Católica de Temuco. > > Tel:(5645) 205 630 Fax:(5645) 205 628 > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ^k ? -- how do I match that?
Just try eregi_replace("\^k[.+]", "", $container); Regular expressions are the MASTERS of the INTARWEB! :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Jimmy Brake <[EMAIL PROTECTED]> 07/15/02 04:32PM >>> Hi! I keep getting that evil little character ... ^k from mac users (pre X) and I need to remove it. Does anyone know how to remove? This site has that character as a vertical tab. This character is what is used in MS Excel when people hit return inside a cell. If they copy and paste that into a form its ok, but when I export that data to a csv it gets ugly. http://www.robelle.com/smugbook/ascii.html Thanks in advance! Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Installing MYSQL on Windows
Hi, Can anyone tell me steps for installing MYSQL on windows ?? -Varsha __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Online Document
We are currently looking to put a very sizable document on a website so that it will be easily. The document is currently maintained by a single user in a MS Word format. Ideally it would be very nice if the index would take the user to the index of the appropriate section of the document, which would then drill down to the exact contents of that section. The document should also be easily updateable, via her web browser, by the user that has been tasked with maintaining the manual. Any suggestions for the design of such a project would be greatly appreciated. TIA Glenn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing MYSQL on Windows
Have a look at http://www.mysql.com/doc/W/i/Windows_installation.html Cheers Lee. - Original Message - From: "Varsha Agarwal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 10:12 PM Subject: [PHP] Installing MYSQL on Windows > Hi, > Can anyone tell me steps for installing MYSQL on > windows ?? > -Varsha > > __ > Do You Yahoo!? > Yahoo! Autos - Get free new car price quotes > http://autos.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Multi-Part PostToHost?
First, thanks to the people who've helped me so far. I'm a UI designer who's suddenly found himself responsible for a very large website that integrates services from no less than four different providers, and I've been dumped into learning PHP on my own under a heavy deadline. Anyway, I'm catching data from a form post and writing an XML document out of it. That's done, the server can process the XML correctly. But, from there, I need that file to be appended to a POST to a script on another server for processing. I've tried looking up how this is accomplished, and Richard Lynch was kind enough to point me in the direction of PostToHost, which got me off to a jump start on how to find more information. So now I'm at a point where I need help. After opening the socket, can I declare a multi-part POST and then start sending the data? Such as: fputs($fp, "Content-Type: multipart/form-data; boundary=AaB03x\n"); fputs($fp, "--AaB03x\n"); fputs($fp, "Content-Disposition: form-data; name="variable1"\n"); fputs($fp, "\n"); fputs($fp, "Variable 1 Data\n"); fputs($fp, "--AaB03x\n"); fputs($fp, "Content-Disposition: form-data; name="files"; filename="myFile.xml"\n"); fputs($fp, "Content-Type: text/plain\n"); fputs($fp, "\n"); fputs($fp, "... contents of myFile.xml ...\n"); fputs($fp, "--AaB03x--\n"); And again, I've only been doing PHP a week, so if I'm following a totally wrong track here, feel free to smack me around. As always, any help is greatly appreciated. ~Steve-o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Online Document
I would recommend applying a simple templating system to the file. Anything that needs to be extracted out of the page for navigation purposes will be enclosed in special characters such as a chapter title.. [:chapter = "CHAPTER 2: Beating a Dead Horse":]. A very simple script parses the file and extracts these strings to build an interactive Table of Contents. -Kevin - Original Message - From: "Glenn Antoine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 15, 2002 3:19 PM Subject: [PHP] Online Document > We are currently looking to put a very sizable document on a website so > that it will be easily. The document is currently maintained by a > single user in a MS Word format. Ideally it would be very nice if the > index would take the user to the index of the appropriate section of the > document, which would then drill down to the exact contents of that > section. The document should also be easily updateable, via her web > browser, by the user that has been tasked with maintaining the manual. > Any suggestions for the design of such a project would be greatly > appreciated. > > TIA > Glenn > > > -- > 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
Re: [PHP] Encoding problem ONLY with _command line_ PHP.exe
On Fri, Jul 12, 2002 at 11:02:54PM +0100, Emile Axelrad wrote: > Hello - My problem is as follows (I am trying to migrate from a mssql > server to a mysql server) OH! > The data in the MSSQL table is: Æã > > IF I call this PHP code from my browser (IE6) it results in the > following output: Æã and it also places into the MySQL database the > value: Æã > > However, if I call this PHP code from the command line, using "php.exe > test.php" it also results in the following output: Æã but it places into > the MySQL database: Æ This _could_ be happening because you're viewing the data using different systems and software. Each has it's own character sets. This could throw things off, making the output LOOK different, even when it's the same. > I am sure it is a character set issue, but for the life of me I cannot > work out why the command-line does not run the exact same script in the > same way as a browser would? The website could be running PHP as an Apache module (or some other binary) while the command line uses a standalone binary. They could be using different php.ini files. They could be different versions. --Dan A: No. Q: Is top posting okay? -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing MYSQL on Windows
On Mon, Jul 15, 2002 at 02:12:47PM -0700, Varsha Agarwal wrote: > > Can anyone tell me steps for installing MYSQL on windows ?? Very simple, step by step, instructions: http://www.analysisandsolutions.com/code/mybasic.htm --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Date () Help please
Hello all, I am very new to PHP and I have added some minor PHP to my website. I would like to make a PHP calander to keep track of things going on. Could someone tell me how I can get the first day of every month. For Example: 01 Jul 2002 was a Monday. 01 Mar 2002 will be a Thursday I need the dates to start my tables so they insert the numbers in the right day. Thanks, Attila -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date () Help please
$today = date("w"); // $today will result in '1' $today = date("D"); // $today will result in 'Mon' $today = date("l"); // $today will result in 'Monday' Now if you wanted to feed the script something like this: $string = "01 Jul 2002"; $today = date("l",strtotime($string)); This will result in the long textual day of '01 Jul 2002', so 'Monday' or if you interchange the "l" in the first part of the date function with "w" you will get the the day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday) or if you use "D" you will get the short textual day so 'Mon' I hope all of that makes sense to you. Check out the php manual for the function date and strtotime. http://www.php.net/date http://www.php.net/strtotime Rick "Trust in the Lord with all your heart, And lean not on your own understanding; In all your ways acknowledge Him, And he shall direct your paths." - Proverbs 3:5-6 > From: "Attila" <[EMAIL PROTECTED]> > Date: Mon, 15 Jul 2002 16:44:39 -0600 > To: [EMAIL PROTECTED] > Subject: [PHP] Date () Help please > > Hello all, > I am very new to PHP and I have added some minor PHP to my website. I > would like to make a PHP calander to keep track of things going on. Could > someone tell me how I can get the first day of every month. > > For Example: > 01 Jul 2002 was a Monday. > 01 Mar 2002 will be a Thursday > > I need the dates to start my tables so they insert the numbers in the right > day. > > Thanks, > Attila > > > > -- > 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
Re: [PHP] Apache 2.0 + PHP
I dont think Apache 2 or php 4.3.x are meant for production boxes.. My opinion, the latest verion of apache 1.3.x and php 4.1.2 (my test box is 4.2.1 but thats ok) Michael Hall wrote: >I've had a hunt through the mail archives but can't find a definite >answer: > >Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a >production environment? > >I guess the diversity of experiences described in the archives probably >means no, but what is the current opinion? Some of the archive messages >I read are quite old now. > > > >Michael Hall [EMAIL PROTECTED] > > > > > -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date () Help please
Ok your way works and thanks for the help but still struggling a little bit here is what I have. $year = date (Y); //This gets me the current year 2002 $month = date (m); //This gets me the current month 07 $day= 1; //always looking for the 1st day of the month $string = "$year $month $day"; $today = date("w",strtotime($string)); echo $today; My result is: 3 What am I doing wrong should this work Thanks for the help attila http://www.glorynaspiration.com "Richard Baskett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $today = date("w"); // $today will result in '1' > $today = date("D"); // $today will result in 'Mon' > $today = date("l"); // $today will result in 'Monday' > > Now if you wanted to feed the script something like this: > > $string = "01 Jul 2002"; > $today = date("l",strtotime($string)); > > This will result in the long textual day of '01 Jul 2002', so 'Monday' or if > you interchange the "l" in the first part of the date function with "w" you > will get the the day of the week, numeric, i.e. "0" (Sunday) to "6" > (Saturday) or if you use "D" you will get the short textual day so 'Mon' > > I hope all of that makes sense to you. Check out the php manual for the > function date and strtotime. > > http://www.php.net/date > http://www.php.net/strtotime > > Rick > > "Trust in the Lord with all your heart, And lean not on your own > understanding; In all your ways acknowledge Him, And he shall direct your > paths." - Proverbs 3:5-6 > > > > From: "Attila" <[EMAIL PROTECTED]> > > Date: Mon, 15 Jul 2002 16:44:39 -0600 > > To: [EMAIL PROTECTED] > > Subject: [PHP] Date () Help please > > > > Hello all, > > I am very new to PHP and I have added some minor PHP to my website. I > > would like to make a PHP calander to keep track of things going on. Could > > someone tell me how I can get the first day of every month. > > > > For Example: > > 01 Jul 2002 was a Monday. > > 01 Mar 2002 will be a Thursday > > > > I need the dates to start my tables so they insert the numbers in the right > > day. > > > > Thanks, > > Attila > > > > > > > > -- > > 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
Re: [PHP] Date () Help please
OK thought I should share in case any needs it but got it to work. Here is what it looks like and thanks to Richard Baskett for the help. $yr= date (Y); $mnth = date (F); $dy= 1; $string = "$dy $mnth $yr"; $today = date("w",strtotime($string)); Thanks for the help Attila http://www.glorynaspiration.com "Attila" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok your way works and thanks for the help but still struggling a little bit > here is what I have. > > $year = date (Y); //This gets me the current year 2002 > $month = date (m); //This gets me the current month 07 > $day= 1; //always looking for the 1st day of the month > $string = "$year $month $day"; > $today = date("w",strtotime($string)); > echo $today; > > My result is: 3 > > What am I doing wrong should this work > > Thanks for the help > attila > http://www.glorynaspiration.com > > > > > "Richard Baskett" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > $today = date("w"); // $today will result in '1' > > $today = date("D"); // $today will result in 'Mon' > > $today = date("l"); // $today will result in 'Monday' > > > > Now if you wanted to feed the script something like this: > > > > $string = "01 Jul 2002"; > > $today = date("l",strtotime($string)); > > > > This will result in the long textual day of '01 Jul 2002', so 'Monday' or > if > > you interchange the "l" in the first part of the date function with "w" > you > > will get the the day of the week, numeric, i.e. "0" (Sunday) to "6" > > (Saturday) or if you use "D" you will get the short textual day so 'Mon' > > > > I hope all of that makes sense to you. Check out the php manual for the > > function date and strtotime. > > > > http://www.php.net/date > > http://www.php.net/strtotime > > > > Rick > > > > "Trust in the Lord with all your heart, And lean not on your own > > understanding; In all your ways acknowledge Him, And he shall direct your > > paths." - Proverbs 3:5-6 > > > > > > > From: "Attila" <[EMAIL PROTECTED]> > > > Date: Mon, 15 Jul 2002 16:44:39 -0600 > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] Date () Help please > > > > > > Hello all, > > > I am very new to PHP and I have added some minor PHP to my website. I > > > would like to make a PHP calander to keep track of things going on. > Could > > > someone tell me how I can get the first day of every month. > > > > > > For Example: > > > 01 Jul 2002 was a Monday. > > > 01 Mar 2002 will be a Thursday > > > > > > I need the dates to start my tables so they insert the numbers in the > right > > > day. > > > > > > Thanks, > > > Attila > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and Jigsaw
I've been trying to get a simple php page to produce any output through a Jigsaw server. I've got past the problem of cgi.redirect and now my server launches php and returns a "page" but it's blank. There is no evidence of my html or php code having been seen by the server. I've run the php script from the command line and I get the html code I'd expect. With Jigsaw's debug facility DISabled for the cgi scripts I get the following html served to the browser: which produces a totally empty, white page. With Jigsaw's debug facility Enabled, I get two lines on the page and the same two lines (without html tags of any sort) in "view source" display: X-Powered-By: PHP/4.2.1 Content-type: text/html At this point, my php script file contains only php commands - no html. Any clues? Murray Nicholas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Editing files by line
-Original Message- From: Analysis & Solutions Sent: Friday, July 12, 2002 9:57 AM To: PHP List Subject: Re: [PHP] Re: Editing files by line >Unfortunately, if a file is opened for appending via fopen('name', 'a'), >the manual says the data is put at the end of the file regardless of using >fseek(). > > --Dan I've written a script that edits a specific line in a text file and saves the changes to the file for that specific line. I've noticed though that I can't edit the first line in the file, which would be zero in the array created by the file() function. When I write the edited data back to the file I am using "w+" as the mode. Is this related to the array or to the file mode? -- Onaje Johnston -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Editing files by line
On Mon, Jul 15, 2002 at 08:46:14PM -0400, Onaje Johnston wrote: > > I've written a script that edits a specific line in a text file and saves > the changes to the file for that specific line. I've noticed though that I > can't edit the first line in the file Without seeing the script, it'd be hard for us to say. So, post the _relevant parts_ of the script to the list. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: NMTP server and db
> > - how is it possible to run a php script periodicly? > > Depends on your OS. If you're on Linux or similar then use cron. If you're > on > Windows NT/2k, use AT. If you're on Windows 9x IIRC there is a scheduler > in the > control panel. AT seemed flaky when I tried to use it. You can use the Program Scheduler and have it open up IE with an address. The command line would be something like C:\whatever\path\iexplore.exe http://www.yourpage.com/script.php And somewhere in the config you can tell it to "End this program after X minutes". Set that at whatever and IE will shutdown after that many minutes. Seems to work well if you can't get AT working... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Installing MYSQL on Windows
> Hi, > Can anyone tell me steps for installing MYSQL on > windows ?? Umm...download, unzip, run the setup program. How hard is that? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Date () Help please
You could use mktime() with date, too... $first_day = date("w",mktime(0,0,1,$month,1,$year)); Set your $month and $year accordingly. ---John Holmes... > -Original Message- > From: Attila [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 8:07 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Date () Help please > > OK thought I should share in case any needs it but got it to work. Here > is > what it looks like and thanks to Richard Baskett for the help. > > $yr= date (Y); > $mnth = date (F); > $dy= 1; > $string = "$dy $mnth $yr"; > $today = date("w",strtotime($string)); > > Thanks for the help > Attila > http://www.glorynaspiration.com > > > "Attila" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Ok your way works and thanks for the help but still struggling a little > bit > > here is what I have. > > > > $year = date (Y); //This gets me the current year 2002 > > $month = date (m); //This gets me the current month 07 > > $day= 1; //always looking for the 1st day of the > month > > $string = "$year $month $day"; > > $today = date("w",strtotime($string)); > > echo $today; > > > > My result is: 3 > > > > What am I doing wrong should this work > > > > Thanks for the help > > attila > > http://www.glorynaspiration.com > > > > > > > > > > "Richard Baskett" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > $today = date("w"); // $today will result in '1' > > > $today = date("D"); // $today will result in 'Mon' > > > $today = date("l"); // $today will result in 'Monday' > > > > > > Now if you wanted to feed the script something like this: > > > > > > $string = "01 Jul 2002"; > > > $today = date("l",strtotime($string)); > > > > > > This will result in the long textual day of '01 Jul 2002', so 'Monday' > or > > if > > > you interchange the "l" in the first part of the date function with > "w" > > you > > > will get the the day of the week, numeric, i.e. "0" (Sunday) to "6" > > > (Saturday) or if you use "D" you will get the short textual day so > 'Mon' > > > > > > I hope all of that makes sense to you. Check out the php manual for > the > > > function date and strtotime. > > > > > > http://www.php.net/date > > > http://www.php.net/strtotime > > > > > > Rick > > > > > > "Trust in the Lord with all your heart, And lean not on your own > > > understanding; In all your ways acknowledge Him, And he shall direct > your > > > paths." - Proverbs 3:5-6 > > > > > > > > > > From: "Attila" <[EMAIL PROTECTED]> > > > > Date: Mon, 15 Jul 2002 16:44:39 -0600 > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP] Date () Help please > > > > > > > > Hello all, > > > > I am very new to PHP and I have added some minor PHP to my > website. > I > > > > would like to make a PHP calander to keep track of things going on. > > Could > > > > someone tell me how I can get the first day of every month. > > > > > > > > For Example: > > > > 01 Jul 2002 was a Monday. > > > > 01 Mar 2002 will be a Thursday > > > > > > > > I need the dates to start my tables so they insert the numbers in > the > > right > > > > day. > > > > > > > > Thanks, > > > > Attila > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php