I’m on symfony 2.7 and need to override SymfonyComponentAssetUrlPackage I’ve looked at http://symfony.com/doc/current/cookbook/bundles/override.html and http://symfony.com/doc/current/cookbook/service_container/compiler_passes.html but can’t get it working. I have made a file in my bundle My…
Tag: php
Laravel 5.1 – how to download pdf file from S3 bucket
I am using Laravel’s Storage facade and I am able to upload the pdf to S3 and I am also able to get() its contents but I cannot display or download it to the end user as an actual pdf file. It just …
Having trouble to download a doc file that it’s generated from PHP code [closed]
I’d like to download a doc file when I click on button. Also, this doc file is generated from a php code. I have the following HTML, jQuery and PHP code but without success:
<a href="…
Captcha in html form
I have a html form and i have written the necessary code. html in main code: php in main code: And my captcha_code_file.php code(downloaded): The catcha image is not appearing in my web page. How can i fix this? I’m pretty sure there is no problem with the downloaded code. Answer I simply use already te…
Getting Country / City data from google-app-engine
I am trying to access 2 headers on google app engine and what i was trying to do is to useing $_REQUEST for example : and still not getting any data . how can i access this headers ? should i change values on the yaml file? important : i am using php on google app engine Answer You should
Is LEFT JOINING two tables with no reference to each other ON string conditions a bad idea?
I’m migrating database between 2 systems using PHP and MySQL. In the old one I have 3 tables of interest: t1 id (int) … t2 id (int) t1_id (int) d (string) … t3 id (int) t1_id (int) ds (string) e (int) … In the new one I have only t1 and t2 t2.d can have e.g. “abc” or “…
Create a simple page redirect system in WP based on IDs
What I’m trying to do is to have my students enter their name (assigned code) in a field and once they click the “Go” button they will be redirected to their page. I’m trying to do this in …
Quoting into Cypher queries using PHP (escaping a string)
I’m using PHP and neoxygen/neo4j-neoclient to build a graph database and looking for a way to escape strings so that I can quote them safely into Cypher queries. I’m aware of the documentation on Cypher expressions but I was wondering if perhaps somebody already wrote such an escape function in PH…
Virtual fields with Cakephp 3
I need to have a virtual property in my user entity. I followed the CakePHP book. UserEntity.php In a controller I followed exactly the book and I only get a null value. Answer According to @ndm, the problem was due to a bad file naming. I named the user entity class UserEntity.php. The CakePHP name conventio…
what i can do with error : permission denied in hosting service
i registered in one of the free hosting service i have a problem with extracting files , in panel of host i haven’t facility for extract files so i just write a script in php to do this , but i got this error : permission denied ! so in your idea can i do anything (like changing permission) or