39,316 Topics

Member Avatar for
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
451
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
324
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
291
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
182
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
174
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
Member Avatar for lastgame2007

anyone can help me with this error what does it do? im working on with my LOGIN script, and when i tried to run the script. what does it mean? anyone, thanks!:) Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\MEA\connect.php:7) in C:\xampp\htdocs\MEA\testlog.php on line …

Member Avatar for pritaeas
0
123
Member Avatar for Stefano Mtangoo

Hi, I need to write very simple RTF parser to write and read basic rtf (bold,italic, underline, paragraph et al). I have searched for techniques I can implement but havent found good example. I would like to hear from you guys what approach whatsoever you consider to be best for …

Member Avatar for pritaeas
0
483
Member Avatar for manaila

I want to develop a web chat application. Can it be done using PHP, I have read that it can be done using Java tools, but I do not want to use it. Any recommendations of the tools to use for developing it.

Member Avatar for diafol
0
99
Member Avatar for saybabs

I need someone to put me through on how i can show GMT time on my php application. I have tried all possible time functions all to no avail. i don't want the time to have anything to do with my system time because i want the application to automatically …

Member Avatar for diafol
0
355

The End.