39,316 Topics

Member Avatar for
Member Avatar for justsawyer

So I want to make a web based text game. But know nothing about coding :D I'm pretty sure php would be the best to do it in but not sure, either way were should I start?

Member Avatar for coreyavis
0
135
Member Avatar for Djmann1013

I need help with this code: <?php $a = json_decode(file_get_contents('http://www.ace-spades.com/serverlist.json'),true); $n = count($a); for($i=0; $i < $n; $i++) { echo 'identifier: ' . $a[$i]['identifier'] .' count: '. $a[$i]['count'] . "\n"; } ?> I need it so that it doesn't display this: http://www.aosserverhome.hostoi.com/servers/servertest1.php I want to use that data and only …

Member Avatar for cereal
0
92
Member Avatar for Djmann1013

Hi. I am trying to search for text on a page. This is the page i am searching: http://www.ace-spades.com/serverlist.json. This is the code I have: <?php $link = "http://www.ace-spades.com/serverlist.json"; $linkcontents = file_get_contents($link); $needle = "ServerIP"; $numofplayers = //I need help here if (strpos($linkcontents, $needle) == false) { echo "<center>0/12 Players …

Member Avatar for cereal
0
341
Member Avatar for niths

hi all, i had a image upload option where i can upload images.Now how do i select multiple files and upload them... [CODE]<form name="upload" enctype="multipart/form-data" action="fileupload.php" method="post"> <table> <tr> <td> Upload Images: <input type="file" name="imageupload"> </td> <td><input type="submit" name="submit" value="Submit"></td> </tr> </table> </form>[/CODE] when i click browse button i can …

Member Avatar for sheikhali449
0
515
Member Avatar for ReDuX

This is a very simple statistics script that provides for services on/offline, memory info, server load averages and uptime and lastly drive info. Its easily customised and i have usef <font> alot where you could have set come css and have it all done easily and look a bit more …

Member Avatar for ReDuX
0
170
Member Avatar for phpHelp

I installed Drupal 6 in my web root folder...now for my facebook app (in PHP), I have kept that App folder (non-drupal-folder) under the root....but when I try to access that app either it shows index page for drupal site or sometimes error "Page not found"...I tried to edit .htaccess …

Member Avatar for diafol
0
174
Member Avatar for eburlea

Hi all. Please help. How is it possible to transfer a variable from PHP to JavaScript. I have the following code. <?php $id = 5; ?> <script>window.location.href = 'view_topic.php?id=**VAR**'</script> Instead of VAR should come the value of $id from PHP. Thanks in advance.

Member Avatar for eburlea
0
144
Member Avatar for davy_yg

I wonder why whether I fill in the recaptcha or left it empty, I still receive the e-mail message. We've received your contact information <div id="form"> <form action="kontak_action.php" method="get"> <table border="0"> <tr align="left"> <th>Nama&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</th> <th><input type="text" name="nama" size="25"/></th> </tr> <tr align="left"> <th>Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</th> <th><input type="text" name="email" size="25" /></th> </tr> <tr align="left"> …

Member Avatar for davy_yg
0
137
Member Avatar for keval007

Hi, Can any one provide me small code or way how can I read the below XML file in PHP. <Countries> <Country> <Page1_col1>Country1</Page1_col1> <Page1_col2>89,921</Page1_col2> <Page1_col2>61</Page1_col2> <Country_sub_details> <Page2_col1>A1</Page2_col1> <Page2_col2>1,187</Page2_col2> <Page2_col3>45</Page2_col3> <Country_sub_sub_details> <Page3_col1>AA1</Page3_col1> <Page3_col2>375</Page3_col2> <Page3_col3>45</Page3_col3> </Country_sub_sub_details> </Country_sub_details> </Country> </Countries> I am not aware about the XML libraries in PHP.

Member Avatar for keval007
0
179
Member Avatar for rayidi

I have a Query string > { "id": "105201322211272730088", "name": "Rayidi Radha Krishna", "given_name": "Rayidi", "family_name": "Radha Krishna", "link": "https://plus.google.com/105201322211272730088", "picture": "https://lh3.googleusercontent.com/-UTEdowBnUUE/AAAAAAAAAAI/AAAAAAAABd0/FrCv9VX1Pp4/photo.jpg", "gender": "male", "birthday": "0000-09-23", "locale": "en" } I want to convert this Query string to an array. thanks in advance.

Member Avatar for blocblue
0
353
Member Avatar for veledrom

Hi, I'm having problem with reading xml file because there are invalid chars like & sign. How can I evaluate this problem and read the file with simple_xml or DOM? **php** $xmlDoc=simplexml_load_file('items.xml'); $doc = new DomDocument; $doc->load('items.xml'); //Both of these don't work **xml** <?xml version="1.0" encoding="ISO-8859-1"?> <store id="AMZ-0101-STR"> <items> <item> …

Member Avatar for pritaeas
0
246
Member Avatar for McLaren

We are developing poker application in PHP, where we need to calculate poker hand equities. Something like there: http://www.codingthewheel.com/archives/multiway-ranged-isometric-equity-calculation-in-poker-1 Question - isn't there a more simple way without using those enumerate or monte carlo methods? If there is not, then is there some PHP script for that? In the link …

Member Avatar for pritaeas
0
96
Member Avatar for phpDave

Hi, I trying to user 3 AND operators in one Select Statement. It's not working. Is this even posable. If not, any suggestions? Here is the code: $query_Recordset1 = "SELECT * FROM user JOIN message WHERE message.user2 = '$user2' AND message.user_id = '$user2' AND email = '$email'"; Thanks!

Member Avatar for pritaeas
0
86
Member Avatar for kb5220

###Hello Developer,### I started with a small projeckt and now i come to a small problem. Where i need to use Ajax/Jquery. And since i dont have the most experience with Jquery / Ajax, Would I like to ask for help. ###The problem:### I have some search criteria as **Category, …

Member Avatar for lambing
0
107
Member Avatar for newbie1234

jebkharcha.net84.net/smart/index.php please tell security flaw in this site

Member Avatar for newbie1234
0
102
Member Avatar for muralibobby2015

hello, our site have 1000 users.here i have to give unique numbers from '000' to '999' to each user. now i am adding from starting '000'. how can i give unique numbers to users when adding and updating users? Thanks

Member Avatar for diafol
0
104
Member Avatar for JameB

I'm making a website where users select one of the four options - A, B, C, or D (for simplicity) and press a button to be redirected to a different page (page 2) that uses the selection to display one of the four images at the top. The selection is …

Member Avatar for JameB
0
273
Member Avatar for aianne

Hello everyone! I am a student and I am currently working for online voting system for my school. I am having a hard time how to prevent users/students from multiple votes. Could please give me some example that users can only vote once using their ID number? I have a …

Member Avatar for titosd
0
565
Member Avatar for latooplat

I have a special problem over in terms of sorting out those words like a keyboard type. For example: the user inputs these words into the textarea HOUSE DOLL KITE NICE Then, the result should be DOLL HOUSE KITE NICE this is sorted out according to the qwerty order. <?php …

Member Avatar for pritaeas
0
1K
Member Avatar for ak47carbon

my website page url is mysite/use.php?v=123(it is dummy entry basically it come from another page) i want to convert my url into mysite.use-123.html. i got a code for this purpose from http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html but problem is that when i paste below code in .htaccess it is not working Options +FollowSymlinks RewriteEngine …

Member Avatar for ak47carbon
0
198
Member Avatar for selfmastery

I am running easyphp12 running mysql as a local db server for a some software. This software can also connect to a remote db where it doesnt give this error while performing the exact mysql query, so I only get the error when using the local db. Ive tried increasing …

Member Avatar for smantscheff
0
482
Member Avatar for taskeef

**downloading file form specifice site using php+curl** Hi ervery one this is my question is here i hope you will help me I am trying to download file form this site http://www.emobilez.com/apps/app-samsung-i8520-beam-381-tawkon-2.0.1.9-115963.htm and my link is that file i want to download ` http://www.emobilez.com/apps/download.php?image_id=115963` using this tutorial http://www.daniweb.com/web-development/php/threads/78356/creating-cookies-using-curl-php but no …

Member Avatar for almostbob
0
276
Member Avatar for gabrielcastillo

I'm trying to write a script to restart my wamp server with the click of a button. I am trying to use `exec("c:\\\\wamp\wampmanager.exe -restart");` to run the command. Seems to be not working. I have used system(), and passthru(); functions to get the results I am looking for but got …

Member Avatar for Kieran Y5
0
187
Member Avatar for ganesh641
Member Avatar for madhu123456789

I have created admin panel with admin having rights to create users now i want to give user privileges through admin to view selected columns in mysql table.How can i do that code in php?

Member Avatar for pritaeas
0
92
Member Avatar for ak47carbon

i have 'topic' and 'comment' fields in table of database ,when some one give comment on topic no 1 ,it save in dabase with topic number and comment, i want show topic number with higest comment. tell me sql query to show result

Member Avatar for pritaeas
0
85
Member Avatar for johnbo100

Hi all, My head is about to explode and I was wondering if anyone has ever found a solution to my problem. Using MYSQL and PHP I need to gather those people under 5 years of age and break up the ages into 6 month periods whilst keeping a count …

Member Avatar for pritaeas
0
173
Member Avatar for newbie26

hey..how can i add a time picker in php/html??? where in i can edit or adjust the hour and minutes?? and when i already adjust the time, the succeeding text boxes will automatic increment the minutes by one. i need this urgent for my project. thanks

Member Avatar for newbie26
0
229
Member Avatar for veledrom

Hi, Based on what learned from my readings on web and forums, I'll go for DOM with DOMDocument. "SAX is better for memory efficiency but a bit complex and chalenging." "DOM is uses loads whole xml into memory but easier and widely prefered and used." The question is, based on …

Member Avatar for veledrom
0
90
Member Avatar for Djmann1013

Hi. I am having trouble with this: <?php $host="localhost"; // Host name $username="username"; // Mysql username $password="password"; // Mysql password $db_name="database"; // Database name $tbl_name="table"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); // Line with the error (Line 8) mysql_select_db("$db_name")or die("Error. MySQL …

Member Avatar for pritaeas
0
355

The End.