Jump to content

Search the Community

Showing results for tags 'PHP'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








  1. hi folks, need some help with this, iv got this code off a website, just the php part, iv put this code into a dynamic region of my site, as told to do, but when i then add it to a page style it doesnt show.now i know im probably missing a huge part of it but i dont even know what that is.and i still need to link eack option to a certain page of my site.any help i would be very grateful! <?phpfunction countrylist($action = 'dropdown', $selectedid = null) { $country_list = array( "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina",
  2. hi, i am trying to figure out how to take a php file iv downloaded and add it to my site, it was a zip file but its just confusing me now!does anyone know waht my first steps would be to do this, i am keen to learn all this stuff but i have to admit id be lost without the help of this forum.im just not sure how to take it from a zip file to installing it into my website files, if that is what i need to do?iv attached the file im tryin to use if this helps at all.pokerleague.zip
  3. sonu

    PHP Form

    Hello Guys,I am creating one simple php form all works great but I want solution for one thing.I want cc optional like I have checkbox in the form & if user click it then only it should send CC mail other wise not.Here is the code which I am using. <?php ob_start();$fromemail="No-Reply <demo@demo.com>"; // change here if you want$toemail="demo@demo.com"; // change here if you want$sub="Online Feedback"; // change here if you want$success_page_name="index.php";////// do not change in followingif($_SERVER['REQUEST_METHOD']=="POST"){$fieldnm_1=str_replace ( array("\n"), array(
  4. I got this code for uploading videos to my youtubeaccount from my website (browserbased): <?php session_start(); set_time_limit(0); ini_set('memory_limit', '150M'); ini_set('upload_max_filesize', '30M'); ini_set('default_socket_timeout', '6000'); ini_set('max_input_time', '6000'); ini_set('post_max_size', '100M'); ini_set('max_execution_time', '6000'); $clientLibraryPath = 'library'; $oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . $clientLibraryPath); //include Zend Gdata Libs require_once("Zend/Gdata/ClientLogin.php"); require_once("Zen
  5. My form is processed via action.php: <?phprequire_once 'login.php';$db_server = mysql_connect($db_hostname, $db_username, $db_password);if (!$db_server) die("Unable to connect to MySQL: " . mysql_error());$physichal_address = $_GET["physichaladdress"];$thelat = $_GET["thelat"];$thelng = $_GET["thelng"];$link = mysql_connect('localhost', 'root', '************');if (!$link) {die('Could not connect: ' . mysql_error());}mysql_close($link);?><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Fre
  6. I want to use a php script so that when I access the page, the browser copy the file from server to another server. Say, a file is in www.google.com/file.exe and when I open the page, the file will be copied to www.myserver.com/download location. pls tell me indetails coz I know only a little about PHP.Thanks
  7. I have seen a lot of ways to determen if a PHP script is already running but I wonder which solution is the best.Currently I'm using this: <?php $run = basename($_SERVER['PHP_SELF'], '.php') . '.run'; if (!file_exists($run) { touch($run); } else { echo "Already running!"; exit; } // ... (rest of code)?> But I already have seen a lot examples using pid's & sid's and everything. I'm sure my solution is not the best at all and so I'm asking you all to discuss your solutions with me.
  8. birbal

    thread in php

    is there any way to implement thread in php? i came across pcntl but it is telling it is not for windows. how to do it with windows?
  9. Hello internet.I am on the home stretch... One last piece to the puzzle.I am trying to send an html table in an e-mail from a php script and it is literally showing my code and not the table.Here is the code - what you see in the e-mail is exactly this code minus the $message='(...)'; $message = '<html><head> <title>Birthday Reminders for August</title></head><body> <p>Here are the birthdays upcoming in August!</p> <table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th&g
  10. Hi! I have a code where I populate the drop down list base on one of the columns in my database. It already display but the value of the chosen list did not affect my mysql query. Now I wanted to ask how I can put the value of the list to my mysql query.This is my code: <?php// db connection$db = "mds_reports";[/indent]if($connect = mysql_connect("", "mds_reports", "password")) $connect = mysql_select_db($db); else die("Unable to connect".mysql_error());$date_from = $_POST['dfrom'];$date_to = $_POST['dto'];?><html><head><title>Cancelled Orders </title&
  11. Hey there,I was wondering how at times Wikipedia displays that banner at the top of every page when they want one to be there. I use php inlcudes for my website but I know thats probably not what there using because sometimes there is no banner. I guess another great example would be how YouTube sometimes haves alerts for new things going on at the top. Any thoughts / how to do this would be great!Thanks,Allen Lawson
  12. Hey there,I was wondering how at times Wikipedia displays that banner at the top of every page when they want one to be there. I use php inlcudes for my website but I know thats probably not what there using because sometimes there is no banner. I guess another great example would be how YouTube sometimes haves alerts for new things going on at the top. Any thoughts / how to do this would be great! Thanks, Allen Lawson
  13. I am trying to display all the values of a drop-down menu's options. The drop down menu uses an onChange event that is as follows: b1.input1.value=b1.select_business[this.selectedIndex].text And when it's selected and the search button is clicked it displays the business info of a company on the page the user is directed to. How can i display the business info for all the selections in the drop down menu? What i've tried, but only displays the actual Name/Text of the business. //$f = file_get_contents('http://****/business_directory_framed.asp'); //$p = file_put_contents('dir_detail_framed
  14. Hello. I am very stuck at one point in my web-page project, and I hope that anyone of you can help me. In short, I'm trying to achieve an AJAX-like effect in a SVG-document. What I mean is that when the SVG-document (in my example below called SVGPage.php) has finished loading and is just sitting there waiting, I want to use AJAX on the click of an SVG-element (in my example the rectangle) to send a request to an external PHP-file (in my example called UpdateSVGPage.php).This "UpdateSVGPage.php" is building up SVG-code based on information from a database, and it will echo it back to the SVG-d
  15. Ok friends: I'm totally stuck, and I desperately need some guidance from you professionals. For the last couple of months I've been working on a web-page project.This is what I've got so far: - I've got a HTML5 page (index.php)- In this HTML5 page, I've got an embedded SVG-file, which is converted to a PHP-file (drawing.php)- It is converted to PHP, because it uses some data in a database to decide what the SVG-image should look like.- In this SVG-file, a PHP-script builds some graphics, and applies some animations to it.- The SVG-file also has a javascript-library attached to it, which I need
  16. Hey everybody, been a long time. I come bearing a question. I'm working on a website for a couple of buddies, and I'm trying to add some ambiguity in the AJAX calls by using Mod_Rewrite. RewriteEngine onRewriteRule ^([A-Z][A-Za-z]+)\\?(.*)?$ /modules.php?mod=$1&$2 At first I thought there was an error in my Regular Expression, so I decided to test it out in Javascript. Say I am trying to request /Data?user_id=1 The Javascript version returns exactly what it should, [Data,user_id=1], but the page redirects to /modules.php?mod=Data. There isn't even the ampersand, anyone have any ideas abo
  17. Hello,I'm using this script right now:mainpage.php <?php$mainpage = 'secret';?><a href="#" id="renamegroups">Rename groups</a><div id='renamegroupsl'></div> <script type="text/javascript">$('#renamegroups').click(function(){ $("#renamegroupsl").load("../information/renamegroups.php"); return false;});</script> renamegroups.php <?phpecho $mainpage;?> The problem is that I get this error:Notice: Undefined variable: mainpage in (...)So how could I include a file with ajax / jquery (because if I include the file this will work and the erro
  18. Hi!, This is my sample part of my program.. $row['name'].",". $row['region'].",". $row['city'].",". $row['area'].",". $row['street'].",". $row['building'].",". $row['totalorders'].",". $row['totalgross'].","."<br>"; that the output is like this...name, region, city, area, street, building, totalorders, totalgross the output that I need is like this.."name","city","area","street","building","totalorders","totalgross", can you help me how can I make this output..?thanks and have a great day ahead!
  19. I am currently creating an e-learning application for my honours project (This will not go live or be distributed for profit) that teaches php to brand new users however there will obviously be experienced users using the application as well and they will try to attack it or bring it down. My code to process the user input for malicious code strings before it is run thru an eval(); is below.If any of the banned words are found it returns false and the user input never gets near an eval() function. If no banned words are found then it returns true and the input (PHP CODE) is run thru an eval();
  20. i Have 3 table with following fields, 1.users table id, name, password, sub category id, email 2. category table categorie name, category id 3.subcategory table sub category name, sub category id, category id my questian is, how to get users details from user table using category id???????? pleae help
  21. I've been working with php for a short time and picked this form up online to use for my contact page. When tested on my server, http://www.d1082919....h/contact2.html the text fields return all of the correct content (email, name, phone, etc.) to me in an email. When I put the site live, http://vitalhabitats.com/contact2.html the text fields all return blank. I still receive the email, but it looks like this: Email:Name:Phone Number:Comments:Newsletter: I cannot understand what the potential issue may be. I know the form works, just not on this server. My php file is attached for review. Any
  22. absorr


    Ok so I'm using this API and whenever I use a method, it gives me more than I want. For example, one function gives me: array(3) { ["result"]=> string(7) "success" ["source"]=> string(14) "getPlayerLimit" ["success"]=> int(20)} when all i want is the number at the bottom by intHow do I make it so that it will only show that number?
  23. I have included a SVG-file into the html-page with the embed-tag, like this: index.html <!DOCTYPE html><html><head> <script type="text/javascript" src="jquery-1.7.1.js"/> function AJAX(){ $.post("UpdatePage.php",function (PhpParameter){ $("#SVGfile").html(PhpParameter); });} </head> <body> <div style="height:50px;width:50px;background-color:black;" onclick="AJAX()"/> <embed src="SVGimage.svg" type="image/svg+xml" /></body></html> The SVG-file looks like this: SVGimage.svg <?xml version="1.0" standalone="no"?&g
  24. I created a script on a php page. The script is activated when user clicks the submit button on a form. I want to write functions on the same php page. How do I do this? MyData.php<?function getData(){$fname = _POST['fname']; $lname = _POST['lname']; //statements that tells it to write the information to file} function showData(){$price = _POST['price']; $qty = _POST['qty']; $total = $price * $qty; echo $total;}?> MyOutputPage.php<html><head><title>Sample Page</title></head><body>//I want to call the showData() function on the MyData.php page.//How do
  25. Hi, I am just finalizing my first website and need a little advice on creating a form to complete a sale. I want to get customers name address email etc and then link to paypal to finalise payment. What is the best way to do this? I can create the form easily enough but am not too sure about getting the customers details sent to me via email etc. Advice please????? CheersCammy
  • Create New...