Skip to content

PHP is_int is not performing as expected

I have a page (index.php) that takes a GET variable from the URL and checks it for security purposes. This GET variable should only be an integer. I am using the following code to check this, but in all instances, integer or not, I get the index.php page. The header never appears. After this code, the rest of…

Command-line script PHP does not run

I am trying to build a PHP script to process data manually to later convert it to a cronjob. This script also gets data from MySQL and a third-party SOAP interface. When I try to run it from the command line I have an error and the script does not run. It shows: Here’s what I have in my script:

PHP SOAP operations that start with an underscore

With PHPs SOAP implementation, I can’t call methods from the WDSL, if they start with an underscore. I.e.: $result = $server->_-testing_-getPrices(array(‘Receiver’=>’John’)); DOESN’T WORK! …

store constant variable on server via .htaccess

I would like to store the INDEX_URL constant the easiest way possible. There is a developer site and a normal site. If there is any change on the developer site, I would like to just copy the entire files but this constant is not the same on the 2 sites. I have made this test: It seems it does not

select max codeigniter

Im trying to get an max value with codeigniter from an table but it isnt working. This is the error i get: Severity: 4096 Message: Object of class CI_DB_mysql_result could not be converted to string Filename: database/DB_active_rec.php Line Number: 427 This is my function: What im trying to do is as followed:…