Search found 17 matches

by spartan7
Fri Jul 06, 2007 3:00 am
Forum: PHP coding => General
Topic: php variables
Replies: 1
Views: 1029

php variables

Hi there I have a site I recently installed on my webserver but there is a problem with getting it to run correctly, and I see what the problem is. Basically, he's written all the $_GET/$_POST variables as ordinary variables. So in his script, instead of writing, $_GET['var'] he'll write $var and it...
by spartan7
Tue Apr 24, 2007 2:02 am
Forum: Server installation and configuration
Topic: PHP files being downloaded and not processed
Replies: 1
Views: 2335

PHP files being downloaded and not processed

I have a major problem. I just had a server installed (CentOS, latest stable versions of php,mysql, gd, apache ect) for me and everything works great EXCEPT when I try to access a PHP page the browser tries to download the file instead of process it. The server cpanels and whm and that work FINE so ...
by spartan7
Wed Jul 19, 2006 10:50 pm
Forum: PHP coding => General
Topic: date calculation issues
Replies: 0
Views: 719

date calculation issues

The issue is as follows : I need to be able to calculate the amount of time that passes between two different dates. eg. $date1 = "5 Jun 2006 10:00" $date2 = "7 Jun 2006 12:30" I need to calculate the time it took between those two dates, and display the output as follows: It took X days, X months, ...
by spartan7
Wed Jul 05, 2006 1:11 pm
Forum: JavaScript
Topic: changing a hidden field value from a checkbox
Replies: 1
Views: 2824

changing a hidden field value from a checkbox

I have a checkbox and hidden field within a form : <input name="checkbox1" id="checkbox1" type="checkbox" value="abc" onClick="document.forms[0].hidden1.value = '1'> <input name="hidden1" id="hidden1" type="hidden" value="0"> So, basically I'm changing the value of the hidden form from the checkbox ...
by spartan7
Wed Jun 14, 2006 6:45 pm
Forum: PHP coding => General
Topic: permissions
Replies: 1
Views: 1494

permissions

Hi I've built a CMS ... I need to be able to upload images, however for that to happen, I need to cmod the images directory 777 no? What type of danger am I opening myself to if I keep the directory open with those sort of permissions? If I FTP I can set the folder permissions, from php the cmod fun...
by spartan7
Wed Nov 02, 2005 6:23 am
Forum: PHP coding => Mail
Topic: Preventing php emails listed as spam
Replies: 1
Views: 1780

Preventing php emails listed as spam

I use the following script to send emails using PHP mail("$sendto","$subject","$message","From: $name <$email> \nReply-To: $email \nX-Mailer: PHP $phpver", "-f $email"); My emails sent via PHP are always listed as spam (by yahoo etc). How do I prevent this? I've tried to include various headers (X-S...
by spartan7
Thu Sep 15, 2005 9:15 pm
Forum: PHP coding => Mail
Topic: Is it reasonable to use the mail function to send 3000 mails
Replies: 2
Views: 1735

Is it reasonable to use the mail function to send 3000 mails

Hi all Is it reasonable to use the mail function to send 3000 mails at a time? If I have 3000+ contacts in my database and I need to send email emails, how would I do it using PHP? I havnt used the mail function to send to so many people before and I'm wondering if its reasonable to do so. Thanks
by spartan7
Wed Sep 14, 2005 5:12 pm
Forum: PHP coding => General
Topic: User authentificiation concept
Replies: 2
Views: 890

User authentificiation concept

Hi there. I have been asked by a client to develop a user authentification system. Where a user can login and edit their details and submit it. However, he wants the users of the system to be able to login to the site from a URL he emails them and not have to go through the process of entering a log...
by spartan7
Sun Sep 11, 2005 11:46 pm
Forum: PHP coding => Mail
Topic: What checks need to be made to avoid Email Injection?
Replies: 1
Views: 1376

What checks need to be made to avoid Email Injection?

Hi there I have been getting very strange Emails lately and it fits the profile of somebody trying to use my forms for spamming. I have just added a regular expression that does a full variable check for "MIME-Version" What is the full list of things I must look out for to prevent Email Injection? T...
by spartan7
Fri Jul 29, 2005 3:34 pm
Forum: mySQL & php coding
Topic: Complex SQL
Replies: 4
Views: 1571

Rephrase

Let me rephrase to make what Im saying more understandable... If I wanted to search for a Contact (in Contacts Table) that is linked via GroupContacts Table to Group:Hotel and Group:Tours (in Groups Table) How would I retrieve that contact? --- FROM webcontacts, webgroupcontacts, webgroups WHERE web...
by spartan7
Fri Jul 29, 2005 3:02 pm
Forum: mySQL & php coding
Topic: Complex SQL
Replies: 4
Views: 1571

Hi thanks for the reply but...

Hi there It wont bring back any reply because the CategoryID of accommodation is not the same as the CategoryID as Keywords. So to force a CategoryID = "accommodation" will exclude all the keyword groups, as keyword groups are linked under CategoryID keywords and not CategoryID accommodation. A part...
by spartan7
Fri Jul 29, 2005 2:06 pm
Forum: mySQL & php coding
Topic: Complex SQL
Replies: 4
Views: 1571

Complex SQL

I have 3 tables - Contacts - GroupContacts - Groups Contacts: ContactID Contact GroupContacts: GroupContactID GroupID ContactID Groups: GroupID CategoryID Group Categories do not have a table, they just have a code in the Groups Table. The main category chosen will filter what groups are displayed, ...
by spartan7
Tue Jun 21, 2005 8:03 am
Forum: PHP coding => General
Topic: PHP, JavaScript or sessions? URGENT
Replies: 3
Views: 876

Thanx 4 the reply. Could you clarify?

I'm not familiar with JavaScript, could you explain your script step by step please? It makes a form submit function and then by using that url I submit the form? But what form is being submitted? I have the <form> around the checkboxes but then the submit button submits the checkbox data to the ema...
by spartan7
Mon Jun 20, 2005 8:42 pm
Forum: mySQL & php coding
Topic: mySQL searching
Replies: 6
Views: 1600

Thanks. Could you post me some sample code to clarify?

so a PHP conditional statement that would place then input the correct LIKE statement? could you give me an example please for a better idea of how to implement that?

Thanks :o)
by spartan7
Mon Jun 20, 2005 7:37 pm
Forum: PHP coding => General
Topic: PHP, JavaScript or sessions? URGENT
Replies: 3
Views: 876

PHP, JavaScript or sessions? URGENT

I have a results page which pulls 'contacts' from a database...There are so many records so it must be seperated by pagination. Checkboxes are setting up name=checkbox[] and value=(email from the database).... I have a form setup around the results inorder for a user to select the contacts he wants ...
by spartan7
Mon Jun 20, 2005 6:14 pm
Forum: mySQL & php coding
Topic: mySQL searching
Replies: 6
Views: 1600

mySQL searching

I need to do a single keyword search that searches multiple columns in the same table (and across another table) for example : Table> ID First Name, Last Name, Cel, Fax etc I need to search all of those fields at once. How do I use one search box/query to search for multiple records searching all th...
by spartan7
Sat Jun 18, 2005 9:14 pm
Forum: PHP coding => General
Topic: Checkboxes & Pagination
Replies: 1
Views: 855

Checkboxes & Pagination

Hi, I have hit a problem. I have a dynamically generated results page (from a search) where a user can select a number of options via checkboxes, which then pass on to the next page where they can email (based what they select on the checkboxes)...My problem is as follows, I have 25 results per page...