php

curl in Xamp required

hai i installed the magento in my Xampp but i got an error message blow PHP Extension "curl" must be loaded How to load curl in XAMPP ...

Change URL location on CURL requests?

Hi, I have a page that is making an XML POST-Request to an URL on a different server (e.g. "http://wwww.externalserver.com/login"). This server is sending plain HTML as response. The problem is, that the URL shown in the browser ist still on my local server, let's say "http://localhost/callExternal.php". The external URL is redirecting ...

find beginning of a string inside an array of strings in php

I know we have the php in_array function but I'm looking for a way to find values in an array of strings who beginning matches a specific string for example find... $search_string = '<div>1</div>'; in an array like this... $array = ( 'sample' => '<div>1</div><p>fish food</p>', 'sample2' => '<div>2</div><p>swine</p> ); do...

OSX php.ini memory limits

When you are using the latests version of OSX (10.6), does the memory limit of 8M (or whatever you have yours set to) mean that you are now running with 8 000 000 bytes rather than 8 388 608? ...

Will it be better to use a framework to design a site or just code it by hand?

Duplicates: Anyone NOT using a Web Framework? Why? Do most web ‘programmers’ (not designers) use wysiwyg editors or hand code their HTML? Whats better using HTML/CSS edited by hand or using design programs? and why? Now before I continue I feel more comfortable coding by hand without using a PHP type framework. What will be the ben...

Are there any good and FREE PHP IDEs out there

Most of the good PHP IDEs i find are not free, so does anyone know of a good, yet free PHP IDE??? As in an IDE with features like auto completion debugging code formatting code highlighting database previewing etc ...

How do I download files of big sizes from somewhere on the web to the web server with PHP?

How do I download files of big sizes from somewhere on the web to the web server with PHP? Also, what should be allowed on the server in order to make this happen? Thanks. ...

Where can i get good sample codes and references in PHP for MVC Framework with URL Routing?

I am trying to implement a application which i need to follow mvc framework. But I need to gather some ideas in that. Please give me some suggestions and references which includes some sample codes in PHP with URL routing. ...

using seo user friendly in php

Hi, this is the URL path I currently use: /index.php?page=1&title=articles I want to get the URL path as /index/page-1/title-articles using SEO user friendly URLs in PHP. And how to get the value of the "title"? Any one can help me pls. ...

How can I submit a web form by clicking keyboard button??

<form action="page.php" method="post"> <input type="text" name="some_text" /> <input type="submit" name="some_submit" / </form> I want to submit this form by pressing defined keyboard button. I wonder how to do it. If it was just an <a> element it would be simple - I would just change window.location value after handling keypre...

default timezone error in php

I got the following error/warning while tring to install Kohana/SilverStripe.What does it mean and What do I do for it? Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of t...

how to create an image of dynamic data in php

I have to make an image of a dynamic page i.e. the page keeps on changing in every 5 minutes. I want to make images of that very page that keeps on changing so that i can have its records saved in the form of images. How can i do that using php?? i have no idea about this and a little elaboration in answers will be highly appreciated!!...

[PHP] How to convert all keys in a multi-dimenional array to snake_case?

I am trying to convert the keys of a multi-dimensional array from CamelCase to snake_case, with the added complication that some keys have an exclamation mark that I'd like removed. For example: $array = array( '!AccountNumber' => '00000000', 'Address' => array( '!Line1' => '10 High Street', '!line2' => 'London')); I woul...

Explain whats different between ImageMagick on Windows and on CentOS linux?

I have been using ImageMagick running on a Windows 2003 server that is called in a PHP script to create a thumbnail of an image using the following command: $cmd = "convert.exe \"". $fullpath . "\" -resize \"" . res_image_width ."x" . res_image_height . ">\" \"". $fullpath. "\" 2>&1"; passthru($cmd); I have now moved this functionalit...

Symfony (PHP framework) and MongoDB ( or any json-based database)

I was wondering if its possible to use a json-based schema-free, document-based database like Mongodb or Couchdb on a symfony project like its used for ruby-on-rails websites? And if yes, how can it be done? ...

Push notifications (iPhone) give "111 Connection refused"

When I try to send Push Notifications I get this error: "Connection refused", but I don't know why... I've uploaded my apns-dev.pem in the same directory as well in the root-directory but that won't work either. <?php $payload['aps'] = array('alert' => 'This is the alert text', 'badge' => 1, 'sound' => 'default'); $payload = json_encod...

How to Retrieve the Request Object in the Bootstrap File? Zend Framework/PHP

Anybody know how to retrieve the request object in the bootstrap file of zend framework mvc. Just trying to repopulate a form that is included on every page if you know a better way of doing this instead of using the bootstrap file then let me know? Thanks. ...

Is there a PHP and MySQL book that deals with real world programming?

I looking for a book(s) about PHP and MySQL that deals with ratings systems, registering, login, comments, adding articles and so on. ...

Accessing a Windows Share using PHP

I need to access an Excel file on a Windows Share using PHP but seem to be running into what looks like an authentication issue. I'm using PHP-ExcelReader to open and read the file. Works fine on my local machine but the server I'm putting it on doesn't have the rights to access this share, and so its telling me that the path is unreada...

SQL database interaction

Hello everyone, I am making a database, which will interact with a SQL table. What I have achieved so far: Add rows to the table. Delete rows from the table. Search rows from the table. Paginate the results. What I need to achieve: A log in prompt when a guest tries to access the page. In fact, I have successfully installed a ...