MySQL ERROR plz solve
Error MySQL said: 2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) i am getting this erro plz let me know how to solve this with regards Jungle_Hacker ...
Error MySQL said: 2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) i am getting this erro plz let me know how to solve this with regards Jungle_Hacker ...
I've seen the code examples on this article, but throwing Controller_Exception_404 produces an error. I've just been throwing plain exceptions. I remember in Kohana 2.3 there were different ones you could throw, depending on the situation. Does anyone have a list of what exceptions should be thrown when? ...
In a recent project, I have to maintain some PHP code. I set up a development server and installed MySQL, Apache, PHP, ..etc. The program is terminated with an error: Unknown column _ _ _ in 'on clause' Cannot select .... Google shows that it's a change of syntax around JOINs, parentheses are needed. As you may imagine, fixing all ...
Hi, I'm using this script to simply create an image from text. What I would like to know is how to save the image instead of printing straight to browser; // an email address in a string $string = $post[$key]; // some variables to set $font = 4; $width = ImageFontWidth($font) * strlen($string); $height = Imag...
I'm creating a temp image always named 1.png under specific folder and once i read the image_contents and process, i use unlink() to delete that specific image from that folder. But sometimes the image file is not deleted and the same image is file is read and processed. That script is working otherwise fine... There is no permission...
Dear all, i want to convert my pixel into to the point size, in my project when user resize the text image, then it should be re size according to width using point size?? any one have any idea? ...
I am using the recess php framework with lighttpd Does anyone know how I can use the shorter urls of: http://www.myserver.com/recess Instead of: http://www.myserver.com/index.php/recess The recess readme file says that if I have mod_rewrite I can use the shorter url: -- "Do you have mod_rewrite? -- Yes: Open your browser to the...
I'm using curl multi API for multiple curl requests. first I'm using a single request to login to a site and save the cookie file. then I'm using the curl multi API to get some data from that site. The problem I'm facing is that from some reason the cookie file does not get read and I'm redirecting to the main login page. I must say t...
Hi, In the root directory of a small site i'm developing i have the following .htacess file: Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-F RewriteRule .$ index.php that basically allows me to have pretty urls as it remaps every path that does not exists on the server (eg : /user/details/145 ) as a call ...
I have a folder/array of images, it may be 1, maximum of 12. What I need to do is dynamically add them so the images are added to an images table. At the moment I have $directory = "portfolio_images/$id/Thumbs/"; $images = glob("" . $directory . "*.jpg"); for ( $i= 0; $i <= count($images); $i += 1) { mysql_query("INSERT INTO pr...
Hi from time to time , i want to shutdown my site for maintenance ... How could i do this? I've seen a option in phpbb to block the site by admin and then unblock them.. Is there any apis for this or tell me a method of how to do this? I'm using php for my website.. ...
I am trying to get twitter updates like this: try { $doc = new DOMDocument(); $doc->load('http://twitter.com/statuses/user_timeline/1234567890.rss'); $isOK = true; } catch( Zend_Exception $e ) { $isOK = false; } If there is not problem with internet connection then $isOK = true; is set. But if there is a problem in loading t...
If I had the following HTML: <li><a href="aaa"> Thisislink1</a></li> <li><a href="abcdef"> Thisisanotherlink</a></li> <li><a href="12345"> Onemorelink</a></li> Where each link will be different in length and value. How can I search for the values inside the link (IE: Thisislink1, Thisisanotherlink and Onemorelink) with a search phras...
It seems that facebook caches fanpage , I am developing FBML application that is displayed in the fan page as a landing tab. But it is just frustrating, anyone has a solution how to clear or prevent facebook fanpage cache or any other way to work with fanpage/application development ? ...
Hi friends, I have a php file at my site, and I connect to db, get some records and list them in same file. mysql_connect("localhost", "blabla", "blabla") or die(mysql_error()); mysql_select_db("blabla") or die(mysql_error()); $blabla1 = mysql_query("SELECT * FROM gallery WHERE id_cat=1"); $blabla2 = mysql_query("SELECT * FROM gallery...
I have added a new directory in my joomla website: http://sitedomain.tld/xxx/ then I have added index.php in that directory here is the code define( '_JEXEC', 1 ); define('JPATH_BASE', '..' ); define( 'DS', DIRECTORY_SEPARATOR ); require_once ( '../includes/defines.php' ); require_once ( '../includes/framework.php' ); //JD...
Hi there in my database I have 3 columns, is_contract, is_permenant and is_temporary. Within these columns there is either a Y or N value. I am using these columns to echo onto the page what kind of work someone is looking for, my problem is that the user can be looking for more than one type of work, I am currently running 3 if state...
Hello, is there a way how to convert HTML entities to their applicable characters. Something similar to html_entity_decode()? I'm trying to make ordinary text without HTML entities from TinyMCE output. ...
Hi, I would to know the command in a PHP script to get in output and save a file from my site. Thanks ...
Hello, I have a field that is in this format 5551112391^HUMAN^HUMAN-800-800^6-main^^ The "5551112391" before the ^ is the number. How would I grab only that and not any of that other data? Would you do this with regex? Let me know! Thanks. ...