I'm creating my class like I always do. I create the member variables, I setup the setter and getter and the I use $this to call the values of the member variables. but for some reason now I'm get the fatal error: Using $this when not in object context
Here is the regular php file which should populates the member variables with their v...
Hello there,
I am very sorry if my question doesn't make sense as this is my first question, however i've been going through the questions posted for a while now.
right i have a XML structure of
<category>
<id>123456</id>
<name>Sales</name>
<categories>
<category>
<id>2345</id>
<name>UK House prices</name>
</category>
...
I am writing a component for Joomla and there is a specific task that requires an update to some stats every so often. I would like to setup a cron job to do this. The only problem is that requires the user to go and setup the cron to run the php update stats script.
On installation of the component how can I automatically setup a cron ...
I'm just getting acquainted with the facebook api and I'm trying to insert user data into a mysql database when they first authorize my facebook connect application.
I want to check and make sure they're not already in the database and then insert them.
I've been trying to use the facebook post authorize pingback, but I keep gettin...
Hi Guys, another brain teaser.
This isn't the usual "but Apostrophes are breaking my Queries" as I know all about escaping and sanitising so I'll get right too it.
Many many things are stored in a db with names like "Assassin's" and "Babe's" which end up "Assassin\'s" and "Babe\'s", recovering is good but searching via text is... painf...
Hey.
Thanks for looking.
I'm trying to write a script to set a cookie after the user posts a comment, limiting them from posting again for 30 minutes. I'm so confused on where to start. Please, could you guys help me out on how I do this?
I'm trying to use this jquery plugin – countdown timer.
...
When I use this statement if(count($this->input->post('p_id') =0)), I keep getting this error:
Fatal error: Can't use method return value in write context in
C:\xampp\htdocs\CI\professional_ci\application\models\MProducts.php on line 249
But when I use if(count($this->input->post('p_id'))), it works. What does it mean I can't us...
Hi,
I have a form with multiple controls, tey are all passed with $_POST and treated with PHP.
BUT, 2 fields doesn't get passed with $_POST. I used print_r ($_POST); and this field is not showing. the input "nouvellePropriete"
<label id="propriete">Vous nous informez de ce changement d'adresse parce que:</label><br/>
<input type="rad...
I'd like to,
Check the word count for a folder full of text files.
Output a list of the files arranged by word count in the format - FILENAME is WORDCOUNT
I know str_word_count is used to get individual wordcounts for files but I'm not sure how to rearrange the output.
Thanks in advance.
...
I have some PHP scripts that are accessed by external non human sources. Normally when a human accesses a page they will get the html error responses when an error occurs. Is it possible to log these errors into a file that a person can look at later?
...
So I have a PHP file that I use to define all my constants but now want the flexibility of using a XML instead.
Example PHP Config file
define("LOGIN_URL", "secure_login.php");
define("REDIRECT", "redirect.php");
define("MAPPED_VALUE_GREEN", "object_green");
define("MAPPED_VALUE_KEY", "object_key_12345");
What I'm going to do is:
<...
How can we encrypted user credentials when they are transmitted with php? (in login forms)
Thanks
...
I'm using PHP for my web project. The web pages I have created contains TABS control using jQuery. The TAB CONTENT has some FORMS, TABLES and TEXT etc..
The BEHAVIOR I want to achieve such that,
after user entered data to a form (and after successful validation), data in that form should passed to some PHP pages and based on the result...
Hi,
The Case:
UI JQuery Dialog should contain credit data of customer, when the rest of the page is product catalog in http.
Question:
Its possible to secure Jquery ui dialog with https when the rest of the page in http? or all the page have to be https and not only dialog?
(What I know that dialog is part of the page because that ...
I've just been tasked to start processing some CSV files in PHP. I have no idea what's out there. I thought I'd ask StackOverflow to help augment my search. What libraries are out there, what do people use most, and why?
Thanks a million!
...
Sorry about the length here. I'm using oscommerce and have a page with all our product specials laid out in a 3 column table. I need to align the price of each product so that all the prices align across the screen with one another.
Visually, this is what I would like:
|-----------------------|
| Image | Image | Image |
| Title | Long ...
So I changed the structure of my site around some and such and I guess I broke the script some how.
When the user fills out a form correctly, they should be directed to the appropriate page. Instead it just sits there. However, if I test the form directly from form.php it works.
Here is some info on the form.
form.php is the actual for...
Hey,
I'm using an ubb parser to convert several codes within brackets to html codes. I want to use a string replacer aswell to replace some unwanted words.
Now, I'm using this:
foreach($f AS $value) {
$escapeNamesArray[] = '/'.$value['woord'].'/i';
$escapeNamesReplace[] = '<span style="color: gray;">'.$value['...
I'm looking for a book or tutorial about secure user management and privileges. I have O'Reilly's Essential PHP Security. When I'm starting a project, I'm never sure that it's secure, or if I'm doing security the right way. Because this, I'm looking for a case study.
...
I installed lighttpd, php5 +fastcgi, and php5-curl earlier this morning using MacPorts. I have been able to get the former two working fine, but I can't seem to get PHP to see the installed cURL extension. I did not change the install path for cURL - it is now at /opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so.
I've adde...