Re: [PHP] WAHOO!!!
at the moment in the quote bank we have the following Random quote by lk6 - Lifes a bitch, then you die Random quote by Wizaerd (from True Romance) - Live fast, die young, and leave a good looking corpse... Random quote by anon - No matter where you might be; there you are Random quote by futurebird - You will go down in history as a great man. Random quote by bad haxxor - bBold text/b a href=http://futurebird.diaryland.comand a link to my site/a what a little haxx0r! Random quote by evil haxxor - Click on the little birdie: a href=http://futurebird.diaryland.comIMG SRC=http://futurebird.diaryland.com/images/lilbird.jpg/abrbrihmmm wonder if I can uses php?/i?php echo test; ? Random quote by Milo - REAL PROGRAMMERS don't comment their code. If it was hard to write, it should be hard to understand. -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: Kyle Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 12, 2001 9:02 PM Subject: [PHP] WAHOO!!! My first WORKING SCRIPT!!! http://www.stupeedstudios.f2s.com/index.php -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- 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] Form help
Each user has a long list of magazines to choose from. Problem is that for every magazine there is a checkbox and there are a lot of magazines to choose from (more than 100). I put all of them in one form. After submit I have to know which magazines user checked. Is there any more simple way than mine? Well here it is: I got a form with checkboxes which names are primary keys of every magazine. I use "sif_" in front because you cannot have variables like $123 = $sif_123. input type="checkbox" name="sif_? echo $wponud[6]; ?" value="1" After submitting the form I have to know which magazines user ordered. I go through user's magazines again and use eval function twice to get variable submited by form. ? while ($wponud = mysql_fetch_array($izpis_raw)) { $temp = "sif_$wponud[6]"; eval ("\$temp = \"$temp\";"); $temp = "$".$temp; eval ("\$temp = \"$temp\";"); if ($temp == 1) { // got it echo $wponud[6]."br"; } ? If anybody can think of better way to do it, please let me know. tnx. mitja.
[PHP] Re: submit form problem
I haven't found a way to disable the Enter key to submit the form, as I believe it does exists, but, found a way so when Enter is pressed works like Tab, moving to the next form field. Here: http://www.faqts.com/knowledge_base/view.phtml/aid/6793/fid/129 Google search used: http://www.google.com/search?q=javascript+disable+enter+formsourceid=opera; num=0 Sadly, it is Javascript, so an user can disable, but for those mistake key presses, should work. -- Julio Nobrega. 2B||!BB - That's the question. Ivo Stoykov [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Well, here's the problem I faced. I've a script accepting four different forms depending on the user choice. Some of the forms have two submit buttons forcking actions accordingly to the pressed button. The problem is: $HTTP_POST_VARS[submit] is not set if the user press ENTER instead of clicking the button and the scripts cannot return a response for it is not clear which button has been pressed. Hidden field cannot works with two submit buttons for I'll have two values, but again cannot cach the user choice in case of ENTER press. Any help? Thank you Ivo -- 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] Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?
I don't think it is possible to pass so much chars in a href, or URL for the matter. Is it really necessary? Couldn't you first write somewhere (db/file) those chars and retrieve it later, referencing it on the href? -- Julio Nobrega. 2B||!BB - That's the question. News.Fbcc.Com [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I want to pass a large (easily 1500-2500 characters) variable between a DHTML object using Jscript over to a PHP script to ultimately update a MySQL database. I know that I can pass a variable along with the link, i.e. location.href=etc. etc., but I believe there is a limit on the size of an href. What I am doing is editting text and am using MSIE specific functions to create HTML on the fly which I then want to pass to a PHP script to update my database. Any help would be SINCERELY appreciated!! Merci, (or is that mercy?) Andre -- 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] Re: server run page
I have seen this question before on a brazilian newsgroup I visit, and the only solutions we came (without going away from a default php installation) is to use the function include(); (and similars) or sessions. If anyone knows a different way, I would also be interested to know, to inform my friends from the other news. -- Julio Nobrega. 2B||!BB - That's the question. Lolodev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... i m beginner with php. i developp under asp or cold fusion. with this language, when you request a page, the server runs automatiquely a page: global.asa with asp and application.cfm with cold fusion. can i do the same thing under php ? -- 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] Re: development to ISP migration headache
I have a site on my laptop, works fine. When I tar it up and move to my ISP for a production environment, certain things stop working. The two environments are pretty much the same, except my laptop is php_mod and the ISP is a cgi. Turn your laptop into a CGI and see if you can duplicate the behaviour. Then hack httpd.conf until it works. I *THINK* *MAYBE* *MAYBE* *MAYBE* that you have to use Alias to give the path to PHP and Action using the alias to get the path information working properly for this. I'm guessing that they are puking by looking for the full path including the /foo/bar At any rate, you simply don't have enough control over the ISP's server to debug this, but you do have it on your laptop. -- 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] Re: Problems with exec
i have some problems with exec. i am using win2000, apache and latest php version. always 'unable to fork' . what´s the problem? As I understand it: Windows is not thread-safe. As an implication, exec-ing something would just crash anyway. Thus, exec() and friends won't work on Windows in PHP4 and up. If that's wrong, somebody email me off-list. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Re: evaluate data taken from db
$cat=select * FROM categories c WHERE c.type='Earmold'; $cats=mysql_query($cat); while ($row = mysql_fetch_array($cats)) { extract($row); if ($id == $cid){ echo $name; } else{ echo a class=subnavlink href=\?cid=$idpage=1\$name/a ; } } What I would like to do is turn off the link if the link is active in the browser. So if the url loaded in the browser is -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Re: Cookie only worked on / but not in any sub-directories
Try adding / after the time argument to SetCookie. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Aaron Chan [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 6:05 PM Subject: Cookie only worked on / but not in any sub-directories Hi, First of all, I'm very new to PHP. I tried to call setcookie() function to set a cookie using the following code: setcookie (TestCookie, Some Value, time()+3600); echo $TestCookie, BR; It works perfectly for the root directory, but when i try to do the same thing in another directory called '/phptest/', it didn't work at all. I tried to switch on netscape's Warn me before accepting cookie and saw that the cookie was indeed sent to the client. However, I could not read back the cookie's value no matter how many times i refresh netscape. Can anyone tell me what's going on? Any help would be greatly appreciated. Thanks, Aaron -- 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] Re: PHP and Public Key System cryptos? (PKS)
You can http://php.net/exec gunpg or PGP. Sample code in email archives and code archives http://php.net/links.php abounds. I think there's a relatively new gnupg module, but don't quote me on that. http://php.net/gnupg CAVEAT: You need to make the public key-halves in the keyring readable by nobody or whomever PHP runs as, while *NOT* putting the private half in such a file which anybody on that same computer can read. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Elias [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 9:42 AM Subject: PHP and Public Key System cryptos? (PKS) Hello. Does PHP somehow offer a PKS encryption libraries? -- 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] Re: upgrading from 4.03 to 4.06
You'd have to show us every line that mentioned $connectionid for us to figure out where it disappeared... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 10:57 PM Subject: upgrading from 4.03 to 4.06 Hi there recently I had upgrade my php from as you see in the subject and I have a problem raise after I do some upgrading my php script already run OK when I used the previous version after I do the upgrading a lot of error raise here is how I configure /configure --with-mysql=/usr/local --with-apxs=/usr/local/apache/bin/apxs -- enable-memory-limit --enable-ucd-snmp-hack --with-snmp=/usr/local/snmpd --en able-discard-path --enable-force-cgi-redirect --enable-trans-sid the problem is like this on the beginning of the script i declare $connectid=mysql_connect(bla,bla,bla); and at the end (still the same page) I used this mysql_db_query($db,query,$connectid); -- here is the error come up seems like the $connectid variable that I declare in previous didn't parse till the end then I put the $connectid=mysql_connect(bla,bla,bla); before the query then everything is OK.. can any body point me out where did I go wrong...I'm sure my script is OK..it's run in version 4.03 but got error in 4.06 Thanks in Advance Yamin Prabudy -- 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] Re: Meta Tags and Regular Expressions
You do realize there is a PHP function for that http://php.net/get_meta_tags, I think... It will not work properly on oddly-formatted META tags, though... Go fit it, after you figure out the right Regex expressions. You'll want the non-greedy Regex (POSIX or Perl, I forget which is which). -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Kyle Mathews [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 12:29 PM Subject: Meta Tags and Regular Expressions Hello: I'm looking for a good way to pull information from a static HTML file for dumping into a database. I need to pull the information from a META tag, and from within two comments in the HTML file. I know this can be done with regular expressions, but I'm not really sure where to start or how to do it. META name=CATEGORY CONTENT=Test Content I need to pull the CONTENT information from this META tag. !-- STORY START -- Story contents !-- STORY END -- Then pull the information from between these two comments. Any help, and/or example code would help a lot. Thanks, Kyle [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]
[PHP] Re: Socket problem
Anybody else using 1 on that machine yet? netstat -a -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jon Farmer [EMAIL PROTECTED] Newsgroups: php.general To: PHP General Mailing List [EMAIL PROTECTED] Sent: Friday, August 10, 2001 10:58 AM Subject: Socket problem Hi, I playing with the socket examples off php.net When I try the talkback example I get the following error bind() failed: reason: Can't assign requested address I am setting $address to the ip of the machine and using port 1 Any ideas? Regards Jon Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -- 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] Re: again session doubt
#1. You *CANNOT* count on session data to be registered by your main FRAMESET before the requests for the sub-FRAMEs are made. Pass any variables you need on the first page through the URLs: FRAMESET ... FRAME SRC=foo.php?username=?php echo $username;? ... FRMAE SRC=bar.php?username=?php echo $username;? ... /FRAMESET WARNING: This means that unless you are careful, hackers can surf to sub-pages (foo and bar above) without actually authenticating. Store some info in a database at the top of your FRAMESET page, close the db connection before the FRAME tags, and access it in the foo and bar pages to be sure they're valid. #2. If you want to log somebody out, you'll need to unset() variables and do session_delete() -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Balaji Ankem [EMAIL PROTECTED] Newsgroups: php.general To: Yamin Prabudy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 3:47 AM Subject: again session doubt Hello! boss, It started session. But i didn't close the session. I tried to login again. But it is giving authorization required. It is not allowing for loggin in again because of session. What i have to do. Thanks and regards -Balu - Original Message - From: Yamin Prabudy To: Balaji Ankem Sent: Friday, August 10, 2001 12:38 PM Subject: Re: Help required on creating session say you have a form that input the username in the top of the file before the html just put the ? session_start(); session_register(username); ? that's goes the first page... in the next page you can do this ? session_start(); echo $username; ? you must have you username display there - Original Message - From: Balaji Ankem To: Yamin Prabudy Cc: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 1:16 PM Subject: Help required on creating session Hi! friends, i also want this feature. Can u tell me how to start a session whenever the user logged in and how to end session after logout. where i have to give these function names... session_start(); session_register(username); Thanks in advance. Regards -Balaji - Original Message - From: Yamin Prabudy To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 10:02 AM Subject: [PHP] HELP...session Hi there I need help about session see i have a page (index.php) that used this session_start(); session_register(username); and i got input username after the submit button is click i move into a frame pages.. then in the frame i define again session_start(); for each frame...i got two frame.. i intended to parse the username into my frame...but got nothing i intended to parse the username all over the pages (in frame) until he/she log out can anyone help me with it Thanks in Advance Yamin Prabudy -- 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] Re: submit form problem
I've a script accepting four different forms depending on the user choice. Some of the forms have two submit buttons forcking actions accordingly to the pressed button. The problem is: $HTTP_POST_VARS[submit] is not set if the user press ENTER instead of clicking the button and the scripts cannot return a response for it is not clear which button has been pressed. Hidden field cannot works with two submit buttons for I'll have two values, but again cannot cach the user choice in case of ENTER press. Either explicitly state a default action, or analyze the actual data coming in to decide what the user must have meant. I *thought* enter was only supposed to work in a text field when there's only one SUBMIT... But it wouldn't shock me if some browser broke that. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Re: href and download
Use header(Content-type: application/octet-stream); There are also headers to prompt with the right filename. Search archives for Content-disposition -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Heidi Belal [EMAIL PROTECTED] Newsgroups: php.general To: CF-Talk [EMAIL PROTECTED]; Egypt Programmers [EMAIL PROTECTED]; js-jive mailing list [EMAIL PROTECTED]; Php [EMAIL PROTECTED] Sent: Sunday, August 12, 2001 12:51 PM Subject: href and download Hi All, I'm trying to create a page where users can download files from. What i have discovered was that if you have a certain file type associated to a certain program and there is an href to download that type of file, what will happen is that it will automatically open the file with the associated program. for example: if i have mp3's asssociated to winamp...if there is a link a href=song.mp3download song/a and i click it, it will open my winamp player and start playing the song rather than popping up the save as window so that i can save the file. my questions are: Is this discovery correct? and is there a way to prevent it from opening the associated program but rather popping up the save as window? If anyone has any clue please let me know! thanks! = Heidi Belal ICQ# 32127109 A bus stops at a bus station. A train stops at a train station. On my desk I have a work station... __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.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] Re: Handling files
$data[0] = addslashes(fread(fopen($picture1, r), filesize($picture1))); Gak. You are missing otu on all sorts of error-checking there... to store files from a client machine but now I want to store files from a webstie ie http://servername.com/file.jpg Just use $picture1 = http://servername.com/file.jpg;; You really should break this down into multiple steps. You can get rid of the filesize() call to save load, and just loop through fread(..., 100); and append the data to your $data[0] -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Re: server run page
i developp under asp or cold fusion. with this language, when you request a page, the server runs automatiquely a page: global.asa with asp and application.cfm with cold fusion. can i do the same thing under php ? You can use auto_prepend in your php.ini file to call any file you like before every page hit to PHP. Never found a real need for it myself, as invariably the stuff you put in there ends up not being needed for *EVERY* page, and PHP's http://php.net/include works much better. But it's there if you want it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Peace and quiet
i know this is out of tpic but i thought it would be a reason for you to celebrate, im going on holiday or vacation see ya in 2 weeks... BYE!! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666
Re: [PHP] server run page
on 8/12/01 1:08 PM, lolodev at [EMAIL PROTECTED] wrote: i m beginner with php. i developp under asp or cold fusion. with this language, when you request a page, the server runs automatiquely a page: global.asa with asp and application.cfm with cold fusion. can i do the same thing under php ? inside php.ini ; automatically add files before or after any PHP document auto_prepend_file = auto_append_file= -- mike cullerton -- 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] strstr Question
I am currently writing a piece of code that when a user enters in their email address it will check it for validity. In this instance they are supposed to type in [EMAIL PROTECTED] But if they just type in user I want it to add @domain.com at the end by default. This is the piece of code I have so far, but it does not seem to be working... if (strstr($email, '@')) { continue; } else { $email = $email . @domain.com; } I've been all over the documentation but I am obviously missing something. If anyone could be of any assistance I would greatly appreciate it. Thanks you. -- Erich Zigler I prefer rogues to imbeciles, because they sometimes take a rest. -- Alexandre Dumas (fils) -- 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] Re: replacing variables in file
I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? Dave -- 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] Using fsockopen()
I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? Dave -- 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] Can't insert record using UltraDEV with PHAKT to MYSQL
On Fri, 10 Aug 2001 19:58, Jack wrote: Dear all I had installed a software (PHAKT) into UltraDev, then the application server i used is ASP, and i had create a table on Mysql. Everthing seems works fine, i had test the connection and match all to field to the field of the mysql table! i had create a insert record on the server behavior before i can match the field to the Mysql table! But when i had submit the form, there is error prompts out : HTTP Error 405 405 Method Not Allowed The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting. Please contact the server's administrator if this problem persists. Can anyone tell me what is the most likely problem is??? pls jack [EMAIL PROTECTED] I don't see where you are using PHP so you may perhaps be asking in the wrong place. However, for a stab in the dark I'd say look to your server configuration. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Love is grand. Divorce is twenty grand. -- 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] strstr Question
On Sun, 12 Aug 2001 18:42:48 -0500, Erich Zigler ([EMAIL PROTECTED]) wrote: I am currently writing a piece of code that when a user enters in their email address it will check it for validity. In this instance they are supposed to type in [EMAIL PROTECTED] But if they just type in user I want it to add @domain.com at the end by default. This is the piece of code I have so far, but it does not seem to be working... if (strstr($email, '@')) { continue; } else { $email = $email . @domain.com; } I've been all over the documentation but I am obviously missing something. If anyone could be of any assistance I would greatly appreciate it. continue is for loops, not if's. delete that line and it should work, or better yet: if (!strstr($email, '@')) $email.=@domain.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] Interested in a new Affiliate Program??
This message is not SPAM. You have received this email because you either posted to my FFA page, Classified Ad page, submitted an e-mail ad, we have had several EMAIL exchanges or we belong to the same opt-in EMAIL list. If you wish to have your address removed please forward this message with the subject REMOVE. Please Check the message at the end of the email Dear Fellow Entrepreneur, Are you looking for a new affiliate program? Have you found the 'Right' way of marketing that program? I think I have a way to Start Your Own Success! If you are interested in this program, please send an email to: [EMAIL PROTECTED] Thanks so much for your time and consideration! Kim Hylton PLEASE NOTE: If you need help with starting a business, registering a business name, learning how income tax is handled, etc., contact your local office of the Small Business Administration (a Federal Agency) 1-800-827-5722 for free help and answers to questions. Also, the InternalRevenue Service offers free help via telephone and free seminars about business tax requirements. Your earnings are highly dependant on your activities and advertising. The information contained on this site and in the report constitutes no guarantees stated nor implied. In the event that it is determined that this site or report constitutes a guarantee of any kind, that guarantee is now void. The earnings amounts listed on this site and in the report are estimates only. If you have any questions of the legality of this program, contact the Office of Associate Director for Marketing Practices, Federal Trade Commission, Bureau of Consumer Protection in Washington, DC. ***Under Bill S.1618 TITLE III passed by the 105th U.S. Congress this letter Can Not be Considered Spam as long as we include the way to be removed. // This message is sent in compliance with the new e-mail bill: SECTION 301. Sender: Per Section 301, Paragraph (a)(2)(C) of S. 1618, further transmissions to you by sender of this email may be stopped, at no cost to you, by sending a reply to this email address with the word remove in the subject line. If at any time you no longer wish to receive email from us, please hit reply and put Please Remove in the subject box. This will remove you from our list until you post at one of our sites again. . -- 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] Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?
Wow, seems pretty obvious now that you've said it, Richard, but then that's how it always works. Yes, I can just write it all to a file and then upload that to the server then can grab it from there with PHP. Ahhh, life is GOOD! Worst case, the the user will have to click twice, once for the upload and again to confirm the update. AWESOME! You have no idea how stuck I was on that on. I'll have a look/listen at some of those CD's. Thanks again! Andre Richard Lynch [EMAIL PROTECTED] wrote in message 00ef01c1237a$74dff0a0$6401a8c0@Lynchux100">news:00ef01c1237a$74dff0a0$6401a8c0@Lynchux100... Any server along the way is allowed to chop GET requests to, like, 255 characters. Any server along the way is allowed to chop POST requests to, like, 1024? characters. *MOST* won't chop either, any more, but you're safe with POST instead of GET. You *COULD* however, try this to guarantee delivery: Breaking up the HTML into packets and POST each packet successively with a numbering scheme whereby PHP holds each packet in a temp table and assembles them when all packets have arrived. Dunno if JavaScript will let you execute multiple POSTs and ignore the returning HTML or not though... Your best bet by far is to have JavaScript execute a POST with a FILE UPLOAD. You'll have to figure out if JavaScript can do that, though... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: News.Fbcc.Com [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Sunday, August 12, 2001 12:55 PM Subject: Passing LARGE (1500-2500 chars) variable from JScript to PHP? I want to pass a large (easily 1500-2500 characters) variable between a DHTML object using Jscript over to a PHP script to ultimately update a MySQL database. I know that I can pass a variable along with the link, i.e. location.href=etc. etc., but I believe there is a limit on the size of an href. What I am doing is editting text and am using MSIE specific functions to create HTML on the fly which I then want to pass to a PHP script to update my database. Any help would be SINCERELY appreciated!! Merci, (or is that mercy?) Andre -- 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] Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?
Thank you for the response Julio! That's what I will do is write to a file and then upload that file. From there I can have PHP get to that file for insert/update into a MySQL database. Thanks much! Andre InéRcia Sensorial [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I don't think it is possible to pass so much chars in a href, or URL for the matter. Is it really necessary? Couldn't you first write somewhere (db/file) those chars and retrieve it later, referencing it on the href? -- Julio Nobrega. 2B||!BB - That's the question. News.Fbcc.Com [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I want to pass a large (easily 1500-2500 characters) variable between a DHTML object using Jscript over to a PHP script to ultimately update a MySQL database. I know that I can pass a variable along with the link, i.e. location.href=etc. etc., but I believe there is a limit on the size of an href. What I am doing is editting text and am using MSIE specific functions to create HTML on the fly which I then want to pass to a PHP script to update my database. Any help would be SINCERELY appreciated!! Merci, (or is that mercy?) Andre -- 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] Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?
all you need is a unvisible iframe (IFRAME width=0 height=0 name=framename ... /IFRAME) and give it a name. then, you do a framename.write('data') with data in this format: form method=post action=youphpscript.php name=formname input type=hidden name=youvarname value=youdatatosend /form followed by a formname.submit(); that's about all it is. k/r chrissl ICQ#54897804 I want to pass a large (easily 1500-2500 characters) variable between a DHTML object using Jscript over to a PHP script to ultimately update a MySQL database. I know that I can pass a variable along with the link, i.e. location.href=etc. etc., but I believe there is a limit on the size of an href. What I am doing is editting text and am using MSIE specific functions to create HTML on the fly which I then want to pass to a PHP script to update my database. -- 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] Re: Problems with exec
I've used system() instead of exec() on windows systems with success before. Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 12, 2001 4:52 PM Subject: [PHP] Re: Problems with exec i have some problems with exec. i am using win2000, apache and latest php version. always 'unable to fork' . what´s the problem? As I understand it: Windows is not thread-safe. As an implication, exec-ing something would just crash anyway. Thus, exec() and friends won't work on Windows in PHP4 and up. If that's wrong, somebody email me off-list. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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 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] Re: upgrading from 4.03 to 4.06
Ok this is my error line...once again when I used 4.03 this script is already run...but got problem when i upgrade itu to 4.06 $db=database; $connectid=mysql_connect(bla,bluh,foo); mysql_db_query($db,UPDATE profile SET FullName='$FullName',Gender='$Gender',Birthday='$Birthday',. Address='$Address',HomePhone='$HomePhone',CelPhone='$CelPhone'. WHERE id=$profile-id,$connectid); - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:46 AM Subject: [PHP] Re: upgrading from 4.03 to 4.06 You'd have to show us every line that mentioned $connectionid for us to figure out where it disappeared... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 10:57 PM Subject: upgrading from 4.03 to 4.06 Hi there recently I had upgrade my php from as you see in the subject and I have a problem raise after I do some upgrading my php script already run OK when I used the previous version after I do the upgrading a lot of error raise here is how I configure /configure --with-mysql=/usr/local --with-apxs=/usr/local/apache/bin/apxs -- enable-memory-limit --enable-ucd-snmp-hack --with-snmp=/usr/local/snmpd --en able-discard-path --enable-force-cgi-redirect --enable-trans-sid the problem is like this on the beginning of the script i declare $connectid=mysql_connect(bla,bla,bla); and at the end (still the same page) I used this mysql_db_query($db,query,$connectid); -- here is the error come up seems like the $connectid variable that I declare in previous didn't parse till the end then I put the $connectid=mysql_connect(bla,bla,bla); before the query then everything is OK.. can any body point me out where did I go wrong...I'm sure my script is OK..it's run in version 4.03 but got error in 4.06 Thanks in Advance Yamin Prabudy -- 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 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] Can't run perl script using exec or system
Hi, friends, Using the following code, the two files copyUp.pl and convert.pl aren't called. I can run them peachy dandy from the commandline with the expected results. I've tried system(), exec(), and back tics. Thanks, Lara ---8 8 - $command = /home/copyUp.pl $sellerid $image; exec($command, $output, $error); if($error) { echo OS Error1 $errorbr; } $filename = basename($image); print Filename: $filename; $cmd=/home/convert.pl $sellerid $filename; exec($cmd, $output, $error); if($error) { echo OS Error2 $errorbr; } - Lara J. Fabans Lodestone Software, Inc [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]
[PHP] Postgresql large objects.
Does using pg_loread or any other php functions for postgresql large objects modify the size of the file? I'm seeing a size increase in a few bytes when I receive the file back to my hard drive. The file still seems to run ok, but I'm wondering what is doing this? -- 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] logging bandwidth
Hello, I am logging server activity to a MySQL database. Unfortunately, I have yet found a way to log the number of bytes being transferred to a visitor. The closest I've come to anything like that is apache_lookup_uri() but I'm not sure it's meant to handle such a thing. Does anyone know a solution to this? Thankz. -- 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] logging bandwidth
I am logging server activity to a MySQL database. Unfortunately, I have yet found a way to log the number of bytes being transferred to a visitor. The closest I've come to anything like that is apache_lookup_uri() but I'm not sure it's meant to handle such a thing. Does anyone know a solution to this? I wouldn't use PHP for this at all. Look at Apache's Piped Logs feature that sends log entries to an external process for logging. Should be relatively simple to pipe it to something that enters the information into a MySQL DB. I bet something exists that does just that somewhere. -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] logging bandwidth
I am logging server activity to a MySQL database. Unfortunately, I have yet found a way to log the number of bytes being transferred to a visitor. The closest I've come to anything like that is apache_lookup_uri() but I'm not sure it's meant to handle such a thing. Does anyone know a solution to this? I wouldn't use PHP for this at all. Look at Apache's Piped Logs feature that sends log entries to an external process for logging. Should be relatively simple to pipe it to something that enters the information into a MySQL DB. I bet something exists that does just that somewhere. -Rasmus I made a little C program to do this a couple of years ago. I'm not very good at C but if you want the source anyway, just email me. Incidentally, the number of bytes transferred to the client is available in the Apache logging - check the Apache manual for the format specifier under the LogFormat directive. jason -- 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] Mail()
How can force my From: instead of the nobody@servername ?
Re: [PHP] Mail()
From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- 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]