How do I load arbitrary data from a url PHP?
This question is simple. What function would I use in a PHP script to load data from a URL into a string? ...
This question is simple. What function would I use in a PHP script to load data from a URL into a string? ...
Hi! I have this method in my db class public function query($queryString) { if (!$this->_connected) $this->_connectToDb(); //connect to database $results = mysql_query($queryString, $this->_dbLink) or trigger_error(mysql_error()); return mysql_num_rows($results) > 0 ? mysql_fetch_assoc($results) : false; ...
I have read the documentation for the CI Caching but still don't understand much about it. What exactly does it do, and what is the use of caching a dynamic website? ...
I've heard that there are some free applications that will check the vulnerability of a PHP website, but I don't know what to use. I'd like a free program (preferably with a GUI) for Windows that will analyze my site an give me a report. Anyone know of a solution? ...
With Php when does an included file get included? Is it during a preprocessing stage or is it during script evaluation? Right now I have several scripts that share the same header and footer code, which do input validation and exception handling. Like this: /* validate input */ ... /* process/do task */ ... /* handle exceptions */ ... ...
I am currently in the process of rewriting an application whereby teachers can plan curriculum online. The application guides teachers through a process of creating a unit of work for their students. The tool is currently used in three states but we have plans to get much bigger than that. One of the major draw cards of the application...
Hi, how to validate letters and whitespaces using Zend Framework ? ...
Hi, I have two tables with the following columns: table1: id, agent_name, ticket_id, category, date_logged table2: id, agent_name, department, admin_status What I'm trying to achieve is to Select all rows from table1 where an agents department is equal to that of table2. I've tried a few different join statements but I'm either ...
This is my first time using joomla. I don't know if I'm using the concept of a Contact in the wrong way, but I have a Contact Us menu that i've created and I've added the contact details in. I'm looking to add a sentence oe two of text above the contact details & the e-mail contact form. There doesn't seem to be a way of doing this v...
The bugzilla (perl-based) system has a feature to login automatically by using a http server environment variable. If you fill in the right ID or username, you are automatically logged in. My server runs Joomla (PHP-based) and has all the information about who is logged in. It runs bugzilla within a sub-frame. So, how can I set this en...
I have some old apps written in PHP that I'm thinking of converting to Python - both are websites that started as simple static html, then progressed to PHP and now include blogs with admin areas, rss etc. I'm thinking of rewriting them in Python to improve maintainability as well as to take advantage of my increase in experience to writ...
Our development process is highly automated via a raft of bash and php scripts (including subversion hook scripts.) These scripts do a number of things to integrate with our Bugzilla 3.0 installation. But the current integration approach is a bunch of SQL calls which update the bugzilla database directly - which obviously has a number ...
Hello, I have the following PHP code pasted here: http://www.nomorepasting.com/getpaste.php?pasteid=22461 Which produces the following html code: http://www.nomorepasting.com/getpaste.php?pasteid=22462 My problem is that the popup window is not created, or if it is created that it is empty. I have used JSON encode as previously sugg...
I'm looking for any advice that can be offered on this one... I am trying to create a soap request in php using my server certificate and key aggregated in the local_cert parameter. I've verified that my cert & key are correct and I've created the local cert file using the key and cert appended respectively. The response I get when I ...
I'm looking for a simple PHP logging framework. What I need is something simple to plug-in into our PHP project, allowing for some configuration file to state what to log (INFOrmation, DEBUGging, etc.) and where to log it (MySQL, syslog, logfile...) I've seen in Java you have log4j and for .NET you have log4net. In PHP there are some pr...
This is an extension of a question I had yesterday. I am trying to make a little php calculator that will show how much people can save on their phone bills if they switch to VoIP, and how much they can save with each service. I have a form that will spit out the right amount for a monthly bill here: http://www.nextadvisor.com/voip_se...
My clients home page is https://www.quakereadykit.com/store/home.php This was given to me by a previous designer, and I cannot figure out how to do the simple task of changing the small photo next to the "Welcome" text. I have used Firebug in FF to try and dissect the page but I cannot find the source. Seems to be an include from anothe...
I have the following snippet where I would like to extract code between the {foreach} and {/foreach} using a regular expression: {foreach (...)} Some random HTML content <div class="">aklakdls</div> and some {$/r/template} markup inside. {/foreach} I already have: {foreach [^}]*} but I am unable to match anything after that. Is the...
Hello , I have many requires and includes and i was wondering if there's something that can help me look at the whole of php code when a webpage is loaded. the reason i'm asking is that after fiddling with some code i cannot put any php code anymore as it will not be "sensed" by the compiler. like if i put anything inside the php tags ...
Is it possible to read the data in the php $_SESSION array in the .htaccess file in Apache? So say I have the following: $_SESSION['foo'] = 'bar'; could I then in .htaccess do something like: RewriteRule bla.png folder/{the php session var foo}/file.png Is that possible? I already have a working workaround but if this is possible ...