[PHP] MySQL - Quicken
I've got a client who wants to be able to export some stuff from a MySQL database in a format that Quicken can import to print some checks. Is this possible? From what i've seen, Quicken takes a proprietary format. Any info would be appreciated. Thanks, Joe
RE: [PHP] PHP Interact with DreamWaver
There is some very basic PHP extensions on the DW UD exchange site .. I have used mainly DW4 with php no problems.. however I must also say I do the bulk of my php coding in Homesite 4.5 from there go in to dw Peter -Original Message- From: rm [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 3:13 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Interact with DreamWaver I used to use DW 3.x and it would mangle the php code. I tried a demo version of DW 4.0 and it makes allowances for php code. To my knowledge there is no way to fix DW 3.x to properly work with php code. I've since changed to Homesite, after you get the hang ot it, it's better than dreamweaver. I understand there are some extensions at DW home page for php...but I'm not 100% sure, also supposedly some docs about using php and DW 4.0...again I'm not 100% sure. KB --- Jack [EMAIL PROTECTED] wrote: Dear All I'm fresh on the php, but i just want to ask what should i do to let my __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/
Re: [PHP] Turning Off Headers
Is there any way to tell PHP to NOT produce a Mime Header? None, none at all... Not a Content-type:, nothing... For the CGI version use php -q For the module version it isn't PHP sending the content-type, it is Apache. And no, there is no way to stop Apache from sending a content-type as far as I know. -Rasmus
[PHP] inserting a variable into a variable
Hello all, I have come to a situation where i am having a variable inside another variable. for example. $rm_$cat_adt The above is a variable and $cat is again another variable This does not work.. Need some help! Thanks, Hasan
Re: [PHP] Pie Charts Bar Charts Line Charts...
Use Macromedia's Generator 2.0 along with flash 5.0. This gives ability to connect to database - php with flash object. manisha At 08:45 AM 6/12/01 -0700, Karl J. Stubsjoen wrote: Hey Guys, Anyone have any good starting points for delivering charts on the web? Thanks a bunch. Karl J. Stubsjoen www.iexcelinlife.com [EMAIL PROTECTED] Phone: 602.447
Re: [PHP] HELP problems running PHP4 script in CRON
I think your troubles are that you need a #!/path/to/php or you can start it with php -f file.php Julia Quoting Splashy ([EMAIL PROTECTED]): Hi, Please find script below and hopefully tell me why when I run it over the web it works perfectly but when I run it using cron or in a telnet session it errors saying no such file or directory. THIS IS THE ERROR /* ./fetch_news.php: ?: No such file or directory ./fetch_news.php: syntax error near unexpected token `fetchnews($mysourcefile,$m youtputfile,$myflashvar)' */ THIS IS THE SCRIPT ? #Requires 3 Params #$mysourcefile = path to content source html file #$myoutputfile = path to content output html file #$myflashvar = Flash variable you wish to assign the content to eg:mynews, mytechnology function fetchnews($mysourcefile,$myoutputfile,$myflashvar) { $mysource=fopen($mysourcefile,r) or die (Couldn't open the Source file); $myoutput=fopen($myoutputfile,w) or die (Couldn't open the Output file);; fwrite($myoutput,$myflashvar); while (!feof($mysource)) { $myline=fgets($mysource, 1024); $stripquotes=eregi_replace(#039,`,$myline); $stripcolors=eregi_replace(COLOR=\#.*\,,$myline); if (eregi('^a.*\/abr',$stripcolors)) { $newanchor=eregi_replace(br,,$stripcolors); fwrite($myoutput,$newanchorbr); } } fclose($myoutput); fclose($mysource); } ? ? fetchnews(http://www.moreover.com/cgi-local/page?c=Graphics%20industry%20ne wso=html,graphicsnews.php,mynews=); ? All help and advise is as always gratefully received! Splashy. -- [ Julia Anne Case ] [Ships are safe inside the harbor, ] [Programmer at large] [ but is that what ships are really for.] [ Admining Linux ] [ To thine own self be true. ] [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
[PHP] how to delete cookies
I have a site that is password protected using PHP and MySQL. I would like to give people the option to log out. I've tried to set the cookie without setting the time but that only deletes the cookie when the browser session ends. Is there a way to delete it all together? . Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.com/ .
[PHP] Delete me in the mail group
Dear Sir, Can you delete my email address in the mail group? Thanks!
[PHP] List of included file names.
Hi, I searched the archives for this. For debugging purposes, I want to see a list of the included files on a page in HTML comments. PHP_SELF and HTTP_SERVER_VARS[SCRIPT FILENAME] only returns the name + path of the file calling the included files. I want each included file to contribute its name to the page. Is there any way to do that so that the HTML source looks like this: !-- These files contribute to this page - - !-- species_inc.php - - !-- db_connect_inc.php - - !-- constants_inc.php - - Thanks Tim
Re: [PHP] Hurray!
At 22.06.2001 08:45, you wrote: Wow, its so nice to have the lists back. I missed getting hundreds of mails a day. You need to post more on usenet or other spambot-roaming-grounds... That way they'll always keep your Maildir busy with the lovely Free XXX messages, hopefully you'll get atleast 5 of each from the same From: so they'll leave you with the option whether or not to send 5 x [EMAIL PROTECTED] (because you're pissed of at the admin for not securing his sendmail-by-default). -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.
Re: [PHP] apache and php ate up all my memory :-[
At 19.06.2001 15:37, you wrote: Hi all Probably some Apache/mysql/php-Admin gurus can give me a hint : i just moved a website to it's own server ( my first one). now apache had eaten up all physical and virtual memory some httpd had allocated 45MB of RAM, memory ran out myqsl crashed... snipped techie details My best guess is that somewhere in the code for your site you have a loop which either allocations or fills up memory with variables on each loop... For some reason this loop didn't exit as you ment it to, and therefore proceeded to eat as much ram as it possibly could chew in the time it should be allowed to run. You didn't say, but my guess is that this is running some Linux flavor, and due to the poor-ish mem-handling under Linux the box bogged down when it realized that it had nada physical and virtual memory left and therefore did get around to killing the apache-process running the runaway script before you got around to doing it... -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.
Re: [PHP] Payflo Pro and credit cards
On Tue, 19 Jun 2001, Tobias Talltorp wrote: I have a few questions regarding credit cards and the Payflo Pro function in PHP. Currently I only need to check that the creditcard is valid, no actual payment is needed right now. 1) How do I perform this check against Payflo Pro? This should be covered in the PDF document which should come with your developer's kit. But the quick answer is you run an authorization instead of a sale, for a small amount (=$1.00). 2) How and where should I save the credit card numbers? In a file outside the webroot that I can crypt, in a database that I can crypt (can MySQL do this)? That's an implementation issue that depends on a lot of things. Two-way encryption is nice, but it's more important to prevent the data, even encrypted, from ever getting stolen. If you can afford it, I'd look into storing them on a private database server which runs a minimal set of services and is only accessible from specific machines. How you do the encryption is up to you..mysql has some built in crypto functionality, but my guess is the mcrypt extension in PHP will offer you far more flexibility. Thanks in advance, // Tobias Talltorp -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD
Re: [PHP] validate phone numbers
Richard Kurth [EMAIL PROTECTED] wrote: I am using this script to validate for phone numbers and it work just perfect for US phone numbers. But it rejects some European and Australian numbers what do I need to do to make it validate all phone numbers if (($WPHONE_NO) || ($wphone_no)) { $wphone_no = trim($wphone_no); if ($WPHONE_NO) $phone_no = trim($WPHONE_NO); if (!ereg((^(.*)[0-9]{3})(.*)([0-9]{3})(.*)([0-9]{4}$), $wphone_no)) { print_error(your bphone number/b is invalid); } } It would be helpful if you post a list of the range of phone numbers you are encountering that you are having a problem with. Or I can get you started by saying that I think you're regular expression is saying beginning with anything, then exactly 3 numbers, then anything, then exactly 3 numbers, then anything, then ending in exactly 4 numbers. Changing a {3} to {3,4} would mean match 3-4 occurences of what's to the left. Hopefully that will get you started, if you post some other numbers you want to pass validation we can be of more assistance. regex are very powerful and I recommend you add them to your training. That said, people enter #s in many different formats and sometimes it's necessary to enter a # like 011-817-972-1086 x103 or 817-972-1086, 1, 3, 12 if you're dealing with business numbers with extensions or automated systems that have to be traversed. So you may be better off not validating the phone #. YMMV. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/
[PHP] NONE
Hi every body, I look for some plase to find good programs for APACHE web server on Windows, such as PHP for windows, Proxy Server, ASP Support with Apache, etc., Is there any one to help me? With best regaurds Ali Amirnezhad
[PHP] .htaccess logout sequence
Hi All. I have a query which has confused me a bit. I have a database setup where I use htaccess (using apache/php/mysql on a freebsd 3.4 box) to grant access, then it grabs the users info from the database, sets a cookie and pretty much lets the system know whos doing what on the db. What I do want to do however is have the facility to have a logout option where it ditches all info about the current logged in user, fires them back to the start of the system and re-requests the htaccess login window. My past attempts have failed miserably so I thought I would ask around and see if anyone else has had any success (without changing to a different method of auth :) Cheers Chris Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 If the foo shits, call your sysadmin
[PHP] PHP based associate program software
Does anyone know of a PHP/mysql based associate program software solution. Thanks, Chuck
Re: [PHP] Store PHP Code in MySQL?
Hi, ? while($data = mysql_fetch_array($result)) { echo $data[text]; } eval($data['text']); ? That'll work :-) http://www.php.net/manual/en/html/function.eval.html read that for more information. = * http://www.geocities.com/mimodit * __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: [PHP] Re: Lists are back up
At 19.06.2001 15:59, A. Skwar wrote: So sprach Wico de Leeuw am Tue, Jun 19, 2001 at 01:09:49PM +0200: I don't know which ancient version you are using but version 5+ can filter on cc: Don't know about Eudora, but filters in webmailers (like gmx.de) cannot filter on CC, nor can Lotus Notes 4.x filter reliably on CC. Those are both products I use regularly. Since when did webmailers become a suitable and efficient MUA to use on medium-to-high-volume mailingslists ? Further why not filter it on the server through use of address-extentions like most servers (apart from sendmail, but who wants to use sendmail?) support, that would give excellent conditions even for webmails that can't do anything apart from dish out your password in plaintext... Notes can filter, but as you say, not very good, but then again Notes is a poor emailclient as it can't thread and it doesn't follow any standards and even breaks a few conventions... Filtering on user-variable data is a poor deal, it's to easy to get mail filtered wrong because of some (l)user putting [PHP] in the topic, or what ever you filter on, if somebody replies to you offlist without changing topic, you don't want the reply to go to the same place as the rest of the list... you get the picture... -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.
[PHP] Sessions: auto appending session id to URLs
I have developed shopping carts and session related Web sites for my employer where we have control over the php environment. On our servers, we do not enable the 'trans-sid' option. I'm now trying to set up a session related site for a friend of mine on a Web host of her choosing. On this host, php was compiled with enable-trans-sid. It means that on the first page of the site one visits, you get a horrid looking variable name screaming at you in all caps appended to every URL. I'm used to giving my session a much more friendly looking name and then manually appending that to each url. Right now that means that urls on the first page have this very lovely format: http://mydomain.com/new.php?sid=496312b318b435c21e1e13016f7e8262PHPSESSID=4 96312b318b435c21e1e13016f7e8262 The session info is there twice. Once you reload the page or go to another page, the auto appended stuff (PHPSESSID=496312b318b435c21e1e13016f7e8262) goes away. Is there a way to stop this from happening when trans-sid has been enabled via the compile? Thanks for any help, beth ___ [EMAIL PROTECTED] [EMAIL PROTECTED] http://miriland.com/ http://www.stigma.com
RE: [PHP] automatic page view
I am working on a admin page where companies log in to there own company admin page. Can anyone help out with a script to have the username and password directly linked to there own company admin page. That's a pretty vague and nebulous request - if you ask us something specific, we can probably help you. Jason
[PHP] unsubscribe php-general
unsubscribe php-general
Re: [PHP] automatic page view
I would set your database up like so. tablecompany idcompany otherstuff tableusernamepass compidusernamepassword Make the ID in the tablecompany auto_increment then test the tableusernamepass compid against it when the user properly logs in. Exampe of the entries in the database: tablecompany 1Company 1All the other stuff 2Company 2A Different company tableusernamepass 1Username Password 2UsernamePassword// A user for company 2 2AnotherUserPassword// A user for company 2 2AnotherUserPassword// A user for company 2 That should give you an idea. Hope this helps. Regards, Ray
[PHP] list back
I miss the feeling of having over a hundred mails a day, glad it is back again. Jack[EMAIL PROTECTED]"Love your enemies, it will drive them nuts"
[PHP] perl2php - question
Hi to all of you again!! I have a perl-script for sending a mail (don't ask - I *need* it for sending mails!). In perl I use it like: -- open(MAIL, |mail.pl); print MAIL From: \xx\@xx.com\ xx\@xx.com\n. To: \xx\@xx.com\ xx\@xx.com\n. Subject: TEST\n\n. This is the body;#[EMAIL PROTECTED] is only example close(MAIL); $error=($? 8); if ($error) { print Error: .$error.\n;} -- 1. how to do this: open(MAIL, |mail.pl); print MAIL $message; close(MAIL); 2. how to do a return-value-check (in perl I get 0 if no error, 1 if an error occured in mail.pl) tanks witty -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
Re: [PHP] PHP Interact with DreamWaver
Hi, I've got Dreamweaver UD 4, by default it supports ASP, JSP, and ColdFusion - as of yet Macromedia isn't overly interested in supporting PHP as there is no company backing it. There are however several PHP engine extensions in the works for PHP4 - they're on release 0.6.8 now I think, so its not exactly ready for production level work. I had the beta engine installed on my machine until UD started acting up - I don't know if it was a result of the beta PHP engine or some other extensions I installed from Macromedia's website. For the most part, I'll design the site in UD, and any scripting that it won't handle (and even some that it will) I'll use a text web editor such as HotDog or Homesite to add the necessary code. I'm also looking forward to the day UD supports PHP :) Thanks -Tim
RE: [PHP] inserting a variable into a variable
why don't you do something like $var = $foo $baa; ? -Original Message- From: Hasan Niyaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] inserting a variable into a variable Hello all, I have come to a situation where i am having a variable inside another variable. for example. $rm_$cat_adt The above is a variable and $cat is again another variable This does not work.. Need some help! Thanks, Hasan
Re: [PHP] inserting a variable into a variable
I have come to a situation where i am having a variable inside another variable. for example. $rm_$cat_adt This works for me: ? $cat=def; ${abc_.$cat._ghi}=TEST; echo 'abc_.$cat._ghi = '.${abc_.$cat._ghi}.br\n; echo 'abc_def_ghi = '.$abc_def_ghi.br\n; ? michi -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
[PHP] array_search
Hi How to figure out of a value is found using array_search ? eg: $myarray = array(val1,val2,val3); if(array_search(val2,$myarray)) { print Value found; } the above will work, but... if(array_search(val1,$myarray)) { print Value found; } the above will not work as val1 is key 0, how can I solve this ? Thanks in advance Steen
[PHP] RE: Lists are back up
Title: RE: Lists are back up Hi Rasmus! Thank You for sharing that; I was beginning to fear that I had been permanetly banned. ;-) Good work! Best Regards, Henrik J. -- From: Rasmus Lerdorf[SMTP:[EMAIL PROTECTED]] Sent: den 18 juni 2001 21:15 To: [EMAIL PROTECTED] Subject: Lists are back up We have re-enabled the PHP mailing lists. They are now running from a temporary machine sitting on the floor of my spare bedroom. A more permanent home is in the works. -Rasmus
[PHP] bad form...
hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah thank you for you help!
RE: [PHP] Turning Off Headers
If your using the standalone binary, I /think/ its something like php -q If it's the module in apache, you will have a problem as apache itself will add a certain degree of header information. -Original Message- From: Meles Meles [mailto:[EMAIL PROTECTED]] Sent: 19 June 2001 14:03 To: [EMAIL PROTECTED] Subject: [PHP] Turning Off Headers Is there any way to tell PHP to NOT produce a Mime Header? None, none at all... Not a Content-type:, nothing... Badger [EMAIL PROTECTED] ---
RE: [PHP] HELP problems running PHP4 script in CRON
At the top, put: #!/path/to/php -q ? ...code... ? The reason itsgiving you those errors is because it doesnt no what interpreter to use for the script. Of course, your going to have to have the standalone binary of php built, not the apache module. On a side note, does anyone know if you can get php to build both at the same time? The binary and the .so module? At the moment, I just have to compile twice. Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original Message- From: Splashy [mailto:[EMAIL PROTECTED]] Sent: 19 June 2001 15:29 To: [EMAIL PROTECTED] Subject: [PHP] HELP problems running PHP4 script in CRON Hi, Please find script below and hopefully tell me why when I run it over the web it works perfectly but when I run it using cron or in a telnet session it errors saying no such file or directory. THIS IS THE ERROR /* ./fetch_news.php: ?: No such file or directory ./fetch_news.php: syntax error near unexpected token `fetchnews($mysourcefile,$m youtputfile,$myflashvar)' */ THIS IS THE SCRIPT ? #Requires 3 Params #$mysourcefile = path to content source html file #$myoutputfile = path to content output html file #$myflashvar = Flash variable you wish to assign the content to eg:mynews, mytechnology function fetchnews($mysourcefile,$myoutputfile,$myflashvar) { $mysource=fopen($mysourcefile,r) or die (Couldn't open the Source file); $myoutput=fopen($myoutputfile,w) or die (Couldn't open the Output file);; fwrite($myoutput,$myflashvar); while (!feof($mysource)) { $myline=fgets($mysource, 1024); $stripquotes=eregi_replace(#039,`,$myline); $stripcolors=eregi_replace(COLOR=\#.*\,,$myline); if (eregi('^a.*\/abr',$stripcolors)) { $newanchor=eregi_replace(br,,$stripcolors); fwrite($myoutput,$newanchorbr); } } fclose($myoutput); fclose($mysource); } ? ? fetchnews(http://www.moreover.com/cgi-local/page?c=Graphics%20industry% 20ne wso=html,graphicsnews.php,mynews=); ? All help and advise is as always gratefully received! Splashy.
RE: [PHP] SetCookie weirdness
This is actually a security feature of cookies, so that domains that dont match your cookie cannot read personal details set by another site. Don't worry, its all in order ;) Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original Message- From: Tomaz Kovacic [mailto:[EMAIL PROTECTED]] Sent: 19 June 2001 12:36 To: [EMAIL PROTECTED] Subject: [PHP] SetCookie weirdness Hi! Last night I've found some interesting cookie behavior. I was testing some script on my local server, so I used short version of domain ( http://www ) to reach local webserver. My script stopped working, so I started to investigate a little bit what's goin on.. I've managed to get my script working only when i user SetCookie command with only 3 parameters: SetCookie (mycookie, $cookie, time()+1200); My usual form of setting cookie is with all 6 arguments like: SetCookie(mycookie, $cookie, time()+1200, /, .domain.com, 0); But if I use longer form if domain: www.local (same as www.somedomaing.com) my longer form of setting cookie started to work again. Weird. Anyone experianced similar problems? Tomaz
[PHP] php auth user
Hi people We all know we use PHP_AUTH_USER for login auhenthication, how about when we need to logout? Can we just simply link them to someplace else or do we need to anything special beside normal link? cheers Jack[EMAIL PROTECTED]"Love your enemies, it will drive them nuts"
RE: [PHP] Store PHP Code in MySQL?
Eval($var); That should execute the code I've never tried this to be honest, you will have to let me know your findings. I was thinking of doing something like it in perl, so that you could have a small daemon running, and it connects to a master server and updates its own code somehow... Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original Message- From: Joseph Koenig [mailto:[EMAIL PROTECTED]] Sent: 19 June 2001 23:23 To: [EMAIL PROTECTED] Subject: [PHP] Store PHP Code in MySQL? I've been playing a little bit trying to store some PHP code in MySQL and get it to execute. However, it behaves just like expected in that it just displays the code, and doesn't execute it. Essentially, i want to do this: ? while($data = mysql_fetch_array($result)) { echo $data[text]; } ? With $data[text] containing: ? echo $var; ? Anybody know a way to actually make this work? Thanks, Joe
RE: [PHP] inserting a variable into a variable
What on earth are you trying to do? :) I'm not sure what your getting at, do you mean defining a variable based on another variables name? Perhaps try using an array, and specifying $rm($cat) Sorry, im not too sure what you mean Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original Message- From: Hasan Niyaz [mailto:[EMAIL PROTECTED]] Sent: 20 June 2001 04:07 To: [EMAIL PROTECTED] Subject: [PHP] inserting a variable into a variable Hello all, I have come to a situation where i am having a variable inside another variable. for example. $rm_$cat_adt The above is a variable and $cat is again another variable This does not work.. Need some help! Thanks, Hasan
[PHP] PHP conference?
Anyone know when and how you can sign upfor the conference in Franfurt (5-7 Nov 2001)? Can't find any information at there website, someone who can help me?! :o) Regards Johan
[PHP] safe_mode
If i had safe_mode = On; in php.ini, How do i set to have a certain directory that have safe_mode=Off ?
[PHP] parent and grandparent member functions
Hello, I hit a wall. No offense, but this OO stuff in PHP is somehat weird, but skip to the problem. I have for example three classes: class a { function make() { // some code } } class b extends a { function make() { // some code parent::make(); } } class c extends b { function make() { // some code parent::make(); } } now the class 'c' is instantiated and the member function 'make' is called. All works up to the point where 'b'::make calls parent::make(). It seems to call itself :(. I can understand this is logical behaviour since it's still an instance of class c, so parent:: is still b::, but how should I call that grandparent's make()??? This doesn't seem like a good OOP. For example delphi's 'inherited' works relative to the class it's used in and it is way more useful than php's way. is there any elegant soultion(s) to my problem? Lenar Lõhmus
[PHP] Include Speed
Hi everybody, How much the include() can slow down the execution of the scripts; if I call one file let say for the db connection it's clearly ok but is it a limite of numbers of include in one script from where that slow the process? Marc -- /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/* /* Marc Fourny /* /* Multimedia Development for the web /* /* /* /*CD-ROM/* /* Fourny ElectronicEDiting /* /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
Re: [PHP] php and flash 5 books?
Hi Jay, Julie Melonie participate to the redaction of a book on FLASH 5; see infos on her website at http://www.thickbook.com you can also find there some tutorial on the subject. Marc Jay Paulson wrote: Anyone know of any good books that actually deal with php interfacing with flash 5? I've found one book but just curious if there are others out there... thanks, jay -- /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/* /* Marc Fourny /* /* Multimedia Development for the web /* /* /* /*CD-ROM/* /* Fourny ElectronicEDiting /* /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
[PHP] Saving to a file
Hi, Sorry for the stupid question, but i don't have at me a PHP manual and I want to save some string to file from PHP. Can someone tell me how ( with what function to do this ) ? Thanks Rosen
[PHP] PHP conference?
Anyone know when and how you can sign upfor the conference in Franfurt (5-7 Nov 2001)? Can't find any information at there website, someone who can help me?! :o) Regards Johan
Re: [PHP] NONE
www.google.com Pavel - Original Message - From: Ali Amirnezhad [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 5:47 AM Subject: [PHP] NONE Hi every body, I look for some plase to find good programs for APACHE web server on Windows, such as PHP for windows, Proxy Server, ASP Support with Apache, etc., Is there any one to help me? With best regaurds Ali Amirnezhad
Re: [PHP] Problem with MySQL String limits?
On Fri, 22 Jun 2001 19:52, Null wrote: In a script I have an update query adding on to a LONGTEXT field in my database. Strangely it will no longer work after seemingly random string lengths. So far, one row stopped adding at 440 bytes and another at 1049 bytes. mysql_query(UPDATE dod_news SET Comments='$comments', NumComments=NumComments+1 WHERE Num = $Num); Num is correct, but strangely it doesn't do ANY of the query when this occurs. I have no idea why it started doing this but any help would be appreciated. Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1 Content-Transfer-Encoding: quoted-printable Content-Description: Echh, Outhouse does odd things :-) Try adding echo mysql_error() after you call the query and see what sort of error is returned. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA My stereo's half-fixed, said Tom monotonously.
[PHP] email templates and str_replace
I am trying to set up a template for an email program below you will see the test program the $mail_template is pulled from a database that is pre saved when it is saved the Placeholders are filled in using str_replace. that is what I want it to do. But it does not work. What am I missing hear. $mail_template= html head titleWeb Hosting At ##hostdomain## /title /head body bgcolor='#C4C9DB' font size='4' color='#008080'strongDear ##fullname## /strong/font brbr font size='4' color='#008080'strongYour webhosting account has been created. Please use the following data to log in to ##domain## /strong/font br font size='4' color='#008080' strongul type=square liDomain:##domain## /li liIP-Address: ##ip## /li liUsername: ##username##/li liPassword: ##password##/li liMysql Database: ##userdatabase## /li liMysql Username: ##newuser## /li liMysql Password: ##newuserpass## /li /ul /strong /font font size='4' color='#008080'strongThanks for choosing ##hostdomain## br Any Questions e-mail ##sales##@##hostdomain##/strong /font /body /html ; /* message*/ //$mail_template = $message; $fullname=Richard Kurth; $email=[EMAIL PROTECTED]; $hostdomain=northwesthost.com; $hostname=www; $domain=twohot; $tld=.com; $baseip=234.444.45.444; $username=rkurth; $password=boat; $userdatabase=twohot; $newuser=twohot; $newuserpass=twohot; $sales=sales; $domainname=$hostname . . . $domain . $tld; $mail_content = str_replace('##fullname##',$fullname,$mail_template); $mail_content = str_replace('##email##',$email,$mail_template); $mail_content = str_replace('##domain##',$domainname,$mail_template); $mail_content = str_replace('##ip##',$baseip,$mail_template); $mail_content = str_replace('##username##',$username,$mail_template); $mail_content = str_replace('##password##',$password,$mail_template); $mail_content = str_replace('##userdatabase##',$userdatabase,$mail_template); $mail_content = str_replace('##newuser##',$newuser,$mail_template); $mail_content = str_replace('##newuserpass##',$newuserpass,$mail_template); $mail_content = str_replace('##hostdomain##',$hostdomain,$mail_template); $mail_content = str_replace('##sales##',$sales,$mail_template); /* and now mail it */ /* recipients */ $recipient = $fullname $email ; //header $headers .=From: Sales Department [EMAIL PROTECTED] \n; $headers .= reply-To:$from\nX-Mailer: PHP/ .phpversion(). \n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; //subject $subject1 = $subject; //mail($recipient, $subject1, $mail_content, $headers); //print $recipient, $subject1, $mail_content, $headers; echo $mail_content; Best regards, Richard mailto:[EMAIL PROTECTED]
Re: [PHP] HTTP_POST_VARS not picking up checkboxes that areunchecked
The thing can do is as follows: When i want check such empty boxes, i call up the $HTTP_POST_VARS just like you. BUT what i do next ist that while listing those vars i insert an if statement like if (!strstr($key,checkbox_name)) {echo ($error);} So i do a stringmatch with the key and the name... this way you can check all checkboxes if the have generic starting like check_01 check_02 so then you just ask if (!strstr($key,chec)) {echo ($error);} For strstr function see the manual if you dont know. Another way is as follows... And its probably the best!. You can start putting checkbox values into an array... like this input type=checkbox name=?php echo(cb_[$i]); ? value=bla cb_ then represents the array and THIS array gets transported within the $HTTP_POST_VARS or rather exists as long as the page is up or reloaded. Inside the listing of $HTTP_POST_VARS you then just do another array listing for the cb_ array like this: while (list($key, $val) = each($HTTP_POST_VARS)) { if (strstr($key,'cb_')) { $v_ok=1; while (list($key, $val) = each($cb_)) { $v_liste.=' '.$val; $v_user_liste = eregi_replace($val,,$user_liste); } } } The only backdrop is that you would have to initilaize those array elements with an '' before Works very nicely for me though.. since most checkbox elements are groups and get pulled out of a database. So the initializing is generic too ;) Maybe this helps, regards Jens on 19.06.2001 1:46 Uhr, Tom Beidler at [EMAIL PROTECTED] wrote: I have a form with approximately 40 input fields. When a form is posted it sends an email and then builds a tab delimited $txt entry for a text file on the server. The problem is that if a checkbox is not checked, when it's not required, I don't get a blank entry in my tab file for the checkbox input. I'm imploding my HTTP_POST_VARS variable like so; reset($HTTP_POST_VARS); while (list($var, $value) = each($HTTP_POST_VARS)) { if (is_array($value)){ $txt .= implode($value, \t); $txt .= \t; } else{ $txt .= $value\t; } } $txt .= end\n; $flsfile = fopen(text/fls.txt, a); if ($flsfile){ fputs($flsfile, $txt); fclose($flsfile); } Is there a way to send a blank value if the checkbox is not set? Should I use a completely different strategy? Have I said Thank you enough to Rasmus Lerdorf and whomever else was involved in resuscitating the list? Thanks Rasmus Lerdorf and all others involved for getting the list back up and running. . Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.com/ .
[PHP] mailform loop
Hi all, does anybody know if it is possible to loop through all the fields in a mailform. I want to perform the addslashes function and htmlspecialchars function to each entered value so i can put it in my db. Or should I make use of a standard good mailform script? and if so, does anyone know such a good script? 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] php and flash 5 books?
Could you tell me which book that ist? Maybe Title author and ISBN Number. I would be grateful for tha tinformation, thx! regards, Jens on 19.06.2001 17:30 Uhr, Jay Paulson at [EMAIL PROTECTED] wrote: Anyone know of any good books that actually deal with php interfacing with flash 5? I've found one book but just curious if there are others out there... thanks, jay
[PHP] Uploading a file into a database....ideas please.
Title: Uploading a file into a databaseideas please. Hi all, I have several text files that need to be uploaded each week to a mySQL db. At the moment I'm deleting the tables via telnet then exporting them via ODBC. I have tried uploading in the following ways. 1. Using the copy command, but there are insufficient privileges on the server (security reasons). 2. FTPing the text files in the php script but the version of PHP doesn't allow this. (Updating it not an option). 3. Opening the file remotely (but the file is on my local pc). I'm stuck myself, please help. Thanks in advance. Sam Rose (Also could you reply to my email address as I don't seem to get anymore emails from the list come through)
Re: [PHP] Solution to headers already sent error.
Hy there 8) This one is easy... The thing IS that when you use the header statement there is absolutly NO OUTPUt like echo(); inside the PHP-brackets allowed AND NO OUTPUT allowed outside the PHP-Brackets, before the first header statement appears! Not even simple linebreaks or anything! So watch out for any linebreaks or tabs or spaces outside the php-brackets before the first header statment or any echo or print inside php-brackets before the first header-statement. regards, Jens on 19.06.2001 0:28 Uhr, Merio, Quinn at [EMAIL PROTECTED] wrote: So, during the time the lists were down, i was banging my head over a seemingly impossible error message. This was the error message: Warning: Cannot send session cache limiter - headers already sent What?! I exlaimed.. the first line in my page registered the session variable i was using, so what was the deal. I turned out to be one measly little space in front of my ?php tag. If you are registering a session variable, it seems you cant have ANY whitespace in the page before you register the session variable. Figured i would share that nugget, cus man did it ever drive me nuts, and i saw no reference to it at all in the manuals. Quinn Merio Vice President Vir2lAlliance Inc. www.vr2a.com
Re: [PHP] An idea
it looks like you're getting your ereg and preg mixed up but try it like this: switch(1){ case ereg(\\.jpg$,$filename): echo JPEG Image;break; case ereg(\\.gif$,$filename): echo GIF Image;break; case ereg(\\.zip$,$filename): echo Compressed File; break; default: echo Unkown File Type; break; } thats maybe a little cleaner than using if/else if's. also be careful on the backslash, you have to escape it in double quotes. On Tue, 19 Jun 2001 18:48:03 -0400, TunkeyMicket ([EMAIL PROTECTED]) wrote: Humor me, how useful would a Regex switch statement be? Like: ereg_switch($filename) { case /\.jpg$/: echo JPEG Image; break; case /\.gif$/; echo GIF Image; break; case /\.zip$/: echo Compressed File; break; default: echo Unkown File Type; break; } That is just an example of an application of such, I have other applications that I would like to use it for, but that serves the best example. I would love to get started on a module project for something like this, as using IF blocks with PREG_MATCH become tedious and inefficient. If you know of such a module or would know how to get started, please repsond with your ideas/input. Chris TunkeyMicket Watford TunkeyMicket Productions www.tunkeymicket.com
[PHP] test
test - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -
Re: [PHP] inserting a variable into a variable
I have come to a situation where i am having a variable inside another variable. for example. $rm_$cat_adt PHP would read this as trying to prepend the variable $cat_adt to the variable $rm_ You seem to be trying to insert the variable $cat into the middle of a variable.. possible, but probably better to slightly rethink your naming strategy HTH, Tom The above is a variable and $cat is again another variable This does not work.. Need some help! Thanks, Hasan
Re: [PHP] Re: Lists are back up
Don't know about Eudora, but filters in webmailers (like gmx.de) cannot filter on CC, nor can Lotus Notes 4.x filter reliably on CC. Those are both products I use regularly. Lotus Notes I beg to differ on (and now we really are a long way from PHP discussion ;-) ).true the auto filters are pretty unreliable, but if you write an agent (pref on server replica) then you can do just about anything. while at IBM I had a whole host of agents running on my mail, including doing just what you described. Sales Pitch If you've had a chance to look at Notes 5, it is very cool... you can even wirte agents in full Java now! /Sales Pitch Damn, still talking the corporate speak.. Tom Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 2 days 23 hours 18 minutes
Re: [PHP] bad form...
generally. no its not.. IMHO its a good thing it can help make data validation easier, as in people can't fake variables by passing them in the URL to the processing script. It also helps keeps thing tidy... so providing that the processing isn't fantastically complex (in which case the complexity of the processing may make the physical file cumbersome) HTH, Tom hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah thank you for you help!
[PHP] logout
Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? Jack[EMAIL PROTECTED]"Love your enemies, it will drive them nuts"
[PHP] PHP Hosting in The UK
When do you need it Jamie we are in the process of setting something up? It is actually focused on PHP business application software but we will be offering hosting as well. Martin Just a quickieDoes anyone know of any cheap but reliable (i.e. they know at least something about PHP) Hosting companies in the UK? By cheap i mean about £10 a month. Speed isn't an issue as long as were not talking a snails pace. Cheers Jamie Funkdaddy Thompson
[PHP] PHPDOC 2.3.5 released
Hi everyone, I released a new version of PHPDoc, 2.3.5, and is a major update over previous releases. PHPDoc can now parse multiple class definitions in a single file. For anyone that doesnt know, PHPDoc is documenting tool, that converts PHP code to Java syntax, and then hands that result over Javadoc. What this means is, instead of trying to copy Javadoc's functionality, PHPDoc actually uses Javadoc for the creation of docs. This means all of Javadoc's power and options are available to use on our PHP code. And since PHPDoc's only job is to parse and convert PHP code, the program has an extremely small footprint (only 73kb). You can get it at http://www.callowayprints.com/phpdoc Thanks everyone, Christian _ Get your FREE download of MSN Explorer at http://explorer.msn.com
[PHP] exec, backtics and co.
Hello, I have a problem with a php script which contains an exec (identical problem with backtics and similar operators) some programs are simply not executed for example, having a simple 'hello world' program in c++ will work fine, but having a program that writes 'hello world' to a file won't work. My question is 'What are the requirements a binary must match to be correctly executed'? I assume there are some stuff about -permissions... -location in the directory tree... - ??... I don't know where to find this information, so if anyone has suggestions or pointers, I would really appreciate the help. Thank you. Matthieu
Re: [PHP] MySQL - Quicken
At 19.06.2001 19:04, you wrote: I've got a client who wants to be able to export some stuff from a MySQL database in a format that Quicken can import to print some checks. Is this possible? From what i've seen, Quicken takes a proprietary format. Any info would be appreciated. Thanks, I pressume quicken can import CSV files so figure out how Quicken wants it's input and then put the file together on the fly when a user asks for it using mysql_fetch_array() and header() to set the datatype to application/csv (or what is appropriate for quicken.) -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then.
[PHP] Re: PHP conference?
Hi Johan, * Johan Holst Nielsen wrote: Anyone know when and how you can sign up for the conference in Franfurt (5-7 Nov 2001)? After the program has chosen - we are currently in Call for Papers stage, so stay tuned :-) Can't find any information at there website, someone who can help me?! :o) I will put up a special page where you can find this info and where you can subscribe to our newsletter. -- PHP Schulungen und | International PHP Conference Schulungsmaterial: | 05. - 07.11.2001 | Astron Hotel, Frankfurt http://thinkphp.de/| http://www.php-kongress.de/
[PHP] Attachments in POP
Why are attachments in POP cannot be viewed in latest IMP? but if I use IMAP, it works just fine.
[PHP] Search engine php/mysql
Hello list, I am coding a search engine that allow indexing and searching internet sites based on php/mysql. My problm is: How can i index a given site, I mean: input: URL, like http://www.blabla.com/ Output: meta, body content, description that will be stored in a tables. thnx in advance Moh
Re: [PHP] Saving to a file
On Wed, Jun 20, 2001 at 11:04:21AM +0300, Rosen wrote: Sorry for the stupid question, but i don't have at me a PHP manual and I want to save some string to file from PHP. Can someone tell me how ( with what function to do this ) ? fopen http://www.php.net/manual/en/function.fopen.php fputs http://www.php.net/manual/en/function.fputs.php fclose http://www.php.net/manual/en/function.fclose.php -- Jason Stechschulte [EMAIL PROTECTED] -- All language designers are arrogant. Goes with the territory... :-) -- Larry Wall in [EMAIL PROTECTED]
Re: [PHP] email templates and str_replace
Hi Richard, You are replacing the placeholders in $mail_template, but you are storing the results in $mail_content. $mail_content = str_replace('##fullname##',$fullname,$mail_template); $mail_content = str_replace('##email##',$email,$mail_template); This means that each time you call the str_replace function, you are overwriting what was generated by the previous call to str_replace. Just change $mail_content to $mail_template and everything should work. --zak - Original Message - From: Richard Kurth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 2:32 AM Subject: [PHP] email templates and str_replace I am trying to set up a template for an email program below you will see the test program the $mail_template is pulled from a database that is pre saved when it is saved the Placeholders are filled in using str_replace. that is what I want it to do. But it does not work. What am I missing hear. $mail_template= html head titleWeb Hosting At ##hostdomain## /title /head body bgcolor='#C4C9DB' font size='4' color='#008080'strongDear ##fullname## /strong/font brbr font size='4' color='#008080'strongYour webhosting account has been created. Please use the following data to log in to ##domain## /strong/font br font size='4' color='#008080' strongul type=square liDomain:##domain## /li liIP-Address: ##ip## /li liUsername: ##username##/li liPassword: ##password##/li liMysql Database: ##userdatabase## /li liMysql Username: ##newuser## /li liMysql Password: ##newuserpass## /li /ul /strong /font font size='4' color='#008080'strongThanks for choosing ##hostdomain## br Any Questions e-mail ##sales##@##hostdomain##/strong /font /body /html ; /* message*/ //$mail_template = $message; $fullname=Richard Kurth; $email=[EMAIL PROTECTED]; $hostdomain=northwesthost.com; $hostname=www; $domain=twohot; $tld=.com; $baseip=234.444.45.444; $username=rkurth; $password=boat; $userdatabase=twohot; $newuser=twohot; $newuserpass=twohot; $sales=sales; $domainname=$hostname . . . $domain . $tld; $mail_content = str_replace('##fullname##',$fullname,$mail_template); $mail_content = str_replace('##email##',$email,$mail_template); $mail_content = str_replace('##domain##',$domainname,$mail_template); $mail_content = str_replace('##ip##',$baseip,$mail_template); $mail_content = str_replace('##username##',$username,$mail_template); $mail_content = str_replace('##password##',$password,$mail_template); $mail_content = str_replace('##userdatabase##',$userdatabase,$mail_template); $mail_content = str_replace('##newuser##',$newuser,$mail_template); $mail_content = str_replace('##newuserpass##',$newuserpass,$mail_template); $mail_content = str_replace('##hostdomain##',$hostdomain,$mail_template); $mail_content = str_replace('##sales##',$sales,$mail_template); /* and now mail it */ /* recipients */ $recipient = $fullname $email ; //header $headers .=From: Sales Department [EMAIL PROTECTED] \n; $headers .= reply-To:$from\nX-Mailer: PHP/ .phpversion(). \n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; //subject $subject1 = $subject; //mail($recipient, $subject1, $mail_content, $headers); //print $recipient, $subject1, $mail_content, $headers; echo $mail_content; Best regards, Richard mailto:[EMAIL PROTECTED]
RE: [PHP] bad form...
hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah I hope not! This is how all of my forms work. Why maintain two separate programs? -Original Message- From: motorpsychkill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 2:13 AM To: Php General List Subject: [PHP] bad form... hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah thank you for you help!
[PHP] Need recommendation: good user management system (PHP/MySQL)
I'm just starting to learn PHP and it's going to take a while before I can create a really good script to password protect a section of my site, with a good admin control center to manage my user's accounts. Therefore I'm asking for recommendations on a good retail script that can handle this for me until I'm skilled enough to create my own. I'm a little desperate since I'm using a poorly written CGI script at the moment. I'm looking for a customizable PHP/MySQL script to password protect an area of my site and add/edit user's accounts. You know the usual member management script. Thanks in advance! // Andreas
[PHP] SMTP-access with PHP...
Hello! Why do I get this error (Relaying denied ) from my SMTP-server and how do I make it work? 220 mail.server.com ESMTP Sendmail 8.9.3/8.9.3; Wed, 20 Jun 2001 15:09:06 +0200 (CEST) 250 mail.server.com Hello localhost [127.0.0.1], pleased to meet you 250 [EMAIL PROTECTED] Sender ok 550 [EMAIL PROTECTED] Relaying denied 503 Need RCPT (recipient) Is there something else I can do to make it work? I use this code: - $smtp_server = localhost; $port_number= 25; $smtp_connection= fsockopen($smtp_server, $port_number); if(!$smtp_connection){ $smtp_connection= fopen($smtp_server.:$port_number,w); } if(!$smtp_connection){ $return_value = SMTP-server not responding!; return 0; }else{ fputs($smtp_connection, ); $return_value = $return_value.fgets($smtp_connection,128).br; fputs($smtp_connection, HELO $smtp_server\n); $return_value = $return_value.fgets($smtp_connection,128).br; fputs($smtp_connection, ); fputs($smtp_connection, MAIL FROM: $from\n); $return_value = $return_value.fgets($smtp_connection,128).br; fputs($smtp_connection, ); fputs($smtp_connection, RCPT TO: $till\n); $return_value = $return_value.fgets($smtp_connection,128).br; fputs($smtp_connection, ); fputs($smtp_connection, DATA\n); $return_value = $return_value.fgets($smtp_connection,128).br; fputs($smtp_connection, Subject: $subjekt\n); fputs($smtp_connection, Reply-To: $from\n); fputs($smtp_connection, MIME-Version: 1.0\n); fputs($smtp_connection, Content-Type: text/plain; charset=iso-8859-1\n); fputs($smtp_connection, Content-Transfer-Encoding: 8bit\n); fputs($smtp_connection, X-mailer: Magnus Mail); fputs($smtp_connection, \n\n); fputs($smtp_connection, $bodyn\n\r); fputs($smtp_connection, ); $return_value = $return_value.fgets($smtp_connection,128).br; fputs($smtp_connection, ); fputs($smtp_connection, QUIT\n\r); $return_value = $return_value.fgets($smtp_connection,128).br; fclose($smtp_connection); return $return_value; /Magnus Hammar --
[PHP] unscribe
Re: [PHP] mailform loop
Wilbert Enserink pressed the little lettered thingies in this order... Hi all, does anybody know if it is possible to loop through all the fields in a mailform. I want to perform the addslashes function and htmlspecialchars function to each entered value so i can put it in my db. Or should I make use of a standard good mailform script? and if so, does anyone know such a good script? wilbert http://open.appideas.com/phpMailForm/ If you need to use addslashes or htmlspecialchars, you'll need to add: $val = addslashes($val); $val = htmlspecialchars($val); You may also need to perform these functions on $key, depending on your needs. If you want to put the entire message into the DB, you can insert $Message at the end of the script or individual values can be inerted using the $key = $val pairs. Have fun... Christopher Ostmo a.k.a. [EMAIL PROTECTED] AppIdeas.com Meeting cutting edge dynamic web site needs For a good time, http://www.AppIdeas.com/
[PHP] PHP Java
Hi, Can anyone point me to some tutorials on communicating with Java Applets using PHP? Hoping to hear from you. Best Regards Feroze === Jar Jar Binks will be Jedi!
Re: [PHP] email templates and str_replace
Mr. Kurth, Try this. Save the mail template to another file [like mailtemplate.txt] then open it for reading. //read in template $template = file("mailtemplate.txt"); //setup variables $fullname="Richard Kurth";$email="[EMAIL PROTECTED]";$hostdomain="northwesthost.com"; $hostname="www"; $domain="twohot"; $tld=".com";$baseip="234.444.45.444";$username="rkurth";$password="boat";$userdatabase="twohot";$newuser="twohot";$newuserpass="twohot";$sales="sales";$domainname=$hostname . "." . $domain . $tld; //iterate through the template replacing the items for($i = 0; $i sizeof($template); $i++) { $template[i] = str_replace('##fullname##',$fullname,$template[i]); $template[i] = str_replace('##email##',$email,$template[i]); $template[i] = str_replace('##domain##',$domainname,$template[i]); $template[i] = str_replace('##ip##',$baseip,$template[i]); $template[i] = str_replace('##username##',$username,$template[i]); $template[i] = str_replace('##password##',$password,$template[i]); $template[i] = str_replace('##userdatabase##',$userdatabase,$template[i]); $template[i] = str_replace('##newuser##',$newuser,$template[i]); $template[i] = str_replace('##newuserpass##',$newuserpass,$template[i]); $template[i] = str_replace('##hostdomain##',$hostdomain,$template[i]); $template[i] = str_replace('##sales##',$sales,$template[i]); } //Now the array $template contains our message, parsed and all //from here we can implode it into one string, or we can leave //it be to do further things to it.The example from above is //similar to the method I use in my TemplateEngine I wrote a //little while back, I might just include the source some time. Hope this helps, Chris "TunkeyMicket" Watford TunkeyMicket Productions www.tunkeymicket.com - Original Message - From: "Richard Kurth" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 4:32 AM Subject: [PHP] email templates and str_replace I am trying to set up a template for an email program below you will see the test program the $mail_template is pulled from a database that is pre saved when it is saved the Placeholders are filled in using str_replace. that is what I want it to do. But it does not work. What am I missing hear. $mail_template= "html head titleWeb Hosting At ##hostdomain## /title /head body bgcolor='#C4C9DB' font size='4' color='#008080'strongDear ##fullname## /strong/font brbr font size='4' color='#008080'strongYour webhosting account has been created. Please use the following data to log in to ##domain## /strong/font br font size='4' color='#008080' strongul type=square liDomain:##domain## /li liIP-Address: ##ip## /li liUsername: ##username##/li liPassword: ##password##/li liMysql Database: ##userdatabase## /li liMysql Username: ##newuser## /li liMysql Password: ##newuserpass## /li /ul /strong /font font size='4' color='#008080'strongThanks for choosing ##hostdomain## br Any Questions e-mail ##sales##@##hostdomain##/strong /font /body /html "; /* message*/ //$mail_template = $message; $fullname="Richard Kurth"; $email="[EMAIL PROTECTED]"; $hostdomain="northwesthost.com"; $hostname="www"; $domain="twohot"; $tld=".com"; $baseip="234.444.45.444"; $username="rkurth"; $password="boat"; $userdatabase="twohot"; $newuser="twohot"; $newuserpass="twohot"; $sales="sales"; $domainname=$hostname . "." . $domain . $tld; $mail_content = str_replace('##fullname##',$fullname,$mail_template); $mail_content = str_replace('##email##',$email,$mail_template); $mail_content = str_replace('##domain##',$domainname,$mail_template); $mail_content = str_replace('##ip##',$baseip,$mail_template); $mail_content = str_replace('##username##',$username,$mail_template); $mail_content = str_replace('##password##',$password,$mail_template); $mail_content = str_replace('##userdatabase##',$userdatabase,$mail_template); $mail_content = str_replace('##newuser##',$newuser,$mail_template); $mail_content = str_replace('##newuserpass##',$newuserpass,$mail_template); $mail_content = str_replace('##hostdomain##',$hostdomain,$mail_template); $mail_content = str_replace('##sales##',$sales,$mail_template); /* and now mail it */ /* recipients */ $recipient = "$fullname $email" ; //header $headers .="From: Sales Department [EMAIL PROTECTED] \n"; $headers .= "reply-To:$from\nX-Mailer: PHP/" .phpversion()." \n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; //subject $subject1 = $subject; //mail($recipient, $subject1, $mail_content, $headers); //print "$recipient, $subject1, $mail_content, $headers"; echo $mail_content; Best regards, Richard mailto:[EMAIL PROTECTED]
Re: [PHP] mailform loop
Well, if you named all the fields in the HTML as follows you could use an array_walk function to do that. input name=mailForm[] type=text value=hi Then you could array_walk through $mailForm and addslashes/htmlspecialchars to it. Chris TunkeyMicket Watford TunkeyMicket Productions www.tunkeymicket.com - Original Message - From: Wilbert Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 4:51 AM Subject: [PHP] mailform loop Hi all, does anybody know if it is possible to loop through all the fields in a mailform. I want to perform the addslashes function and htmlspecialchars function to each entered value so i can put it in my db. Or should I make use of a standard good mailform script? and if so, does anyone know such a good script? wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] -
[PHP] time
quickly can some one tell me if time() return server or usersystem time? Thank You,Jon Yaggiewww.design-monster.comAnd they were singing . . . '100 little bugs in the code100 bugs in the codefix one bug, compile it again101 little bugs in the code101 little bugs in the code . . .'And it continued until they reached 0
RE: [PHP] Saving to a file
Rosen, Depends on where you want to save the file. To get the manual http://www.php.net/docs.php. To Save to a file on the machine running the browser; make a form that outputs absolutely nothing except; header(Content-Type: application/octet-stream); header(Content-Disposition: attachment; filename=filename.txt); while(list($key,$val) = each($prod)) { // the echo below sends the file contents $id = $val[0]; // data was loaded to array $prod as follows; $nm = $val[1]; // $prod[] = array($productNo, $productDescr); echo($id,$nm\r\n);// use \r\n if going to windows browser \n if going to unix } To Save a file to the server machine hosting your website; use normal fopen, fputs, etc (see the manual) good luck, Warren Vail -Original Message- From: Rosen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 1:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Saving to a file Hi, Sorry for the stupid question, but i don't have at me a PHP manual and I want to save some string to file from PHP. Can someone tell me how ( with what function to do this ) ? Thanks Rosen
Re: [PHP] bad form...
I personally use it all the time in my news script that powers my page, it is easier to use and it helps with security. Chris TunkeyMicket Watford TunkeyMicket Productions www.tunkeymicket.com - Original Message - From: Tom Carter [EMAIL PROTECTED] To: motorpsychkill [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 6:39 AM Subject: Re: [PHP] bad form... generally. no its not.. IMHO its a good thing it can help make data validation easier, as in people can't fake variables by passing them in the URL to the processing script. It also helps keeps thing tidy... so providing that the processing isn't fantastically complex (in which case the complexity of the processing may make the physical file cumbersome) HTH, Tom hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah thank you for you help!
Re: [PHP] logout
change the realm On Wed, 20 Jun 2001, Jacky wrote: Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts
Re: [PHP] logout
Title: Re: [PHP] logout On 6/20/2001 6:34 PM this was written: Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? What type of authentication are you using? If it's a cookie, reset the cookie, if it's http authentication I'm not sure. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
RE: [PHP] logout
Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? Depends on how your login system works. -- Richard Heyes
RE: [PHP] logout
Yes, What I have found out is that if you change the realm name the browser (IE and NS) empty the cache for the current authentication and force a re-auth. We append a time stamp to our realm, so they have 1 minute to login before it will change again. If you combine this with sessions and remember the state: authorizing, logged in, not logged in (default) you can manage the entire process. As of right now,there is no way to tell the browser to "Log Out". Some combination of the above must be used. Sincerely,Robert T. CovellPresident / OwnerRolet Internet Services, LLCWeb: www.rolet.comEmail: [EMAIL PROTECTED]Phone: 816.210.7145Fax: 816.753.1952 -Original Message-From: Jacky [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 20, 2001 5:35 PMTo: [EMAIL PROTECTED]Subject: [PHP] logout Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? Jack[EMAIL PROTECTED]"Love your enemies, it will drive them nuts"
Re: [PHP] logout
At 20.06.2001 23:34, you wrote: Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? Jack I guess you could overwrite it with other logindetails by redirecting the user to a webpage that requests a username/password that is different to the one that is cached in the browser. But apart from that hard workaround, i don't think you can easily flush the logincache from the serverside... -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] test
yup, it works. :-) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 6:17 PM To: [EMAIL PROTECTED] Subject: [PHP] test test - 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, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] bad form...
No, that's alright, as long as you design it to switch properly, like if($HTTP_(POST|GET)_VAR) or whatever that assures you it is to be switched. There's basically no difference if you use the same file or several instead. Whatever suits you better. I do it all the time. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: motorpsychkill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 4:13 PM To: Php General List Subject: [PHP] bad form... hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah thank you for you help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sessions: auto appending session id to URLs
try to look into ini_set() (was I right naming it so?) The function, if available for you, will allow you to override the php.ini configurations. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Miri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 1:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions: auto appending session id to URLs I have developed shopping carts and session related Web sites for my employer where we have control over the php environment. On our servers, we do not enable the 'trans-sid' option. I'm now trying to set up a session related site for a friend of mine on a Web host of her choosing. On this host, php was compiled with enable-trans-sid. It means that on the first page of the site one visits, you get a horrid looking variable name screaming at you in all caps appended to every URL. I'm used to giving my session a much more friendly looking name and then manually appending that to each url. Right now that means that urls on the first page have this very lovely format: http://mydomain.com/new.php?sid=496312b318b435c21e1e13016f7e8262PHPSESSID=4 96312b318b435c21e1e13016f7e8262 The session info is there twice. Once you reload the page or go to another page, the auto appended stuff (PHPSESSID=496312b318b435c21e1e13016f7e8262) goes away. Is there a way to stop this from happening when trans-sid has been enabled via the compile? Thanks for any help, beth ___ [EMAIL PROTECTED] [EMAIL PROTECTED] http://miriland.com/ http://www.stigma.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] logout
Hey, this has been asked here like ten times today only... Depends, usually you should be able to. Like, set them a cookie on logout button and, as long as they have it don't let them in. Silly method, I know, try also deleting cookies you have just set to the user when they logged in. One of those solutions will work. P.S: "Love your signature" Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message-From: Jacky [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 21, 2001 7:35 AMTo: [EMAIL PROTECTED]Subject: [PHP] logout Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? Jack[EMAIL PROTECTED]"Love your enemies, it will drive them nuts"
Re: [PHP] php and flash 5 books?
[EMAIL PROTECTED] wrote: Hi Jay, Julie Melonie participate to the redaction of a book on FLASH 5; see infos on her website at http://www.thickbook.com you can also find there some tutorial on the subject. Marc No no no -- I have not written a book that deals with PHP and Flash at all. I contributed some chapters to a very basic how to work with Flash book, but it has nothing to do with PHP. Sorry for any confusion. - Julie ++ | Julie Meloni ([EMAIL PROTECTED]) | || | PHP Essentials and PHP Fast Easy | | http://www.thickbook.com | ++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Hosting in The UK
try www.zenithtech.co.uk On Wed, 20 Jun 2001, Martin Wright wrote: When do you need it Jamie we are in the process of setting something up? It is actually focused on PHP business application software but we will be offering hosting as well. Martin Just a quickieDoes anyone know of any cheap but reliable (i.e. they know at least something about PHP) Hosting companies in the UK? By cheap i mean about £10 a month. Speed isn't an issue as long as were not talking a snails pace. Cheers Jamie Funkdaddy Thompson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Determining page load time?
Hey all, If you take a look at the link http://www.acnshosting.com/server_test/index.php you will notice that I am running a php script that calculates the time it takes to read the file from the drive and parse it through apache. However, that is all it does. What I would like to be able to do is to time the call to actual display and also the call to actual parse of all components. Does anyone have any ideas? thanks chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sessions: auto appending session id to URLs
There is a setting in the php.ini file named session.use_trans_sid, which enables appending the session ID if PHP was compiled with enable-trans-sid. You could try setting this to 0 if you are allowed to set up an .htaccess file on the server. Create the .htaccess file with the following line in it: php_flag session.use_trans_sid 0 I haven't tried this for disabling enable-trans-sid, but have used it to enable/disable other php.ini settings. Good luck! Kirk -Original Message- From: Miri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 19, 2001 10:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions: auto appending session id to URLs I have developed shopping carts and session related Web sites for my employer where we have control over the php environment. On our servers, we do not enable the 'trans-sid' option. I'm now trying to set up a session related site for a friend of mine on a Web host of her choosing. On this host, php was compiled with enable-trans-sid. It means that on the first page of the site one visits, you get a horrid looking variable name screaming at you in all caps appended to every URL. I'm used to giving my session a much more friendly looking name and then manually appending that to each url. Right now that means that urls on the first page have this very lovely format: http://mydomain.com/new.php?sid=496312b318b435c21e1e13016f7e82 62PHPSESSID=4 96312b318b435c21e1e13016f7e8262 The session info is there twice. Once you reload the page or go to another page, the auto appended stuff (PHPSESSID=496312b318b435c21e1e13016f7e8262) goes away. Is there a way to stop this from happening when trans-sid has been enabled via the compile? Thanks for any help, beth ___ [EMAIL PROTECTED] [EMAIL PROTECTED] http://miriland.com/ http://www.stigma.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ldap object class violation with ldap_add in php4.0.4pl1
I'm doing some R D with PHP and OpenLDAP I managed to get the php function ldap_add to work and I've been using PHP to add form-submitted information to a directory. However I decided to include another objectclass (uidObject) and now it returns with: error - Object class violation error number - 65 I can use the ldapadd client and load an ldif file containing exactly the same info into the directory. Why won't it work from within PHP I've included an excerpt from my code, below. Thanks in advance for any help. Derek 12 $ds=ldap_connect(localhost); 13 if ($ds) { 14 $r=ldap_bind($ds, cn=admin,dc=bipcontracts,dc=com, mypassword); 15 16 $rdn = o=$username,ou=suppliers,ou=customers,dc=bipcontracts,dc=com; 17 $version = phpversion(); 18 echo $versionbr; 19 $info[userPassword]=$password; 20 $info[o]=$organisation; 21 $info[uid]=$username; 22 $info[objectclass]=organization; 23 $info[objectclass]=uidObject; 24 25 $add=ldap_add($ds,$rdn, $info); 26 $error = ldap_error($ds); 27 $errno = ldap_errno($ds); 28 echo error is $error number $errno; 29 30 ldap_close($ds); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] List of included file names.
Try using $PHP_SELF to get the name of the PHP script. - Original Message - From: Tim McGuire [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 11:30 AM Subject: [PHP] List of included file names. Hi, I searched the archives for this. For debugging purposes, I want to see a list of the included files on a page in HTML comments. PHP_SELF and HTTP_SERVER_VARS[SCRIPT FILENAME] only returns the name + path of the file calling the included files. I want each included file to contribute its name to the page. Is there any way to do that so that the HTML source looks like this: !-- These files contribute to this page - - !-- species_inc.php - - !-- db_connect_inc.php - - !-- constants_inc.php - - Thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTTP_POST_VARS not picking up checkboxes that are unchecked
Tom Beidler [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a form with approximately 40 input fields. When a form is posted it sends an email and then builds a tab delimited $txt entry for a text file on the server. The problem is that if a checkbox is not checked, when it's not required, I don't get a blank entry in my tab file for the checkbox input. I'm imploding (snip) Is there a way to send a blank value if the checkbox is not set? Should I use a completely different strategy? Have I said Thank you enough to Rasmus Lerdorf and whomever else was involved in resuscitating the list? I've had a similar project kicking about in my head, and this post finally got me to try a few things. The idea I had was for a multi-questionnaire system, where surveys are created from a database query, scored by a common marking script, and the results stored back to the database. Obviously, the marking script can't know what inputs to expect... My first idea was to create a parseable variable-names-to-look-for variable, but that seemed unwieldy. Then I recalled someone complaining about not being able to retrieve multiple input fields with the same name - they only get the last ie most recent field set. ;-) and there's the answer. If you have a hidden input with the same name and a default value _before_ your checkbox input, then your checkbox will over-write it if it's checked; otherwise you receive the default value! ie input type=hidden name=myvariable value=No input type=checkbox name=myvariable value=Yes if the checkbox is checked, $myvariable = Yes, otherwise $myvariable = No - exactly what you were looking for. Better yet, because $myvariable only occurs once among the POSTed variables, you can simply iterate through them, ie foreach($HTTP_POST_VARS as $name = $val) $outstr .= br$name: $val; See the attached file, 'test.php', for a simply demo. begin 666 test.php M/#]P:' *21S='(@/2 B(CL*69OF5A8V@H)$A45%!?4$]35%]605)3(%S M(1N86UE(#T^(1V86PI('L*0DDW1R(X]((\8G(^)YA;64@+29G=#L@ M(CL*0D*0EI9B H)'9A; ]/2 B(BD*0D))'-TB N/2 B*5M'1Y*2([ M@D)96QS90H)0DDW1R(X](1V86P[@E]@H_/@H\(41/0U194$4@2%1- M3!054),24,@(BTO+US0R\O1%1$($A434P@-XP(%1R86YS:71I;VYA;\O M14XB/@H\:'1M;#X*/AE860^@D\=ET;4^56YT:71L960\+W1I=QE/@H\ M+VAE860^CQB;V1Y/@H)/@Q/E1EW0@;7D@8VAE8VMB;W@M=F%L=64MV]L M=F5R(ED96$\+V@Q/@H)/#\](1S='(@/SX*3QF;W)M(UE=AO9#TB]S M=(@86-T:6]N/2(C(CX*0D\=%B;4^@D)3QTCX*0D)3QT9#Y;($9I M;QE9!\($5M'1Y(%T\+W1D/@H)0D)/EN'5T('1Y4](FAI91E;B(@ M;F%M93TB9FEL;5D96UP='DB('9A;'5E/2(B/@H)0D)/'1D/CQI;G!U=!T M7!E/2)C:5C:V)O(@;F%M93TB9FEL;5D96UP='DB('9A;'5E/2)F:6QL M960B/CPO=0^@D)3PO='(^@D)3QTCX*0D)3QT9#Y;($)L=64@?!' MF5E;B!=/]T9#X*0D)3QI;G!U=!T7!E/2)H:61D96XB(YA;64](F)L M=65GF5E;B(@=F%L=64](D=R965N(CX*0D)3QT9#X\:6YP=70@='EP93TB M8VAE8VMB;W@B(YA;64](F)L=65GF5E;B(@=F%L=64](D)L=64B/CPO=0^ M@D)3PO='(^@D)3QTCX*0D)3QT9#Y;(%EER!\($YO(%T\+W1D/@H) M0D)/EN'5T('1Y4](FAI91E;B(@;F%M93TB65S;F\B('9A;'5E/2). M;R(^@D)0D\=0^/EN'5T('1Y4](F-H96-K8F]X(B!N86UE/2)Y97-N M;R(@=F%L=64](EEER(^/]T9#X*0D)/]TCX*0D\+W1A8FQE/@H)3QI M;G!U=!T7!E/2)S=6)M:70B/@H)/]F;W)M/@H*/]B;V1Y/@H\+VAT;6P^ !@`` ` end -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] logout
Jacky [EMAIL PROTECTED] wrote: Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? If you're using sessions session_destroy() will do it. Create a link or form button that calls that function. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Attachments in POP
oops :) sorry... used the wrong lists - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Ker Ruben Ramos [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 10:59 PM Subject: Re: [PHP] Attachments in POP Why are attachments in POP cannot be viewed in latest IMP? but if I use IMAP, it works just fine. That would be a question for the IMP mailing list, not php-general. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to delete cookies
setcookie(cookie_user,); this will delete the cookie - Original Message - From: Tom Beidler [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 7:20 AM Subject: [PHP] how to delete cookies I have a site that is password protected using PHP and MySQL. I would like to give people the option to log out. I've tried to set the cookie without setting the time but that only deletes the cookie when the browser session ends. Is there a way to delete it all together? . Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.com/ . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] bad form...
On a previous shopping cart, some of our fantastically complex scripts got so big that WE couldn't follow the logic too many conditional test, things started to conflict it was hell... so we found that it was better to break the processing code apart from the html. but build one file that includes all needed files into one to simulate the One-file-one-form approach. this made all our lives easier. JMT. - Original Message - From: Tom Carter [EMAIL PROTECTED] To: motorpsychkill [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 3:39 AM Subject: Re: [PHP] bad form... generally. no its not.. IMHO its a good thing it can help make data validation easier, as in people can't fake variables by passing them in the URL to the processing script. It also helps keeps thing tidy... so providing that the processing isn't fantastically complex (in which case the complexity of the processing may make the physical file cumbersome) HTH, Tom hello everyone, is it 'bad form' (no pun intended) to have a form point to itself for processing, rather than forward the form variables to another page? Anybody have any input on this? I try to have 1 page that is the form and handles all the processing as well in order to keep the page count on my site low and for easier editing, blah blah blah thank you for you help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] inserting a variable into a variable
Michi, Yours did the trick... thank you and everyone else who contributed. Hasan - Original Message - From: [EMAIL PROTECTED] To: Hasan Niyaz [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 11:46 AM Subject: Re: [PHP] inserting a variable into a variable I have come to a situation where I am having a variable inside another variable. for example. $rm_$cat_adt This works for me: ? $cat=def; ${abc_.$cat._ghi}=TEST; echo 'abc_.$cat._ghi = '.${abc_.$cat._ghi}.br\n; echo 'abc_def_ghi = '.$abc_def_ghi.br\n; ? michi -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 11! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Search engine php/mysql
That poses a problem, it is easy to do for your own site [opendir], but other sites you'd have to open the html file [fopen], search for links, and add them to a list to spyder, grab the meta tags from the current page, then goto the next site in the spyder list. array_push to add to the end of the spyder list. This is not an easy task. Chris "TunkeyMicket" Watford TunkeyMicket Productions www.tunkeymicket.com - Original Message - From: Mohamedou To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 8:22 AM Subject: [PHP] Search engine php/mysql Hello list, I am coding a search engine that allow indexing and searching internet sites based on php/mysql. My problm is: How can i index a given site, I mean: input: URL, like http://www.blabla.com/ Output: meta, body content, description that will be stored in a tables. thnx in advance Moh
RE: [PHP] email templates and str_replace
Richard, The problem is with the str_replace()s. Consider the following: ?php $myvar = 'this is a var.'; $mytext = str_replace('is', 'is not', $myvar); ? At this point $myvar still equals 'this is a var.' but $mytext is 'this is not a var.' $myvar hasn't been modfified by the str_replace so any additional str_replace()s after it will not have a cumlative effect. ?php $mail_content = $mail_template; $mail_content = str_replace('##fullname##',$fullname,$mail_content); $mail_content = str_replace('##email##',$email,$mail_content); $mail_content = str_replace('##domain##',$domainname,$mail_content); ? Something like the above would have the effect you're looking for. -- Rich Cavanaugh CTO, EnSpot.com -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 4:32 AM To: [EMAIL PROTECTED] Subject: [PHP] email templates and str_replace I am trying to set up a template for an email program below you will see the test program the $mail_template is pulled from a database that is pre saved when it is saved the Placeholders are filled in using str_replace. that is what I want it to do. But it does not work. What am I missing hear. $mail_template= html head titleWeb Hosting At ##hostdomain## /title /head body bgcolor='#C4C9DB' font size='4' color='#008080'strongDear ##fullname## /strong/font brbr font size='4' color='#008080'strongYour webhosting account has been created. Please use the following data to log in to ##domain## /strong/font br font size='4' color='#008080' strongul type=square liDomain:##domain## /li liIP-Address: ##ip## /li liUsername: ##username##/li liPassword: ##password##/li liMysql Database: ##userdatabase## /li liMysql Username: ##newuser## /li liMysql Password: ##newuserpass## /li /ul /strong /font font size='4' color='#008080'strongThanks for choosing ##hostdomain## br Any Questions e-mail ##sales##@##hostdomain##/strong /font /body /html ; /* message*/ //$mail_template = $message; $fullname=Richard Kurth; $email=[EMAIL PROTECTED]; $hostdomain=northwesthost.com; $hostname=www; $domain=twohot; $tld=.com; $baseip=234.444.45.444; $username=rkurth; $password=boat; $userdatabase=twohot; $newuser=twohot; $newuserpass=twohot; $sales=sales; $domainname=$hostname . . . $domain . $tld; $mail_content = str_replace('##fullname##',$fullname,$mail_template); $mail_content = str_replace('##email##',$email,$mail_template); $mail_content = str_replace('##domain##',$domainname,$mail_template); $mail_content = str_replace('##ip##',$baseip,$mail_template); $mail_content = str_replace('##username##',$username,$mail_template); $mail_content = str_replace('##password##',$password,$mail_template); $mail_content = str_replace('##userdatabase##',$userdatabase,$mail_template); $mail_content = str_replace('##newuser##',$newuser,$mail_template); $mail_content = str_replace('##newuserpass##',$newuserpass,$mail_template); $mail_content = str_replace('##hostdomain##',$hostdomain,$mail_template); $mail_content = str_replace('##sales##',$sales,$mail_template); /* and now mail it */ /* recipients */ $recipient = $fullname $email ; //header $headers .=From: Sales Department [EMAIL PROTECTED] \n; $headers .= reply-To:$from\nX-Mailer: PHP/ .phpversion(). \n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; //subject $subject1 = $subject; //mail($recipient, $subject1, $mail_content, $headers); //print $recipient, $subject1, $mail_content, $headers; echo $mail_content; Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]