I am logging in users via windows authentication and then storing that user’s rights in a session variable. I use a delimited method of rights storage in a database i.e: $rights //retrieved from …
Tag: php
Simple PHP: getting variable from a form input
I can’t really use PHP and from what I’ve seen in tutorials this should work, but it doesn’t: <input type='text' name=…
Greater than and less than symbol in regular expressions
I am new to regular expressions, and I am just tired by really studying all of the regex charatcer and all. I need to know what is the purpose of greater than symbol in regex for eg: Please tell me the use of greater than symbo and less than symbol in regex. Answer The greater than symbol simply matches the
No mapped Doctrine ORM entities according to the current configuration
I’ve got a dubious issue. I have a set of existing annotated Doctrine entities which have been successfully used in a Symfony2/Doctrine2 project. However, I’m currently isolating some core functionality of this project into it’s own web framework independent library and I can’t seem to…
dompdf inserts blank page at end of document
I’m generating a pdf document using dompdf 0.6.0, and have a strange issue where a blank page is being created at the end. My (simplified) html:
getContainer in symfony
I am trying to get a block from a twig template them render it to my index template: then get it to my controller using then use it in my index template but then im having a problem and symfony says I dont know what to use to get the container running. Answer There is no getContainer() method for a
move_uploaded_file() Unable to move file from tmp to dir
I’ve been searching for the solution but I can’t find the answer. I created a image upload form. It runs with ajaxform plugin. But still it doesn’t upload to the directory. The error_log says move_uploaded_file() Unable to move file from [tmp] to [dir]. Then on the front end it says Upload C…
Automate data flow from MS Access to MySQL
I need to automate a data flow from MS-Access to MySQL for an insurance company. Users will continue to work in MS-Access, but the changes done through the Access forms should take effect in MySQL as …
Gii model generator error – Table does not exist – Yii framework and SQL Server 2000
The main configuration of the file ( main.php ) is as follows: I can connect to the database successfully, but when generating a model from Yii Code Generator it tells me that the table does not exist. Answer Table exists? Gii generates a model based on table. First you need to create a table. If you use cons…
How to install ImageMagick to use with PHP on Windows 7 (3)
There are other threads about how to install Imagick on Windows 7 but no help for me so far. (Maybe problems have came up with more recent versions) I have followed these steps to install: Download and install ImageMagick http://www.imagemagick.org/download/binaries/ImageMagick-6.8.8-1-Q16-x86-dll.exe Downloa…