39,320 Topics

Member Avatar for
Member Avatar for johnnc

Greetings, I am trying to write XML using SimpleXML for a web service call. I was having success until the XML got a little more complicated. Here is the XML format where I am running into problems: [CODE] <Agent> <Person Last='Smith' First='John'> <Addresses /> <PhoneNumbers> <Phone Type='1' Number='888-555-1212'> </PhoneNumbers> </Person> …

Member Avatar for jmichae3
0
445
Member Avatar for KadajXII

Dear all, Hear my case. My project, Android project, when user launch the application, it will send device's travelling speed and location to web server, 2s interval. Then from the web server, it need to return a location if device's travelling speed is less than 30kmh. So my problem is …

0
67
Member Avatar for Drugsxxx

Hi i have some variables in one file - index.php looking like this: [CODE] $kPoln = floor(($getPoln*255)/$max); $kPolnW = floor(($PolnW*255)/$max); $kWsch = floor(($getWsch*255)/$max); $kPoldW = floor(($PoldW*255)/$max); $kPold = floor(($getPold*255)/$max); $kPoldZ = floor(($PoldZ*255)/$max); $kZach = floor(($getZach*255)/$max); $kPolnZ = floor(($PolnZ*255)/$max);[/CODE] and i want to send them to another file - image.php - …

Member Avatar for diafol
0
335
Member Avatar for aaloo

i am getting confused that which one can be implemented >sending data out from flash to php via xml or >sending data out from flash to xml via php i know we can load data directly from xml to flash but i dont know how to send data from flash …

Member Avatar for sufyan2011
0
122
Member Avatar for mehdi.yazdani

Hi, i wrote some command for division of numbers by certain number for example 1000000 and [CODE]$filesize=$size/1000000;[/CODE] the result shown some things like this 12.24927 but i need just the first part of this number for example i want to write 12 instead of this 12.24927 . how can i …

Member Avatar for cereal
0
165
Member Avatar for Dani

Hi, I just started using the Memcached php client instead of Memcache client. It's able to connect, but now when I run a get(), I get the following error: Memcached::get(): bad type specifier while parsing parameters It worked fine with Memcache? There's just one parameter ... the key to be …

Member Avatar for Dani
0
108
Member Avatar for aaloo

this is my php code [CODE]<?php $i=0; echo "t$i=pp&"; ?>[/CODE] and this is my as2 code [CODE] myData = new LoadVars() myData.load("http://localhost/exercise/0.php") myData.onLoad = function(succes){ if(succes){ a.text=myData.t$i; //this is not working } else trace ("Error loading data") } [/CODE] as you can see i want to send variable"t$i" from php …

Member Avatar for sufyan2011
-1
117
Member Avatar for briandapice

I need to create a very simple script with php. Just a simple form with an input field for the users name and another for the users email address. They click submit, and the script sends an email to that address, while attaching a PDF file that I specify in …

Member Avatar for qazplm114477
0
453
Member Avatar for Zedith

Hi I have a php code with a string that I'm trying to find in an MySql database. But...I'm getting empty result set. The database has a varchar column named news_url with this in it "/is/frettir/titill". What I'm trying to do is search for this row with that string in …

Member Avatar for pritaeas
0
173
Member Avatar for Buppy

Hi, I need to read a profile's wall page and it's posts from facebook. I found this link in the graph page: [url]https://graph.facebook.com/profile/feed?access_token=xxx[/url] It returns just a list of some comments or something. I cannot even find them on the page. How do i properly use it to get the …

0
57
Member Avatar for Malaoshi

Hi, I am currently working on a websiteproject for learning chinese. To help the readers to understand the texts better, I want to annotate the Chinese Characters with popup translations from the HanDeDict (German-Chinese Dictionary). I already downloaded the dictionary but the file seems to be too big to work …

Member Avatar for cereal
0
325
Member Avatar for sacarias40

I'm creating a bot scraper that gathers information off of other websites and i am using html simple dom parser to do it. I have found a bug though. I ran into one website that doesnt parse.\ Here is a sample of the code that it cannot parse: [CODE]<div class="header"><div …

Member Avatar for sacarias40
0
223
Member Avatar for grekos

Hey everyone, I'm here to ask for opinions and advice more then anything. I'm 18-a senior in high school. I would really like to move into my own apartment after I graduate. This is for personal reasons, but please note I want this for a reason other then the stereotypical …

Member Avatar for grekos
0
175
Member Avatar for dean8710

Can someone share the use of .htaccess and the sample of the code.. Is this .htaccess really usefull? :?:

Member Avatar for dean8710
0
312
Member Avatar for shubh2488

In this code i want to pass all the three red color code textbox value to a javascript function and print there. <?php $userid="123456789123456789"; $con = mysql_connect('localhost', 'root', ''); //Update hostname mysql_select_db("video_upload", $con); //Update database name //echo "--------".$viewall = $_GET['viewall']; //Display image $rs=mysql_query("select * from video "); while($row=mysql_fetch_array($rs)) { echo …

Member Avatar for skraps
0
774
Member Avatar for shubh2488

this is my php update query ,there are 6 column including album and genere, 3 column value are already inserted in database,in this i just want to update those column value with these two album and genere value.. it's nt getting updated.... please help me....! [CODE]<?php $a=$_GET["artist"]; $g=$_GET["genere"]; $f=$_GET["filename"]; $userid="123456789123456789"; …

Member Avatar for Biiim
0
82
Member Avatar for vikassoni1033

Here is one code of php 2 dropdown and one button i down want button, and use ajax in dropdown..... how can i do it? <?php require_once("includes/ReadAllXML.php"); $to_plaza_poi = array(); $from_plaza_poi = array(); $hasMessage = false; $row1 = ""; $row2 = "0.00"; $row3 = "0.00"; $fromPost = ""; $toPost = …

0
48
Member Avatar for devchawla69

i'm a core php programmer . Now I am goimg to install framework like zend, cake php etc. to name a few..My question is 1. Which is the best overall frmawork. 2. can we use classes defined by two diff. frameworks in a single environment..

Member Avatar for skraps
0
117
Member Avatar for BenNoush

Hello I am developing a website using ajax, php,javascript and html for a grocery. Product code is entered in a textbox 'txt_code' and upon clicking on 'Retrieve' button, the product details, quantiy and price is dispalyed(this is an ajax code). The product price, product code and product descripion are retrieved …

Member Avatar for niranga
0
192
Member Avatar for cmps

Hello, I have created many websites using only classic php and functions But now I decided to learn classes, I understood how it works but haven't used it yet. I have phpcake tutorials, but don't know if it is good to learn it or it is not a good idea …

Member Avatar for cmps
0
194
Member Avatar for daniel36
Member Avatar for rakibtg

hello there, i have a php e-mail script which i am using for my website where users can submit their website. so i wish to add a reciprocal link checker script which can be act just like Google rEcaptha in my php email form. if my site link can't be …

Member Avatar for skraps
0
213
Member Avatar for shamsidah

hello.. i have a table name [B]paintshop[/B] and have 4 fields for example [U][B]table:paintshop[/B][/U] bodyNo | defect_code | qty | date 58786859 | FM | 9 | 2011-11-29 58786859 | BB | 1 | 2011-11-29 58786859 | TN | 4 | 2011-11-29 58786860 | RN | 7 | 2011-11-29 58786851 …

Member Avatar for shamsidah
0
86
Member Avatar for calebcook

Does anyone know of a way to encrypt a string and output it as x number of characters? I need it to always return the same number of characters. I know MD5 always returns it as 32 characters. I'd like for it to return less that that, maybe 20 or …

Member Avatar for skraps
0
184
Member Avatar for astorum

Ok i got a problem, i want the domain directory default folder to have index2.php as default page, but i DO HAVE also index.php. so when i even visit mysite.com/index.php it only shows mysite.com/index2.php, enven entering it explicitlly this is my rule DirectoryIndex index2.php index.php (I have a reason to …

0
115
Member Avatar for joshmac

I am wanting to learn the singleton method, and I am having an issue with my code. I've been manipulating my own code for a few days now, but decided to use someone else's class to give it a try, and I am still coming up with nothing. Any help …

Member Avatar for joshmac
0
133
Member Avatar for rayidi

Dear Friends, I'm Currently using php session ( $_SESSION[''] ), I want to use $_COOKIE Because when a user didn't click the logout button and he closed the website. still he is showing Online because i write the code at the logout page. So If we use $_COOKIE it is …

Member Avatar for diafol
0
188
Member Avatar for aaro

hi im not great at programming and have been trying to fix this for ages. i am using a script to create thumbnails and display images it all works fine. the problem is for each record on my database, eg each page on my site i have numerical image folders …

Member Avatar for aaro
0
177
Member Avatar for gorleone

Hi Guys, I have a 2 errors with PDO: Sometimes give me this error: Connection error, because: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 111 Other time sent me this: SQLSTATE[42000] [1203] User [MYUSERNAME] already has more than 'max_user_connections' active connections This is …

Member Avatar for gorleone
0
144
Member Avatar for kimmi_baby

Hi, I'm looking for a great tutorial that shows how to create a HTML/PHP form that emails once it has been submit. Any help would be appreciated! I'm also using a PHP includes. The contact form is in there. Am i still able to get the contact form to work?

Member Avatar for Dandello
0
48

The End.