I copied one of the html pages in a project and just changed the extension from html to php.
The rendering is identical in all browsers but IE. It seems that IE treats the pages differently based on the extension.
I checked the HTTP headers and they are the same for both pages.
Did anyone have the same problem?
...
This is quite weird but my search function can search for any word except the word "grinder" from my item table. I have tried everything but it does not seem to search for that word. Can anyone help me please?
CREATE FULLTEXT INDEX item_name_other_name_desc_index
ON item (name,other_name,description)
public static function Search...
I am using javascript to get the referring page (document.referrer) which works fine and I can add this value to a div no problem.
How do I assign this value to a PHP variable in order to do some other things with it?
Ideally, something like:
$myphpvariable = document.referrer;
...
Hi - Please can someone help? I have the following code which uploads a file to my server and renames it to whoever the logged in user is. For example the user 'coca-cola-lover' uploads a jpeg - the script would also rename the jpeg 'coca-cola-lover.jpg'.
My problem is that I need it to limit the upload to just jpegs - and also limit t...
I have a html file that has invoice details
I would like to know is there a way that I can retrieve only the invoice numbers and store it separately in my sql database using php?
<p>Invoice ID: 0201</p>
<p>MID : Q987</p>
<p>Desciption: Solid Concrete Blocks</p>
<p>Qty: 7478 Blocks </p>
<p> </p>
<p>Invoice ID: 0324</p>
<p>MID : Q44...
Hey,
What I want do to is to include 'file1.php' from 'domain1' into 'file2.php' on 'domain2'. So what I figured I should do is something like this:
file2.php
require_once '/var/www/vhosts/domain1/httpdocs/file1.php';
But this won't work for reasons I can't truly grasp. So what I did was to add my path to the include path. Something ...
i want to protect some folders from a normal user but i (from localhost or my IP address) m unable to see the folder structure...so i do this
write a .htaccess file in that folder(eg.project/cms/js) and write below code
# no nasty crackers in here!
order deny,allow
deny from all
allow from 192.168.1.7
but by using this prohibit to ev...
I don't have any concept about ZF safety. Do I have to use Filter when operating on database? Maybe binding is enough ? How about this:
$users->update($data, 'id=1');
Should $data array be filtered somehow ? Feel free to write anything you know about the issue.
Could you give some links to good articles about safety in ZF (mainly abo...
I currently have a date in this format
2010-03-03 10:39:18
which is a TIMESTAMP field in MySQL. I need to have the date in this format for a search engine called Solr:
1995-12-31T23:59:59Z
Here is some text from their website about dates:
Solr expects dates to be in UTC when
indexing. The format for this date
field is of t...
Hi there,
I'm installing some tracking code into the checkout_success.php page. I need to be able to grab the coupon code/discount code name from the order, if one was used so that I can echo it out in my tracking script.
I was wondering if anyone knows how to do this?
Thank you.
...
I'm making the leap to OOP with my PHP. Is there a way to list all active classes and their methods and properties?
...
I'm looking to set up a blog.
There are many "what's the best blogging engine?" questions on SO, but none totally focused on code quality.
I have done a lot of work with WordPress, and it's the #1 solution for many cases, no question. Its extendability and versatility are unmatched. But the code base is a mess, it has a huge memory f...
Hi,
I would like to set values on an url like this:
<a href='http://$data_url/viewyournote.php?chapter='$name_of_chapter'&note='$id_note'&user='$username'>
Then be able to grab then from the recieving page.
Right now all im getting is this when clicked:
http://localhost/readnotes/viewyournote.php?chapter=
...
Hi,
I'm working on a legacy database table that has a phone no. field
but the problem is that all the entries (over 4k) are in varying
formats.
I was wondering if there was a quick way to fix them by looping through the records using PHP and updating the records to a particular phone format
...
Hi,
if you've got something like,
<hello id="1" name="myName1">
<anotherTag title="Hello">
</anotherTag>
</hello>
<hello id="2" name="myName2">
<anotherTag title="Hi">
</anotherTag>
</hello>
How to change the attributes of, for example, hello id 2, to name="William" ? Or the title hi to hello ?
Thanks a lot for your atention,
H'...
I'm trying to run gpg from my php script using exec(). But it chashes with segmentation fault:
"gpg: Segmentation fault caught ... exiting"
It crashes within a child process so my php script works ok. To identify a problem I wanna get a core file.
I tried to run
ulimit -c unlimited
echo 1 > /proc/sys/fs/suid_dumpable
I added "* soft...
i want to pass the width & height and crop ration in img src tag.My aim is to resolve the problem of the staratching the image because actual image size is too large and thumbnail of this too short so i want to fix the width & height of the image and want to sote this in a folder.
...
Dose anyone know how to get email address book for supplied email address and show or save them in a table. or any Open Source Package that provide this type of things.
...
I have a form, it passes the following values:
image_title,
image_description,
image_file
I wanted to present this form multiple times, so I did the following:
image_title_1,
image_description_1,
image_file_1
image_title_2,
image_description_2,
image_file_2
Multiple times, so I have the fields 1 - 10. I submit the form and print o...
Hi Guys,
I'm new to Jquery. I have a project that has checkboxes and if their status change, then I update some sql table.
But i decided to start with the simple things first to learn how this works...
So, I want to pass to a Jquery function, a php variable if a checkbox status changes.
I have this code:
<?php ?>
<HTML>
<HEAD>
<...