I'm trying to find the security code in this php for a mailer.
Please could you tell me which parts of the code I need to delete to remove this.
Thanks for your help
<?php
$adminemail = '[email protected]'; // type your actual email address in place of [email protected]
$usesecimage = ''; // the path to a WSN Links, Gallery, KB or ...
Sorry, if this question is naive (I'm a newbie):
In codeigniter session data are saved in a cookie by default. But there must be also a file on my server (named as the session id) to verify that the data (in the cookie) is valid, or am I wrong?
I'm searching for the location where the sessions are saved. I've already looked in the "ses...
Let's say you have a config.php that holds sensitive information like a DB user password. It is not recommended to store that file in the document root, right?
Why is that so and is it a safer approach to store sensitive information in the index.php of the document root?
...
I have a scenario where I have a page on one server which prompts a user to upload a file. I need this file to be uploaded to a different server with a larger storage facility. I then need to get the absolute path of where the file now resides on the server sent back to the originating page.
The file size that will be around 15mb, so...
I asked this question on serverfault but I didn't get any response. I try here...
I developped a site on my web server at home.
When I modify the translation files, I have to restart the web server Apache.
/etc/init.d/httpd graceful
Easy...
Suppose that my site is hosted on shared host.
Suppose now I need to modify the translation ...
I want one of my Zend Framework modules to use a different database from the others. The Manual suggests you can prefix the resources in application.ini with the module name to achieve this but I can't get it to work.
The relevant bits of my application.ini are:
resources.modules[] = ""
resources.db.adapter = "PDO_MYSQL"
resources.db...
Is there a way using regex to replace characters in a string based on position?
For instance, one of my rewrite rules for a project I'm working on is "replace o with ö if o is the next to last vowel and even numbered (counting left to right)"
So, an example is:
heabatoik would become heabatöik (o is the next to last vowel, as well as ...
I would like to check a database for a change using ajax. However, I do not want to overload the server by constantly checking it every second.
Is there any other way of updating the clients from the server?
Can jquery listen for event server side?
Thanks
...
I have an array of numbers from 5 to 6.4 but the numbers are relating to feet and inches and I am using them for calculation.
When I come to use 5.10 it removes the zero and I have the same output as though it was 5.1.
Is there anyway to prevent PHP removing the 0. I presume it does some sort of default casting.
Thanks in advance
...
OK, so I know you can put $Revision$ in a file, and then set the svn:keywords property on that file so that whenever the file is committed, that variable is replaced with the last committed version number.
I'd like to use this concept to implement a smart caching layer for my template files. I plan on using the svn revision number as pa...
hello,
im just working on integrating a script into my own site and this script (being that is has a chat feature) has inbuilt smilies, my site also has smilies but the url of them is stored in the sites mysql db, pulling said files from the db into the script im integrating is easy, but the script uses a 2 dimensional array for the smil...
I know this is a basic question so it should be a basic answer. I have always done a user login system using sessions only, I would like to now make it an option for a user to stay logged in when they come back to my site if they choose to by using cookies. I am not sure the best way of doing this but I have a small mockup of the basic...
I have a very simple setup that I can't seem to get working. I have a simple PHP page that just starts a session and is supposed to output the status and the session id in JSON. However, when the ajax call returns, the data is always null. I'm using Firebug, and I can see the ajax function calling my callback.
Here's the PHP page on th...
Going to illustrate this so please bear with me.
This is my MYSQL Table structure indexed by sphinx
------- ------- --------------
tag_id | tag | foreign_id |
------- ------- --------------
1 love 111
2 blue 222
3 lover 333
4 yellow 444
5 love 555
6 lov 666
What I'm trying ...
Is there any way to have multiple clauses in an if() statement?
For instance:
if( ($username=='textUser' && $role=='admin') || ($admin=='yes'))
{
// If the username AND role are set to admin OR if the admin is set to 'yes'
}
else
{
// Neither clauses of the if statement are true
}
Perhaps this is actually the correct code, i ...
How do I check an external file for a class?
I am trying to setup a install feature for my modules, so I am trying to get it to load a list of directories and then check if the module file has a method called install. So only the modules with this method will be shown in the list.
Here is my code so far:
$output .= '<div id="module-di...
Hi,
I basically just want to append a javascript variable to an HTML div with JQuery. However I need to append some PHP code as a string, it doesn't need to execute it just needs to show up as a plain old string string.
The following code doesn't seem to append because I think it is still recognized as PHP syntax.
var script = '<?php...
Hello all, I am looking for a good ajax pagination tutorial that uses jQuery, PHP, and MySQL. The ones that I have come across are not good.
So, if anyone could recommend a good site/tutorial that would be great. thanks.
Edit
Here are some tutorials that were not good.
Site 1
Site 2
Site 3
...
Hello
I want to run a php script every morning, the script would send a mail.
But the mail I get from cron always contains an error message.
Can anybody help?
...
Using the following guide online (and the 1.7x fix at the bottom) http://codeigniter.com/forums/viewthread/94299/
Recaptcha validation works well when working locally (tested on both my windows machine and a friends OSX machine) however when uploaded too both my server and his web host the validation routine for the recaptch appears not...