Can someone help me understand this? It seams like I have done this a 100 times already, but for some reason I can’t get it to work now. I have a MySQL class where I do my SQL stuff. I have a file called ajax.php which I do some AJAX requests to. In this file I have: This returns the
Tag: php
Disable new tab button in Browser
Actually i have been creating online examination module using php. but what the requirement is i want to disable opening new tab so the users who are taking online examination will not be able to open …
Laravel 4 – Redirect back to the same page where the request comes from
In Laravel 4, I want to redirect the user back to the page from where the request came. For example, a user tries to update his profile so edits the profile and hits SAVE. In controller I do the update and normally I would do Redirect::to(‘profile’)->with(‘message’,’Profile sa…
How to center the text in PHPExcel merged cell
How to center text “test”? This is my code: Output Excel document: Answer if you want to align only this cells, you can do something like this: But, if you want to apply this style to all cells, try this:
How to solve cUrl corrupting file during download
I really, really need help as to how to solve this issue I’m having: Using script:
replace html5 upload function with hardcoded path
I’m trying to use a script to display a .csv file and make content filter and searchable. I found this script on github: I want to put this script on my webserver (apache). That works great, however, I want it to work with 1 or more .csv files that resides on the same folder. My goal is that when the
TCPDF page size change is creating several pages when all I want is one
As you can see in my code; I am just trying to create a PDF document 4 inches wide and 3 inches tall. However, when I do this, my PDF renders with duplicate pages (full code follows): What I am trying to achieve is this: How can I make TCPDF create just one 4″ x 3″ image like I have
Need to turn off ModPagespeed
I’ve been trying to turn off the ModPagespeed module for this site : http://www.mundo-satelital.com.ar , firstly through .htaccess ModPagespeed off
How can I get all videos for a given channel?
I want to be able to retrieve Youtube videos from a Youtube channel. My goal is to display them on a page. Currently I do it manually by getting an iframe like this: I am aware about Youtube API. I could not find a way to use it to get all videos from a channel. So for example like the
Adding collections/entities makes Form Rendering terrible slow
I’m using the Symfony2 Form Builder to make a form. All is working well, but the performance is terrible. A simple form (just a couple of text fields) is rendering in about 1000 ms, but with a entity or collection field it’s slowing down to about 7500-10000 ms. I’m using the query_builder (w…