Forum: PHP Aug 26th, 2009 |
| Replies: 7 Views: 319 OK I have to admit to being stupid on this one.
@leviathan185 while I was reading your comment it occurred to me that I was trying string replace while messing around with htmlentities as well. I... |
Forum: PHP Aug 26th, 2009 |
| Replies: 7 Views: 319 Hi pritaeas,
No I'm not using any lists. Basically I am wrapping content coming in from a CURL request in <p> tags and the • symbol is in the content.
I can't find a way to strip it with... |
Forum: PHP Aug 26th, 2009 |
| Replies: 7 Views: 319 Hi everyone,
I have tried finding out how to do this everywhere but I am coming up completely blank.
I have content coming into my site that I have no control over and it has this symbol •... |
Forum: PHP Jul 15th, 2009 |
| Replies: 4 Views: 520 Thanks Menster,
I have seen the asXML floating about on a few tutorials but none of them really when into it. I'll look it up and try and work something.
I'm really surprised actually that it... |
Forum: PHP Jul 15th, 2009 |
| Replies: 4 Views: 520 Hey Menster,
I have looked at the $toPost variable using print_r() but the thing is I don't need just some of the information from the XML I need all of it including the element tags as well.
... |
Forum: PHP Jul 14th, 2009 |
| Replies: 4 Views: 520 Hi everyone,
The goal is to be able to extract a specific element (and all children of it) from a XML string and then to echo this to the page inside a hidden form element so that it can be posted... |
Forum: PHP May 31st, 2009 |
| Replies: 3 Views: 304 menew,
To me javascript and PHP just 'feel' quite different. They deal with different models as well. PHP is for Server side while Javascript deals with manipulating and navigating the DOM which... |
Forum: PHP Apr 27th, 2009 |
| Replies: 1 Views: 457 Hey,
If you do a search for sql list of country names you will get a few downloads that you can import and then just loop through the table and echo em out.
Also you could create a javascript... |
Forum: PHP Mar 6th, 2009 |
| Replies: 3 Views: 322 I would say php.net IS indeed full of awesomeness but I find it works best for when you need help on a specific problem.
For generally learning PHP I would suggest just picking up a few tuts on... |
Forum: PHP Mar 6th, 2009 |
| Replies: 10 Views: 1,015 I've never stored images as BLOB in a DB as every article I've ever read says to not do. I find it much easier (once you learn it) just storing the path in the database and storing the actual files... |
Forum: PHP Mar 5th, 2009 |
| Replies: 10 Views: 1,015 hi,
are you storing the images in the database or just the path to the images?
Also I always set the query to die if it fails and output the mysql error when it does IE
$result =... |
Forum: PHP Feb 28th, 2009 |
| Replies: 9 Views: 612 Hi,
Don't think you need the second WHERE, just the AND.
Test it out. |
Forum: PHP Dec 24th, 2008 |
| Replies: 2 Views: 350 Hey Amy,
I have recently been looking around for a Dreamweaver replacement as it isn't advancing quick enough as an IDE as I would like.
I think I have settled on Netbeans 6.5. You can check... |
Forum: PHP Nov 26th, 2008 |
| Replies: 1 Views: 937 Hey Nzaman,
Everything I say has to be qualified with a 'it depends on your exact needs' statement.
One of the best things about PHP is that it is free and open source (no I'm not an open... |
Forum: PHP Nov 24th, 2008 |
| Replies: 1 Views: 359 Ok so I don't know why but it seems the code below has fixed it.
if ( isset($_SERVER['HTTP_REFERER']) ){
$referer = basename($_SERVER['HTTP_REFERER']);
}
else{
$referer =... |
Forum: PHP Nov 24th, 2008 |
| Replies: 1 Views: 359 Hi there,
So I thought this would be simple and it should be but I can't see what is wrong. Basically I am checking what language has been selected (via a code stored in a constant LANG_CODE) and... |
Forum: PHP Nov 21st, 2008 |
| Replies: 10 Views: 1,589 So for anyone who has come across this in the future I wanted to say that i found out the problem and let everyone know.
First off thanks for all the help by the guys that posted.
So the... |
Forum: PHP Nov 21st, 2008 |
| Replies: 10 Views: 1,589 As much as I can tell it is. The file is being written when output buffering is not on. So I would assume that that means that the directory is OK.
I'm developing locally on a Mac (the folder... |
Forum: PHP Nov 21st, 2008 |
| Replies: 10 Views: 1,589 Hey kkeith29,
Big thanks for code rewrite but unfortunately it isn't writing the file at all and there are no errors being output.
When run it just shows a blank page, then when I check my... |
Forum: PHP Nov 21st, 2008 |
| Replies: 10 Views: 1,589 Hi Rhyan and kkeith29.
Thanks for the replies. kkeith yes I am overwriting $to_write just as a temporary troubleshooting aid.
Rhyan I tried changing the code to this (The old code is commented... |
Forum: PHP Nov 20th, 2008 |
| Replies: 10 Views: 1,589 Hi,
Thanks for checking this out.
The error is that when I use ob_start to store the results of an include file my fwrite statement later on in the code works but only writes a blank file,... |
Forum: PHP Oct 30th, 2008 |
| Replies: 4 Views: 452 Hi arshadshaikh,
I'm no expert but I can tell you how I just created a similar site not long ago and leave it to smarter people to either confirm what I did or point out it flaws.
Basically the... |
Forum: PHP Oct 28th, 2008 |
| Replies: 10 Views: 1,461 Hi jk,
Like Humbug said it requires code on the persons local machine to do it.
There seems to be plenty of stuff out there to either use or experiment with.
Try this. Seems to do what you... |
Forum: PHP Oct 14th, 2008 |
| Replies: 3 Views: 2,807 Hi, in case anyone comes across this in the future I have included the working version of my code below. Just as a summary; I am POSTing an xml string to a URL and storing the response, also an xml... |
Forum: PHP Oct 13th, 2008 |
| Replies: 3 Views: 2,807 Hi Shanti Chepuru,
Thanks for the link. I hadn't come across that specific page yet. Unfortunately the code is not working. When I echo the variable that should hold the response XML all I get is... |
Forum: PHP Oct 12th, 2008 |
| Replies: 3 Views: 2,807 Hi,
Can anyone please tell me how to do a REST request to a URL using method POST and NOT GET.
I know I have to pass XML to the URL but I really don't know where to start actually sending the... |
Forum: PHP Sep 25th, 2008 |
| Replies: 1 Views: 472 Hello,
Thanks for checking this out.
Basically I have a form that uploads an image and stores it in a folder. I then run a thumbnail function on it and store a thumbnail version of it in a... |
Forum: PHP Sep 19th, 2008 |
| Replies: 2 Views: 531 Hi everyone,
Simple query. I have a RSS.php file in my includes folder and in this I write out an XML file to a feeds folder. It has been working fine except when I changed the relative link used... |
Forum: PHP Sep 8th, 2008 |
| Replies: 4 Views: 490 Hi,
Thanks for the two replies.
I just got it working as the second comment came in. I thought would post up the code for others.
Basically it connects to a table and keeps adding text to... |
Forum: PHP Sep 8th, 2008 |
| Replies: 4 Views: 490 Hi RichAppsConsult,
Thanks for the page. I had actually come across that one when searching. I didn't use it as there seems to be bits that I don't need in it and I don't enderstand everything it... |
Forum: PHP Sep 7th, 2008 |
| Replies: 4 Views: 490 Hi.
I need to create an RSS file from one table in my database. I'm using PHP5 and MySQL.
I have searched on this and tried to do it myself but i'm not sure what path to take. Should I use... |
Forum: PHP Aug 25th, 2008 |
| Replies: 4 Views: 561 The best was is as dickersonka said. Pass the values along in the url.
Accessing them is easy as well. check out http://www.w3schools.com/PHP/php_get.asp. |
Forum: PHP Aug 15th, 2008 |
| Replies: 4 Views: 1,440 Thanks very much. I'll use the file you uploaded on Monday and will post if it works or not in case a few other people are having a similar problem.
Thanks again. |
Forum: PHP Aug 15th, 2008 |
| Replies: 4 Views: 1,440 hi langsor,
I think I may have adapted the sample version.
But I have included the 3 lines of code in it as you showed. My dedicated server is using IIS, that is the only difference from your... |
Forum: PHP Aug 15th, 2008 |
| Replies: 4 Views: 1,440 Hi. Thanks for looking.
I am setting up a dedicated server for the first time to host a site and I have the FTP accounts set up, the PHP and MySQL packages installed. MySQL administrator GUI tool... |
Forum: PHP Jun 18th, 2008 |
| Replies: 6 Views: 1,666 R0bb0b,
A big thanks. I really appreciate the time taken.
I'm working my way through Object Oriented Programming with PHP5 by Hasin Hayder, but it isn't very clear in places. And the number of... |
Forum: PHP Jun 17th, 2008 |
| Replies: 6 Views: 1,666 Hi R0bb0b,
First of all the extra $ is my fault. I apologise.
OK I get what the purpose of "->" is now, good explanation, thank you very much.
If you could would you be able to give me a... |
Forum: PHP Jun 17th, 2008 |
| Replies: 6 Views: 1,666 Hi,
I am learning about how to write OOP PHP code but I keep coming across lines such as
$this -> $sender = $sender
I'd really appreciate it if anyone here could clue me in on this as I... |
Forum: PHP May 6th, 2008 |
| Replies: 2 Views: 607 Daedal,
Thanks for the advice. Unfortunately the emails i send still don't have a custom From: address.
Any other ideas you have would be great as I am clean out of solutions.
Here is the... |
Forum: PHP May 5th, 2008 |
| Replies: 2 Views: 607 Hi, thanks for looking.
The problem is that I can't get a custom header in my emails no matter what i do. The code i have is shown below. From everything I have read it seems like it should work.... |