39,323 Topics
| |
hello, i have a website that has my portfolio its running almost 5 months until one day my host server crash and failed to recover my files and some data now i am stuck again with this simple code like before i have made a solution before but that was … | |
Hi everyone, I am new to PHP and I am not understanding some of it functions and rules on how to do things. I have a few questions but I will work on one at time so that I can understand and absorb the information giving to me. The problem … | |
Hi i wrote a code for image upload and watermarking. It is working fine in Jpg but not in gif.... The code is [ICODE] $ext = end(explode('.', $final_file)); if($ext == 'jpg'){ $ext_new = 'jpeg'; } elseif ($ext == 'JPG' || $ext == 'JPEG'){ $ext_new = 'jpeg'; }else { $ext_new = … | |
Hi guy I've been having a weird situation for a couple of day... I have this button that is suppose to pass parameter in the $_GET array but it doesn't. Here is the code: [code] <html> <body> <form action="test.php?action=test" method="get"> <input type="submit" value="Test"/> </form> </body> </html> [/code] what happens when … | |
Hi, How can i upload a text file using move_upload_file() in php because it returns error like Warning: move_uploaded_file(/thenewcareers.com/httpdocs/newcareers/demo/jobseeker/resumes/email.txt) [function.move-uploaded-file]: failed to open stream: No such file or directory in D:\inetpub\vhosts\thenewcareers.com\httpdocs\newcareers\demo\jobseeker\upload.php on line 19 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\php99A0.tmp' to '/thenewcareers.com/httpdocs/newcareers/demo/jobseeker/resumes/email.txt' in D:\inetpub\vhosts\thenewcareers.com\httpdocs\newcareers\demo\jobseeker\upload.php on line 19 if anyone … | |
Hi, I'am new to PHP but i'am currently doing the project in PHP only,i want to use function return values in another form,the return value is a value retrieved from MYSQL,just see my code ------------------------------------------------ form1//where i calling my function [code=php]selecttbl("user"); while($row=mysql_fetch_array($result)) { for ($i=0; $i<mysql_num_fields($result); $i++) echo $row[$i] . … | |
Hi I am new bee to JS and PHP, i have a code to display the images from directory in the path C:\wamp\www\prawin\new\locations\test\admin But this code didnt works . can any one help me. My code is [ICODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> … | |
hi, in my application i have using editor for the jobseeker to paste their resume.butthe editor is not working properly can anybody tell wat is are alternative.i wanted the user pasted data to as it is when it is viewed thanks | |
hello I want to execute some queries at specific date with out any action on event(i.e on load, on change). I want the file placed on my server will automatically execute at the first of every month. would you help me????? Its Urgent.. | |
Hi, I want use Drupal to develop an example web site. I have installed Drupal and done database things. It is ready to go. But how do i create pages. I think it is not same as what we do in Dreamveawer. Thanks | |
Hi all, I am trying to run a javascript function, RH_ShowHelp, that is stored in the file RoboHelp_CSH.js. The function itself should open a popup window containing our product's help system (written with Adobe RoboHelp) and the javascript file was supplied by Adobe as the standard call. I have managed … | |
Hi, I'm making a site security tester which is basically a bot that scans a selected website for any php security holes such as sql injections then reports them to the user. I have managed to write the bot and all but the last piece left is the function that … | |
I'm doing a project and our structure of our page should be based to a current XML. now i am having difficult to find out how to generate the simpleType SOAP value found in the XML. and XML code looks like this. ... <simpleType name="useraccount"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="username"/> <xsd:enumeration … | |
I'm doing a project and our structure of our page should be based to a current XML. now i am having difficult to find out how to generate the simpleType SOAP value found in the XML. and XML code looks like this. ... [code=xml]<simpleType name="useraccount"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="username"/> <xsd:enumeration … | |
I've spent hours trying to get this to work, but I can't seem to figure it out. This site has been good to me with my java problems and I saw this php section so I figured I'd come back and give it a try. What I have and assume … | |
How can the user obtain a specific result by choosing values from 2 dropdown list. As a result, the value obtained can not be modified by the user.The table of ten rows by ten columns have to be stored in a mysql dbase.. It's certanly possible , but tedious and … | |
I want to check weather or not a string contains (alpha numeric characters and "-") only without spaces and other stuff... *but it must contain atleast one alpha numeric character and a maximum of two "-" example: value could be "-asd-"or "ads-" or "asd7" or "ads or "a-7ds" I am … | |
| I'm experiencing problems with this gallery tutorial - the following error message is being displayed: [B]Error message: Parse error: syntax error, unexpected T_ECHO in /equinefocus.co.uk/photos/2009-03-21/gallery.php on line 87[/B] I've tried altering line 87 but had no success so far. I removed lines 86-88 out of interest, but the error messageindicated … |
In my website i want to introduce a link where people will see who joined the site for example today,yesterday one week ago,2week ago and one month ago... how i`m i going to do this in php? | |
If you are still using AVG anti-virus Version 7 and you're about to install the latest version in response to the threats about end of support for Version 7, be aware that there are a couple of problems: [LIST] In Vista, the install can have a problem if User Account … | |
I use MySQL-Front tool create and call Stored Procedure successfully, but in my PHP code and phpMyAdmin it fails. How can i figure out this problem when i run on phpMyAdmin the error show #1305 - PROCEDURE joomla1.5.9.save_orders does not exist this is my code of procedure [code=sql]DROP PROCEDURE `save_orders`// … | |
Hi, I need to pass more than one value to next form using header function.this is my sample code. header('location:option.php?$uname='.$myusername.'+password='.$mypassword); i am able to pass single value,but when i tried with more than one value as above,i am facing the problem please help me.In second page i retrive the values … | |
I have been trying on this code for so long but I can't seem to find out why the rows could not be displayed / could not be fetched. The checkboxes are present but no info Please help! :(( [code=php]<?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // … | |
[CODE]$realUser = mysql_query("SELECT Username FROM my_db WHERE Username = $user ");[/CODE] This is not storing the $user value to $realUser. I am correctly using $_REQUEST['user'] to retrieve the value for $user from a form, and I am connected to my database. I understand there is an issue with PHP variables … | |
I installed php (4 i think) and added the extension to iis. When I try to view a php file through the web browser, I get the following error: [quote] [b]CGI Error[/b] The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did … | |
I have a issue with displaying wether a ADMIN or a USER on my forum. If a user is ADMIN then it displays the user as ADMIN but if the user isn't an ADMIN it still displays it as ADMIN which I dont want. Could somebody please check my code. … | |
I am using cubecart as the shopping cart for my website, I want to change the Order confirmation message from "Thank you, your order was successful and payment has been made! Your goods will be dispached as soon as possible. Please visit again soon." to the following message: [code] Thank … | |
Hi i write a code for uploading images and re-size it in my site. I need to do a watermark in uploaded images. Please help me.. The code is as follows : [ICODE]$finalfilename="share/".$final_file; $src = $po($finalfilename); list($width,$height)=getimagesize($finalfilename); $newwidth=300; $newheight=200; $tmp=imagecreatetruecolor($newwidth,$newheight); imagecopyresampled($tmp,$src,0,0,0,0,$newwidth,$newheight,$width,$height); $filename = "share/".$final_file; imagejpeg($tmp,$filename,100); imagedestroy($src); imagedestroy($tmp);[/ICODE] Please help me … | |
hey there this problem stuck me out how to display url like this [CODE]http://www19.domain.com/548ecedd7f87970e986dc19077ef2edd.rar[/CODE] [CODE]preg_match_all('#^(?:http://)www[0-99]([^/]+)#i',$url,$parts); foreach ($parts[1] as $test) { echo 'hehehe '. $test; }[/CODE] and the result is: [CODE] hehehe 9.domain.com[/CODE] it just stuck me out i'm already search the answer at least 5 hours :( i do not … | |
have a script which i found online,through google for uploading and resizing photos when they are uploaded. It works well,the only problem is that there are some images when i upload them they are not detected as a file,but others are uploaded well. for example image of this properties is … |
The End.