[PHP] how to post a question?
I was wondering how can I ask a question to the other subscribers?
[PHP] Remote HTM not printing via PHP
Sorry Guys for the previous ignorant Q I thought I was emailing the Help desk, do forgive. I am trying to print a remote header menu in a html page without frames. The client side JS in located in this htm. ( http://www.dtcc.com/ThoughtLeadership/menu.htm ) I tried both INCLUDE, REQUIRE with no avail. I am a complete novice beginner so can anyone help me a bit please? The code I tried: == http://www.dtcc.com/ThoughtLeadership/menu.htm'; print getRandomLine($filename); function getRandomLine($filename) { global $errors; if (file_exists($filename)) { mt_srand ((double) microtime() * 100); $lines = file($filename); $line_number = mt_rand(0,sizeof($lines)-1); return $lines[$line_number]; } else { $errors['getRandomLine'][] = "File: $filename not found"; return FALSE; } } ?> ...& On it Goes Can you please let me know why can't print the remote HTM in the current page (Though it is in a different domain)? Thanks, Chirantan NYC p2ren[at]aol[dot]com
Re: [PHP] how to post a question?
Hi Alan & Everybody who wasted time to read my 1st Letter, SORRY guys, I do deserve the scorn but it was genuine mistake I didn't want to post garbage bugging other people. I was under the impression that I was mailing to the HELP DESK( nonliving resp system). If you can, Please do help me in my real PHP issue: === I am trying to print a remote header menu in a html page without frames. The client side JS in located in this htm. ( http://www.dtcc.com/ThoughtLeadership/menu.htm ) I tried both INCLUDE, REQUIRE with no avail. I am a complete novice beginner so can anyone help me a bit please? The code I tried: == http://www.dtcc.com/ThoughtLeadership/menu.htm'; print getRandomLine($filename); function getRandomLine($filename) { global $errors; if (file_exists($filename)) { mt_srand ((double) microtime() * 100); $lines = file($filename); $line_number = mt_rand(0,sizeof($lines)-1); return $lines[$line_number]; } else { $errors['getRandomLine'][] = "File: $filename not found"; return FALSE; } } ?> ...& On it Goes Can you please let me know why can't print the remote HTM in the current page (Though it is in a different domain)? Thanks, Chirantan NYC - Original Message - From: "Alan Milnes" <[EMAIL PROTECTED]> Cc: Sent: Friday, July 22, 2005 10:47 AM Subject: Re: [PHP] how to post a question? Chirantan Ghosh wrote: I was wondering how can I ask a question to the other subscribers? Try reading this first:- http://www.catb.org/~esr/faqs/smart-questions.html Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to post a question?
Hi Edward, I would simply like to print the remote Menu page( http://www.dtcc.com/ThoughtLeadership/menu.htm ) in a new page. I did the Error report print because I had no idea for what reason my PHP code was working. The menu is used as a header as well(the root file is JS which I can't use as I don't know all the directories of dtcc.com ) I am simply trying to impress a non technical person of the company so I can get a design contract. How can print the menu in different domain html pages? ( I would like to use PHP as server language) Thanks, Chirantan - Original Message - From: "Edward Vermillion" <[EMAIL PROTECTED]> To: Cc: "Alan Milnes" <[EMAIL PROTECTED]> Sent: Friday, July 22, 2005 11:20 AM Subject: Re: [PHP] how to post a question? Chirantan Ghosh wrote: Hi Alan & Everybody who wasted time to read my 1st Letter, SORRY guys, I do deserve the scorn but it was genuine mistake I didn't want to post garbage bugging other people. I was under the impression that I was mailing to the HELP DESK( nonliving resp system). If you can, Please do help me in my real PHP issue: === I am trying to print a remote header menu in a html page without frames. The client side JS in located in this htm. ( http://www.dtcc.com/ThoughtLeadership/menu.htm ) I tried both INCLUDE, REQUIRE with no avail. I am a complete novice beginner so can anyone help me a bit please? The code I tried: == TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> http://www.dtcc.com/ThoughtLeadership/menu.htm'; print getRandomLine($filename); function getRandomLine($filename) { global $errors; if (file_exists($filename)) { mt_srand ((double) microtime() * 100); $lines = file($filename); $line_number = mt_rand(0,sizeof($lines)-1); return $lines[$line_number]; } else { $errors['getRandomLine'][] = "File: $filename not found"; return FALSE; } } ?> ...& On it Goes Can you please let me know why can't print the remote HTM in the current page (Though it is in a different domain)? Thanks, Chirantan NYC - Original Message - From: "Alan Milnes" <[EMAIL PROTECTED]> Cc: Sent: Friday, July 22, 2005 10:47 AM Subject: Re: [PHP] how to post a question? Chirantan Ghosh wrote: I was wondering how can I ask a question to the other subscribers? Try reading this first:- http://www.catb.org/~esr/faqs/smart-questions.html Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Just out of curiosity, why are you just printing a random line from the file? Then the next question is do you have your error reporting turned up: error_reporting(E_ALL); and display_errors = On in php.ini, only for a development server, or at least a log file to look at, for a production server? I'm going to assume that you've checked the source of your script output and the random line isn't where you thout it would be? The best thing to do would be to just print out the lines/files you are trying to get, without the rest of the HTML, to see what your getting from just the part your having trouble with. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to post a question?
Hi Ryan, I tried that first & also after you wrote with no avail. ( This should be very elemental) = http://www.dtcc.com/ThoughtLeadership/menu.htm'); echo $filename; ?> = I am trying this html in a local machine. I preview it Internet Explorer (which has access to net). Does it matter if the HTML file is not residing in a domain?( I didn't think so but no harm asking) Thanks a bunch for taking interest, Chirantan - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "php" Sent: Friday, July 22, 2005 12:10 PM Subject: Re: [PHP] how to post a question? Hey, Getting the code from the remote site is easy enough, you just gotto find the images now, but heres something that should get you the basic code including the javascript: http://www.dtcc.com/ThoughtLeadership/menu.htm'); echo $filename; ?> once you have the code, start converting the relative image paths to full image paths, should work. Cheers, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to post a question?
Hello Edward, I did try your approach in this page http://www.homecare1.biz/public_html/PHPsiteTest01.html with no avail. How would I find out if I have fopen wrappers enabled? This page is remote hosted ( Hosted by Godaddy.com who state I have PHP/MySQL enabled). CODE USED: === http://www.dtcc.com/ThoughtLeadership/menu.htm')); ?> Thanks for the help, Chirantan - Original Message - From: "Edward Vermillion" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]> Cc: Sent: Friday, July 22, 2005 12:26 PM Subject: Re: [PHP] how to post a question? Chirantan Ghosh wrote: Hi Edward, I would simply like to print the remote Menu page( http://www.dtcc.com/ThoughtLeadership/menu.htm ) in a new page. I did the Error report print because I had no idea for what reason my PHP code was working. The menu is used as a header as well(the root file is JS which I can't use as I don't know all the directories of dtcc.com ) I am simply trying to impress a non technical person of the company so I can get a design contract. How can print the menu in different domain html pages? ( I would like to use PHP as server language) Thanks, Chirantan First try this: print htmlentities(file_get_contents('http://www.dtcc.com/ThoughtLeadership/menu.htm')); ?> That will let you see the HTML in your browser. If you don't get anything then either your request is being blocked by a firewall or you don't have fopen wrappers enabled. I'm betting on the latter though. Are you running a local install of php or through a remote server? You should be generating some kind of errors if your not getting anything back. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Including Check box ifo in PHP mail
Hi Everybody, The reference PHP is http://www.primarywave.com/BrokerOutpost_Contact.php. I want it have Checkbox like http://www.primarywave.com/BrokerOutpost_Contact.htm & have it sent vis POST form action like the PHP sited before. My ignorace is getting the best of me do help please. The PHP code that I have ( Form post method Printing info in email part) = $value) { ${$indx}=$value; } foreach($HTTP_POST_VARS as $indx => $value) { ${$indx}=$value; } if($sendmessage == "yes"){ $todaytime = date("F j, Y, g:i a"); $mailTo = "[EMAIL PROTECTED]"; //This is where I want it to be mailed when form is submitted $mailSubject = "Primary Wave Media Contact BrokerOutpost Ref :: $todaytime"; $mailBody = "Information:\n\n"; if($number){ $mailBody .= "Number: $number\n\n"; } $mailBody .= "Full Name: $name\n"; $mailBody .= "Company: $company\n"; $mailBody .= "State:$state\n"; $mailBody .= "Email:$email\n"; $mailBody .= "Phone:$phone\n\n"; $mailBody .= "Main Activities: $activities\n\n"; /This is where I want to add the Check box like( http://www.primarywave.com/BrokerOutpost_Contact.htm ) $mailBody .= "SelectedNumber: $SelectedNumber\n"; $mailBody .= "Comments: $comments\n\n\n"; $mailBody .= "$todaytime"; $mailHeaders = "From: [EMAIL PROTECTED]"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); print "Thank You"; }else{ $_num = new number(); $_num->init(); $number = $_num->num_info[number]; ?> == I tried putting in labeled Checkbox & included the names in $mailBody .= "CheckBox name: $CheckBoxname\n"; I tried the NAME, LABLE all same to avoid confusion Thanks a lot, C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Spider/Crawler for Emails possible?
Hi, I was wondering if one could create Spiders/Crawlers in PHP? I need for the PHP code to email me a list of emails, of domains listed in that page. Is this possible? Thanks, C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Spider/Crawler for Emails possible?
Hello Jay, Pardon my ignorance but can you enlighten me a little more please? Like where can I look for them or how to code? As always all members are more than welcome to ask me for graphics I hope to be benevolent that way. Thanks a lot, C - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]>; Sent: Friday, July 29, 2005 2:05 PM Subject: RE: [PHP] PHP Spider/Crawler for Emails possible? [snip] I was wondering if one could create Spiders/Crawlers in PHP? [/snip] Yes. [snip] I need for the PHP code to email me a list of emails, of domains listed in that page. Is this possible? [/snip] Yes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Spider/Crawler for Emails possible?
Hi Jay & Jim, Let me apologize for mis-communication. I HATE sp#ammers like any normal being in the net. What I intend to do is build a customer forum(Purely opted in) People come to a web page & deliberately add their Real Estate website and sign up for our product & news letter. Real estate spreads in peer networking hence, the email. Once the Emails are collected from the spiders an automated mail will be sent comprising OPT IN consent. IF Opt In email is return then only these people will be subscribed to our newsletter. Thanks a lot, C N.B: In my last post I didn't mean to barter a trade was just trying to be helpful if anyone needed graphic. - Original Message - From: "Jim Moseby" <[EMAIL PROTECTED]> To: Sent: Friday, July 29, 2005 2:14 PM Subject: RE: [PHP] PHP Spider/Crawler for Emails possible? Hi, I was wondering if one could create Spiders/Crawlers in PHP? I need for the PHP code to email me a list of emails, of domains listed in that page. Is this possible? Of course it is, but I'm afraid you might crawl the web, collect email addresses, and send spam to the good people, or sell their email adresses to someone else who will. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Spider/Crawler for Emails possible?
Hi TG, I do not have the admin to all local sites. Well calling it doomsday device sure should scare anyone who believes email privacy but I HARDLY think an Image Designer of my coding capability can manage any harm even indenting so. I just don't have enough tech knowledge hence, the appeal to the forum. If you could please give a little bit more lead I would be more than happy to my homework or I'll just have to keep googling "Parsing HTML". Thanks a lot for responding, C - Original Message - From: <[EMAIL PROTECTED]> To: Cc: <[EMAIL PROTECTED]> Sent: Friday, July 29, 2005 2:37 PM Subject: Re: [PHP] PHP Spider/Crawler for Emails possible? I guess my question at this point is that it sounds like you have control of the system. Why not have it so when they enter their email address, they can check a box saying "Add me to your mailing list".. and it'll put them directly into the database? Why the need to parse already built webpages to get the email addresses? Parsing HTML for email and web addresses shouldn't be too hard and there are probably a ton of examples of how to use regex or other pattern matching systems to do just that. But you can see how people wouldn't want to help build a doomsday device that could fall into the wrong hands. :) -TG = = = Original message = = = Hi Jay & Jim, Let me apologize for mis-communication. I HATE sp#ammers like any normal being in the net. What I intend to do is build a customer forum(Purely opted in) People come to a web page & deliberately add their Real Estate website and sign up for our product & news letter. Real estate spreads in peer networking hence, the email. Once the Emails are collected from the spiders an automated mail will be sent comprising OPT IN consent. IF Opt In email is return then only these people will be subscribed to our newsletter. Thanks a lot, C N.B: In my last post I didn't mean to barter a trade was just trying to be helpful if anyone needed graphic. ___ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Printing Error Help
Hi Guys, I am new to PHP coding but that is no excuse for the mess I am making here. The ideal page for my needs is: http://www.primarywave.com/BrokerOutpost_Contact.php (Simple form in PHP where all form values are mailed) I could not make the CHECK BOX work in PHP page so tried in this HTM page. I prints out part of the PHP code itself. http://www.primarywave.com/BrokerOutpost_Contact.htm Can anyone PLEASE tell me "where" I am making a buffoon of myself? I am a designer who is trying to understand the language so do pardon my ignorance. Thanks, C
Re: [PHP] PHP Printing Error Help
Ho John, I put each check box with name & tried to get the values as I get of Name, etc. Somehow it didn't send that info so, now I tried to get the info of the whole TABLE named "InterestedNumber"(which contains all check boxes) How ever the main problem for me is "Interested Numbers: $InterestedNumber\n"; part where I have no clue what "\n" stands for OR why is it repeated in the "Comments" section. The page is http://www.primarywave.com/BrokerOutpost_Contact.htm you can see the source code if you like. Thanks a lot for the input, C - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: Sent: Monday, August 15, 2005 12:31 PM Subject: Re: [PHP] PHP Printing Error Help Chirantan Ghosh wrote: Hi Guys, I am new to PHP coding but that is no excuse for the mess I am making here. The ideal page for my needs is: http://www.primarywave.com/BrokerOutpost_Contact.php (Simple form in PHP where all form values are mailed) I could not make the CHECK BOX work in PHP page so tried in this HTM page. It prints out part of the PHP code itself. http://www.primarywave.com/BrokerOutpost_Contact.htm What isn't working with the check boxes? How are you retrieving the values upon processing the form? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
Hi John, //[snip] You probably want to move into the relm of array's. For each one of your checkboxes, you can do this... /[/snip] I did look up ARRAY. I just didn't understand how I can insert a table( "InterestedNumber") in an arrey so I could put something like this for form processing: -- $value) { ${$indx}=$value; } foreach($HTTP_POST_VARS as $indx => $value) { ${$indx}=$value; } if($sendmessage == "yes"){ $todaytime = date("F j, Y, g:i a"); $mailTo = "[EMAIL PROTECTED]"; $mailBody .= "Main Activities: $activities\n\n"; $mailBody .= "SelectedNumber: $SelectedNumber\n"; //I am thinking this is where I should put the Array??/ $mailBody .= "Comments: $comments\n\n\n"; $mailBody .= "$todaytime"; $mailHeaders = "From: [EMAIL PROTECTED]"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); print "Thank You"; }else{ $_num = new number(); $_num->init(); $number = $_num->num_info[number]; ?> --- The PAGE I am testing is http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php Thanks for the help, C - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: Sent: Monday, August 15, 2005 12:58 PM Subject: Re: [PHP] PHP Printing Error Help Chirantan Ghosh wrote: Hi John, I put each check box with name & tried to get the values as I get of Name, etc. Somehow it didn't send that info so, now I tried to get the info of the whole TABLE named "InterestedNumber"(which contains all check boxes) How ever the main problem for me is "Interested Numbers: $InterestedNumber\n"; part where I have no clue what "\n" stands for OR why is it repeated in the "Comments" section. The page is http://www.primarywave.com/BrokerOutpost_Contact.htm you can see the source code if you like. Thanks a lot for the input, C The "\n" is just a new line. Your checkboxes are all named things like "1-877-HOMECASH" and "1-877-APPLY NOW", so '$InterestedNumber' isn't going to have any of their values. You probably want to move into the relm of array's. For each one of your checkboxes, you can do this... So on, and so forth. By naming them in this way, it will pass the value to your form processor as a numerical array of all the selected items. When you want to process it, just loop thru the array. http://us2.php.net/manual/en/language.types.array.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
Hi Richard, I am new as you can assume. Hence, I have no clue how to turn register_globals back "On" Is there any other place I can read more about creating Arrays? other than http://us2.php.net/manual/en/language.types.array.php The page is discussion: http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php doesn't seem to send the email even Can you please shed some light? Thanks, C - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]> Cc: "John Nichel" <[EMAIL PROTECTED]>; Sent: Tuesday, August 23, 2005 2:00 AM Subject: Re: [PHP] PHP Printing Error Help On Mon, August 22, 2005 12:56 pm, Chirantan Ghosh wrote: //[snip] You probably want to move into the relm of array's. For each one of your checkboxes, you can do this... /[/snip] I did look up ARRAY. I just didn't understand how I can insert a table( "InterestedNumber") in an arrey so I could put something like this for form processing: -- $value) { ${$indx}=$value; } foreach($HTTP_POST_VARS as $indx => $value) { ${$indx}=$value; } Gak. If you are going to do this, you might as well just turn register_globals back "On" You've got the SAME security problem -- You just are doing it to yourself instead of letting PHP do it to you. if($sendmessage == "yes"){ $mailBody .= "SelectedNumber: $SelectedNumber\n"; //I am thinking this is where I should put the Array??/ $mailBody .= "SelectedNumbers:\n"; $mailBody .= implode("\n", $InterestedNumbers); $mailBody .= "Comments: $comments\n\n\n"; -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
I tried looking in the local Root folder of my web site as well as the remote. I don't own the server so didn't know if to look for "php.ini file" there. Sorry for redundant Qs but I seem to be very lost. On a different Note, This page is the original working version I have: http://www.primarywave.com/BrokerOutpost_Contact.php This is the page I want to work allowing the check box values to be reported. http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php I kept almost everything identical so Im at loss why the 2nd doesn't even send the email Thanks, C - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: Sent: Tuesday, August 23, 2005 10:15 AM Subject: RE: [PHP] PHP Printing Error Help [snip] I am new as you can assume. Hence, I have no clue how to turn register_globals back "On" [/snip] Look in your php.ini file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
I went to the php.ini File & it opened in notepad. I had this info: == ; You should do your best to write your scripts so that they do not require ; register_globals to be on; Using form variables as globals can easily lead ; to possible security problems, if the code is not very well thought of. register_globals = On == Does that imply register_globals is "On" My site's PHP info is available at http://www.primarywave.com/myPHPinfo.php Thanks, C [snip] On a different Note, This page is the original working version I have: http://www.primarywave.com/BrokerOutpost_Contact.php This is the page I want to work allowing the check box values to be reported. http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php I kept almost everything identical so Im at loss why the 2nd doesn't even email [/snip] - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]>; Sent: Wednesday, August 24, 2005 10:16 AM Subject: RE: [PHP] PHP Printing Error Help [snip] Its Apache server, Linux [/snip] Put the follwoing in a seperate page and run it from the browser. It will give you the path to your php.ini file... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
Hi Richard , Jay helped me with the Global setting but the problem remains the same. Can you enlighten please? /[snip] If you are going to do this, you might as well just turn register_globals back "On" You've got the SAME security problem -- You just are doing it to yourself instead of letting PHP do it to you. /[/snip] Apparently the register_globals is "On" My site's PHP info is available at http://www.primarywave.com/myPHPinfo.php The problem still in hand is: == [snip] On a different Note, This page is the original working version I have: http://www.primarywave.com/BrokerOutpost_Contact.php This is the page I want to work allowing the check box values to be reported. http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php I kept almost everything identical so Im at loss why the 2nd doesn't even send the email [snip] Thanks, C - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]> Cc: "John Nichel" <[EMAIL PROTECTED]>; Sent: Tuesday, August 23, 2005 2:00 AM Subject: Re: [PHP] PHP Printing Error Help On Mon, August 22, 2005 12:56 pm, Chirantan Ghosh wrote: //[snip] You probably want to move into the relm of array's. For each one of your checkboxes, you can do this... /[/snip] I did look up ARRAY. I just didn't understand how I can insert a table( "InterestedNumber") in an arrey so I could put something like this for form processing: -- $value) { ${$indx}=$value; } foreach($HTTP_POST_VARS as $indx => $value) { ${$indx}=$value; } Gak. If you are going to do this, you might as well just turn register_globals back "On" You've got the SAME security problem -- You just are doing it to yourself instead of letting PHP do it to you. if($sendmessage == "yes"){ $mailBody .= "SelectedNumber: $SelectedNumber\n"; //I am thinking this is where I should put the Array??/ $mailBody .= "SelectedNumbers:\n"; $mailBody .= implode("\n", $InterestedNumbers); $mailBody .= "Comments: $comments\n\n\n"; -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
Please find the whole HTML attached. I am sending the whole page because it has multiple PHP. The affecting PHP I thinking is the one retaining info what to email (Line 8 to 52) Thanks a lot, C NB: If I move table named "InterestedNumber" in an Array, how should I incorporate it in Line 34. - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: Sent: Wednesday, August 24, 2005 11:28 AM Subject: RE: [PHP] PHP Printing Error Help [snip] This page is the original working version I have: http://www.primarywave.com/BrokerOutpost_Contact.php This is the page I want to work allowing the check box values to be reported. http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php I kept almost everything identical so Im at loss why the 2nd doesn't even send the email [/snip] We would actually have to see the non-working code to make a determination. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
I put the whole code in .txt version at http://www.primarywave.com/NONworkingCODE.txt I gave group & global Writing permission aswell, edit if you like. Thanks, C /[snip] This page is the original working version I have: http://www.primarywave.com/BrokerOutpost_Contact.php This is the page I want to work allowing the check box values to be reported. http://www.primarywave.com/BrokerOutpost_ContNAGHAM.php I kept almost everything identical so Im at loss why the 2nd doesn't even send the email /[/snip] - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: Sent: Wednesday, August 24, 2005 11:43 AM Subject: RE: [PHP] PHP Printing Error Help [snip] Please find the whole HTML attached. I am sending the whole page because it has multiple PHP. The affecting PHP I thinking is the one retaining info what to email (Line 8 to 52) [/snip] Please copy and paste the code into your e-mail (only the relevant lines) as most cannot receive attachments on this list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Printing Error Help
Hi Jay, Sorry for the headache I gave ya out of aggravation :) Now It mails me everything Except the check box info Here is the working mail code ( This is a different page: http://www.primarywave.com/BrokerOutpost_Contact.php ) $value) { ${$indx}=$value; } foreach($HTTP_POST_VARS as $indx => $value) { ${$indx}=$value; } if($sendmessage == "yes"){ $todaytime = date("F j, Y, g:i a"); $mailTo = "[EMAIL PROTECTED]"; //$mailTo = "[EMAIL PROTECTED]"; $mailSubject = "Primary Wave Media Contact BrokerOutpost Ref :: $todaytime"; $mailBody = "Information:\n\n"; if($number){ $mailBody .= "Number: $number\n\n"; } $mailBody .= "Full Name: $name\n"; $mailBody .= "Company: $company\n"; $mailBody .= "State:$state\n"; $mailBody .= "Email:$email\n"; $mailBody .= "Phone:$phone\n\n"; $mailBody .= "Main Activities: $activities\n\n"; $mailBody .= "SelectedNumber: $SelectedNumber\n"; $mailBody .= "Comments: $comments\n\n\n"; $mailBody .= "$todaytime"; $mailHeaders = "From: [EMAIL PROTECTED]"; mail($mailTo, $mailSubject, $mailBody, $mailHeaders); print "Thank You"; }else{ $_num = new number(); $_num->init(); $number = $_num->num_info[number]; ?> = [snip] I put the whole NON-WORKINGcode in .txt version at http://www.primarywave.com/NONworkingCODE.txt I gave group & global Writing permission aswell, edit if you like. [/snip] - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, August 24, 2005 12:28 PM Subject: RE: [PHP] PHP Printing Error Help [snip] I put the whole code in .txt version at http://www.primarywave.com/NONworkingCODE.txt I gave group & global Writing permission aswell, edit if you like. [/snip] *smacks forehead* Hello? Is this thing on? Post only the relevant code? Can we see the source of the one that works? Only the mail code please -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Automatically generated emails
Dude, Im a new guy too..If u don't even provide a code do you THINK we will all write & email a code to u? Chirantan Ghosh PS: I think a little modesty is in order asking for help. We have the neatest, helpful people around here. - Original Message - From: "Ravi Gogna" <[EMAIL PROTECTED]> To: "Jay Blanchard" <[EMAIL PROTECTED]> Cc: "John Nichel" <[EMAIL PROTECTED]>; Sent: Monday, August 29, 2005 2:28 PM Subject: Re: [PHP] Automatically generated emails Nice to know that newbies are well looked after on these lists. If you didn't wanna help, you could have not clicked reply Jay Blanchard wrote: [snip] Yes. [/snip] Watch out, this'll start a flood of "why can't you be nice"? e-mail John, any relatives still in LA? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Domain Info Possible?
Hello, I was wondering if there was way to generate domain statistics by any PHP script? I just need some basic info like: Monthly Traffic( Sites, Kbytes, Visits, Pages, Files, Hits ) Example: http://server18.internetserver.com/stats/1800homecare/ If it is possible can I also create a Log In for that page? I would appreciate any direction. Thanks, C. Ghosh
[PHP] Ardent Pursing help
Hi All, My company is trying to send an offer email to all Ford dealers in USA. We don't intend to send them unapproved emails i.e. sp*m hence, we will call then first. Is there any way I can generate a PHP client/code that can search Google/Yahoo/MSN and grab the PR/Sales contacts ( e.g. address, phone number, email)? I have e-grabber & can have it done manually but it hardly seems a solution. I could really use some help. As for proof I am not a sp*mmer/ list seller you can visit or website www.primarywave.com and the number we intend to offer is 1-877-NEW FORD . Thanks for the help, CG
[PHP] FORM not printing
Hi Guys, Looks like I am making an elemental mistake somewhere but can't figure out where can anyone please help? This form is not printing at all but doesn't show any error in my browser. The URL of defected PHP: http://www.primarywave.com/eRSP_Contact.php The URL of How It Should Look: http://www.primarywave.com/eRSP_Contact.htm Thanks a lot, C. Ghosh
Re: [PHP] FORM not printing
Thanks Jay. Unfortunately I am still at loss. I posted the code I wrote in this URL: http://www.primarywave.com/NONworkingCODE.txt The Source displays exact as is for all markup. If you can help it would be great. Thanks, C - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Chirantan Ghosh'" <[EMAIL PROTECTED]>; Sent: Thursday, November 10, 2005 1:54 PM Subject: RE: [PHP] FORM not printing [snip] Looks like I am making an elemental mistake somewhere but can't figure out where can anyone please help? This form is not printing at all but doesn't show any error in my browser. The URL of defected PHP: http://www.primarywave.com/eRSP_Contact.php The URL of How It Should Look: http://www.primarywave.com/eRSP_Contact.htm [/snip] It would be hard to know, but it is not a PHP problem. Viewing the source shows a table, so you either have an HTML, CSS, or JavaScript problem. I hope that helps to narrow it down. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FORM not printing
I tried that was with no avail. The JS was just cosmetics by the original designer. Now I am trying a new angle. The Form remains in: http://www.primarywave.com/eRSP_Contact.htm but the form processing code is in http://www.primarywave.com/eRSP_Contact.php Its says I have an error in last line of the code i.e line 35. - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Chirantan Ghosh'" <[EMAIL PROTECTED]>; "Jay Blanchard" <[EMAIL PROTECTED]> Cc: Sent: Thursday, November 10, 2005 2:31 PM Subject: RE: [PHP] FORM not printing [snip] Unfortunately I am still at loss. I posted the code I wrote in this URL: http://www.primarywave.com/NONworkingCODE.txt The Source displays exact as is for all markup. If you can help it would be great. [/snip] Remove all of the JavaScript code from the page and try it then. What is the JavaScript for, it appears to do nothing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FORM not printing
Hi Suhas, Thanks a lot for the closing "{", you are a life saver. I can't believe I could have been so blind & then even stupid not to see after your mail. Thanks again, C Jay, Thanks to you too. - Original Message - From: "Suhas" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]> Sent: Thursday, November 10, 2005 3:17 PM Subject: Re: [PHP] FORM not printing The correct code is attached On 11/10/05, Chirantan Ghosh <[EMAIL PROTECTED]> wrote: [snip] There is no closing bracket for if [/snip] Hi Suhas, I am a newbie..didn't quite catch you. I thought I closed the "{", please explain if you can. Thanks, C $mailBody = "Information:\n\n"; if($number){ $mailBody .= "Number: $number\n\n"; } $mailBody .= "Full Name: $name\n"; - Original Message - From: "Suhas" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]> Sent: Thursday, November 10, 2005 3:06 PM Subject: Re: [PHP] FORM not printing There is no closing bracket for if U need good editor like Winsyntax Suhas On 11/10/05, Chirantan Ghosh <[EMAIL PROTECTED]> wrote: > I tried that was with no avail. The JS was just cosmetics by the > original > designer. > > Now I am trying a new angle. > The Form remains in: http://www.primarywave.com/eRSP_Contact.htm > but the form processing code is in > http://www.primarywave.com/eRSP_Contact.php > > Its says I have an error in last line of the code i.e line 35. > > - Original Message - > From: "Jay Blanchard" <[EMAIL PROTECTED]> > To: "'Chirantan Ghosh'" <[EMAIL PROTECTED]>; "Jay Blanchard" > <[EMAIL PROTECTED]> > Cc: > Sent: Thursday, November 10, 2005 2:31 PM > Subject: RE: [PHP] FORM not printing > > > > [snip] > > Unfortunately I am still at loss. > > I posted the code I wrote in this URL: > > http://www.primarywave.com/NONworkingCODE.txt > > The Source displays exact as is for all markup. > > > > If you can help it would be great. > > [/snip] > > > > Remove all of the JavaScript code from the page and try it then. What > > is > > the > > JavaScript for, it appears to do nothing. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Contact @ Suhas Pharkute. [EMAIL PROTECTED] 208 830 8915 (C) 208 429 6943 (H) -- Contact @ Suhas Pharkute. [EMAIL PROTECTED] 208 830 8915 (C) 208 429 6943 (H) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Deatailed Email Publishing Record
Hi All, Is there any way to develop a php scrip which generates reports of emails sent from a list? Basic records like open rate, click rate, opt out that is automatically generated from the email campaign list? I am trying to substitute our email publishing house because they don't have a good system to display Opt outs. I am open to suggestion and partnership in this project. If anyone has good email publishing house ( i.e. Takes our Opt-In Email list, sends our designed emails & provides us the stats) or wants to reference, please feel free to do so. Thanks, C
[PHP] PRINTing Problem with CheckBox
Hi All, I have developed this form where people click the check boxes of interested phone numbers which gets emailed to me. My ACT guys tells me I need to print all the Check Box values as unique fields for his intake. I have posted the problem in detail in following URL: http://www.primarywave.com/NONworkingCODE.txt Can anyone please help me sort this out. Thanks, C
[PHP] Browser Control Help
Hi All, I was wondering how do in trick in PHP page part? I want to disable Ctrl, Atl, Print Screen and also remove the File, Edit, View menus from the browser. I already have a working version with disabled Ctrl, Atl, Print Screen ( http://www.art-nyc.us/ )but I need some help with coding with the later. If someone can please help me remove the File, Edit, View menus from the browser in PHP it would help a LOT. Thanks, C
Re: [PHP] Browser Control Help
Thanks Jay, In the site of example I did in JS :) I thought It would be improvement if there was something similar then I could use it for other things later. Thanks again, C - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Chirantan Ghosh'" <[EMAIL PROTECTED]>; Sent: Monday, December 05, 2005 10:08 AM Subject: RE: [PHP] Browser Control Help [snip] I was wondering how do in trick in PHP page part? I want to disable Ctrl, Atl, Print Screen and also remove the File, Edit, View menus from the browser. I already have a working version with disabled Ctrl, Atl, Print Screen ( http://www.art-nyc.us/ )but I need some help with coding with the later. If someone can please help me remove the File, Edit, View menus from the browser in PHP it would help a LOT. [/snip] You need JavaScript, not PHP. JavaScript is client-side, PHP is server-side. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Browser Control Help
Hi Dan, You are sooo right. We know certain kindda people would love to break the code just cuz its there :D I am least worried about programmers. Its stupid rich Art collage kids I am trying to prevent using my stuff. You would be amazed to know I walked in SVA( School of Visual Arts), NYC & saw my painting exactly as is printed in their merit list with a kid's name under. What I want to achieve is, only my homepage will have File, View, Edit menus. I have mapped navigation over images, once they go anywhere it should open a window that has no menus like http://creative.gettyimages.com/ uses for display of images. I am not even sweating hot-linking. Thanks a lot for the input, C - Original Message - From: "Dan Parry" <[EMAIL PROTECTED]> To: "'Chirantan Ghosh'" <[EMAIL PROTECTED]> Sent: Monday, December 05, 2005 10:32 AM Subject: RE: [PHP] Browser Control Help Hi No probs... I hate cross-browser problems myself and any help I get with them I appreciate :) Securing your public facing graphics and/or code is essentially too difficult to achieve... You can't (I'm pretty sure of this) remove (or disable) the menus in the browser (security implications there) There are usually ways around these client-side types of protection too... consider that if a person really does want to see your code/steal your pics they will look for ways around the system... Usually these exist with injection of JS into the URL (this is evident in at least 1 commercial system... can't remember what it is though :) ) Also, if a user can get your image path (on hover in Opera, for instance) the image URL can be directly input and stolen from there I decided a while ago to bite the bullet and accept that there are things I can't protect... I can't remember much of the research I did on the subject but it was pretty damning Last point... There are people out there that will break security on your site purely because it's there That's my 2 penn'orth :) Dan -Original Message- From: Chirantan Ghosh [mailto:[EMAIL PROTECTED] Sent: 05 December 2005 15:20 To: Dan Parry Subject: Re: [PHP] Browser Control Help Hi Dan, Thanks a lot man...as you can guess I am more a designer than a coder (unfortunately). Do you know how to fix the problem for Firefox? I really would appreciate the help. Thanks, C - Original Message - From: "Dan Parry" <[EMAIL PROTECTED]> To: "'Chirantan Ghosh'" <[EMAIL PROTECTED]> Sent: Monday, December 05, 2005 10:14 AM Subject: RE: [PHP] Browser Control Help Not disabled in Firefox... Just did some copying and printed a screen... also disabling ALT doesn't affect printscreen in IE... just took a screeny there too -Original Message- From: Chirantan Ghosh [mailto:[EMAIL PROTECTED] Sent: 05 December 2005 15:05 To: php-general@lists.php.net Subject: [PHP] Browser Control Help Hi All, I was wondering how do in trick in PHP page part? I want to disable Ctrl, Atl, Print Screen and also remove the File, Edit, View menus from the browser. I already have a working version with disabled Ctrl, Atl, Print Screen ( http://www.art-nyc.us/ )but I need some help with coding with the later. If someone can please help me remove the File, Edit, View menus from the browser in PHP it would help a LOT. Thanks, C __ NOD32 1.1311 (20051202) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com __ NOD32 1.1311 (20051202) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Browser Control Help
Thanks Jason, I am always ready to be enlightened by ones who know better than me. As you suggested, I really would love to get a watermark which is invisible with initial viewing but activated once a copying/printing command ( Can be Ctrl+C or Alt+Printscreen) is used. If you can help it would be delighting. Thanks, C - Original Message - From: "Jason Petersen" <[EMAIL PROTECTED]> To: "Chirantan Ghosh" <[EMAIL PROTECTED]> Cc: Sent: Monday, December 05, 2005 11:27 AM Subject: Re: [PHP] Browser Control Help I wish I had a dollar every time I've seen a question like yours, it seems like a lot of new developers think they need to fundamentally alter the way the browser works to protect their "content." The fact is, if you're putting content on the public web, it can--and will--be downloaded by all of your visitors. (they have to download it to display it after all) You're going the wrong way about protecting your images. No matter what Javascript tricks you try to use, all I have to do is disable Javascript. And you're going to seriously annoy your visitors who are not technically savvy, whether they have the intention to "steal" your content or not. Personally I would not come back to a site that assumes I'm a thief. You might want to look into other methods to protect your content, such as login authentication and watermarking. PHP can help with these. But if you come on this list and demand ridiculous things, don't expect to be taken seriously. A better way to ask your original question would have been: "How can PHP help protect web content?" Best, Jason On 12/5/05, Chirantan Ghosh <[EMAIL PROTECTED]> wrote: Hi Jason, You sound offended...Happy Christmas to you too! If you really wanted to know what I was addressing please read what Dan (Parry) wrote. Keep smiling after all its Dec, C - Original Message - *From:* Jason Petersen <[EMAIL PROTECTED]> *To:* Chirantan Ghosh <[EMAIL PROTECTED]> *Sent:* Monday, December 05, 2005 10:57 AM *Subject:* Re: [PHP] Browser Control Help 1. PHP is server side, not client side. 2. You don't have "a working version," my browser is fully functional on your site. 2. No one is interested in ripping off your Dreamweaver-generated site anyway. Best, Jason On 12/5/05, Chirantan Ghosh <[EMAIL PROTECTED]> wrote: > > Hi All, > > I was wondering how do in trick in PHP page part? > > I want to disable Ctrl, Atl, Print Screen and also remove the File, > Edit, View menus from the browser. > > I already have a working version with disabled Ctrl, Atl, Print Screen ( > http://www.art-nyc.us/ )but I need some help with coding with the later. > > If someone can please help me remove the File, Edit, View menus from the > browser in PHP it would help a LOT. > > Thanks, > C > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php