PHP

PHP
2 years ago

I have to change the url ?id= to / through web.config (Urgent)

PHP
I have to change the url through web.config from all-products?id=Mw== to all-products/Mw== for every page in site Please let me know. ...
2 years ago

add to array if it isn't there already

PHP
How do I add elements to an array only if they aren't in there already? I have the following: $a=array(); // organize the array foreach($array as $k=...
2 years ago

Read serialized file, record by record

PHP
I save to file data from form: $name = $_POST['name']; $url = $_POST['url']; $comm = $_POST['comm']; $data["name"]=$name; $data["url"]=$url; $data["...
2 years ago

How to read parameters from URL that ends with .jpg

PHP
I have a script called image.php that does some image manipulation like resizing and optimization. I already wrote .htaccess to omit the .php at the e...
2 years ago

CakePHP: Find where field is not null

PHP
I need to select all rows where User.site_url is not null. It's simple enough to do this in a regular MySQL query but how is this done in CakePHP? Th...
2 years ago

MySQL timestamp columns have mismatched timestamps

PHP
I have a database table that keeps track of when an item goes out of stock and when it comes back in stock. An additional column keeps track of the t...
2 years ago

How to get a list of files of subfolders and write them in a JSON using php?

PHP
I'm already able to list all the file names and current directory/folder but I don't know how to create JSON entries for subdirectories Here is my c...
2 years ago

Is using 2 GROUP_CONCAT safe?

PHP
I have a huge join, for store products. I want to list my products showing delivery_formats (webcast, audio, DVD) price_ids (Unique record ids) pric...
2 years ago

Undefined index with $_POST

PHP
I am trying to relearn some PHP basics for making a simple login script, however I get an error I have not received before(I made the same script a li...
2 years ago

Combine data from 2 AJAX calls into one array?

PHP
The array should be used as Autocomplete suggestions for this searchbox: <input type="text" class="searchbox" placeholder="Type here..."> I t...
2 years ago

How to convert image to base64 encoding?

PHP
Can you please guide me how can I convert an image from a URL to base64 encoding?
2 years ago

prevent merging two module config in Zend Framework 2

PHP
I have two module in my ZF2 application, both module have different configuration for themself, and both module have different Module.php with differe...
2 years ago

get substring in php with preg_match

PHP
I have a string like below $string = '["{apple}","{mango}","[apple: red]", "[apple: green]","{pear}" ]'; I want to use preg replace so that my resu...
2 years ago

How to connect to Heroku connect's table that is created as custom field in salesforce in cake php v3.x

PHP
I am trying to connect with Heroku connect table via CakePHP 3. For some reason, I get the following error when I try to connect with a table whom nam...
2 years ago

Generating a waveform using ffmpeg

PHP
I am trying to generate a waveform image using ffmpeg. I have successfully made a waveform image, however it doesn't look very nice... I have been l...
2 years ago

Class not found PHP

PHP
I used THIS twitter librabry and getting this error. Can anyone tell where i am going wrong ? ERROR Fatal error: Class 'Abraham\TwitterOAuth\Config'...
2 years ago

PHP JSON Extension

PHP
I have already seen posts mentioning this on StackOverflow, but there is something I'm not understanding. The json module for php is installed using ...
2 years ago

Laravel returning a response with params

PHP
I want to do something like this: return Response::view('survey.do') //->with('theme',$survey->theme); ->header(...
2 years ago

PDO query utilizing two tables with separate parameters

PHP
I have two tables. One with login information logins which holds password column and one with emails emails which holds email column and loginID colum...
2 years ago