Search found 65 matches

by lettie_dude
Thu Aug 09, 2012 6:53 am
Forum: PHP - Code
Topic: Soap integration with php for LetMC
Replies: 3
Views: 1342

Re: Soap integration with php for LetMC

Thanks for the response tr0gd0rr. I have a basic script they have supplied that is unsupported as they seem to favour .asp. The only problem is I am getting an error when it runs. System.Web.Services.Protocols.SoapException: Object reference not set to an instance of an object. at Cuba.Portal.Proper...
by lettie_dude
Tue Aug 07, 2012 6:12 am
Forum: PHP - Code
Topic: Soap integration with php for LetMC
Replies: 3
Views: 1342

Soap integration with php for LetMC

Hi

Has anyone done any integration using the LetMC soap Property Search Service? I have a client using them and they provide an asp API but don't have an official script for php. So was hoping someone may have created something I can adapt for my purposes.

Any assistance much appreciated.
by lettie_dude
Wed May 18, 2011 8:24 am
Forum: Databases
Topic: single quote breaking sql query after server move
Replies: 1
Views: 1028

single quote breaking sql query after server move

Hi I have just transferred a site from one server provider to a new dedicated hosting provider. In short everything has come across fine. The problem I have is that the CMS is now not working corretly. After trouble shooting I have discovered the sql query string is now not working correctly and any...
by lettie_dude
Thu Aug 12, 2010 7:16 am
Forum: PHP - Code
Topic: Problem with mail()
Replies: 3
Views: 279

Re: Problem with mail()

ini_set ("sendmail_from", "from@yourdomain.co.uk"); $fromemail = "from@yourdomain.co.uk"; $mime = "MIME-Version:1.0\r\nContent-type:text/html;Charset=iso-8859-1\r\nFrom: ".$fromemail; @mail("to@whoever.co.uk","Subject",'Content',$mime,&quo...
by lettie_dude
Thu Aug 12, 2010 7:05 am
Forum: Databases
Topic: MySql Administrator MySQL Query Browser Bug/Error
Replies: 0
Views: 407

MySql Administrator MySQL Query Browser Bug/Error

Hi Not sure if anyone on here will know the answer to this. But I have scoured the internet to no avail with this intermittent problem. I use MySql Administrator and MySQL Query Browser. I have done for several years with no problems. Just recently however I am having problems with the Query Browser...
by lettie_dude
Tue Jul 20, 2010 8:06 am
Forum: PHP - Code
Topic: Bizarre dynamically generated checkboxes behaviour
Replies: 2
Views: 1228

Re: Bizarre dynamically generated checkboxes behaviour

This bugged me for ages. If your using dreamweaver it would appear to be a bug in the whitespace coding. You need to make sure you have no space between your php tags and the value field ie: value ="<?php echo "$day"._."$slot"; ?>" Make sure the quotes rest up against t...
by lettie_dude
Tue Jul 20, 2010 7:58 am
Forum: PHP - Code
Topic: global var returns to 0 after function call
Replies: 2
Views: 154

Re: global var returns to 0 after function call

2 things I notice straight away is you haven't declared the first $fileCount variable as global at the top of your script. That should be the only place you need to declare it as global. Secondly everytime you submit the form it is sending it back to the same page and the first thing that happens is...
by lettie_dude
Tue Jul 20, 2010 7:48 am
Forum: PHP - Code
Topic: Mod Rewrite Issue
Replies: 0
Views: 212

Mod Rewrite Issue

Hi Just been browsing the forums to find a solution to my problem but am unable to find any. Hopefully it will be a fairly simple solution. I have a rewrite condition: RewriteRule ^cat-([0-9]+)/[A-Z0-9_-]+-([0-9]+)\.html$ cat.php?c=$1&sc=$2 [NC,L] This should redirect a url as per example: http:...
by lettie_dude
Thu May 14, 2009 8:08 am
Forum: Regex
Topic: Validating urls with regex
Replies: 3
Views: 1100

Re: Validating urls with regex

Cheers prometheuzz preg_match is working for me. Many thanks
by lettie_dude
Thu May 14, 2009 7:52 am
Forum: PHP - Code
Topic: Simple XML Parser
Replies: 12
Views: 259

Re: Simple XML Parser

Your code is looking for an .xml file on the server. You need to upload a blank .xml file with the file name you have chosen.
by lettie_dude
Thu May 14, 2009 7:44 am
Forum: PHP - Code
Topic: function Return value is not assigning to a variable !!!
Replies: 5
Views: 161

Re: function Return value is not assigning to a variable !!!

Try changing this bit of code as below:

Code: Select all

$currentTopicId = findTheParent($topicId);  
echo "returned:".$currentTopicId;
by lettie_dude
Thu May 14, 2009 7:37 am
Forum: Regex
Topic: Validating urls with regex
Replies: 3
Views: 1100

Validating urls with regex

Hi Have a regex I have been using for some time to validate urls. However have just come across a problem where it will not valid a certain type of url. Its using eregi and is as follows: ^(http|https|ftp)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~\[\...
by lettie_dude
Thu Apr 30, 2009 3:59 am
Forum: PHP - Code
Topic: Large File Upload Issues
Replies: 2
Views: 170

Re: Large File Upload Issues

Ok. It's been a hard slog but It finally looks like I have resolved this. There is a further setting in the php.ini file that needs increasing to allow for large file uploads. max_input_time = 300 (default) increase this by a relevant amount of time and hey presto it works. So in summary these are t...
by lettie_dude
Wed Apr 29, 2009 3:20 am
Forum: PHP - Code
Topic: email body showing up Blank in Hotmail?
Replies: 1
Views: 329

Re: email body showing up Blank in Hotmail?

Try this.   $from = 'From: me <me@mysite.com>'; $header = "MIME-Version:1.0\r\nContent-type:text/html;Charset=iso-8859-1\r\n".$from mail($to,$subject,$message,$headers);   With the image. Upload it to a folder on the your server and reference it directly from the email. i.e. <img src="...
by lettie_dude
Wed Apr 29, 2009 3:08 am
Forum: PHP - Code
Topic: How to insert checkbox data into MySQL?
Replies: 8
Views: 651

Re: How to insert checkbox data into MySQL?

If I am understanding what you want to do correctly. You want to have seceral tags referencing 1 article. Is this correct? If so the way I would set it up is to create a seperate database for the tags with and id, tagname, and articleid and perhaps a date field for reference. Then associate the tags...