Search found 193 matches

by Joel
Mon Oct 23, 2006 1:57 am
Forum: PHP coding => General
Topic: Checking if SSL in PHP code vs. mod_rewrite
Replies: 1
Views: 910

Checking if SSL in PHP code vs. mod_rewrite

Well, I know that mod_rewrite is the best way to do it and is much easier than adding code to many pages checking if secure. So far, I have this in my .htaccess RewriteEngine on RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} ^.*/admin/.* [OR] RewriteCond %{REQUEST_URI} ^.*/view-quote.php.* [OR...
by Joel
Mon Apr 03, 2006 3:01 pm
Forum: PHP coding => General
Topic: Session Vars not storing
Replies: 2
Views: 1144

<?php session_start(); echo "<pre>"; print_r($_SESSION); echo "</pre>"; @include_once("d52er/includes/functionlib.inc.php"); if (!isset($_GET['mount'])) { header("Location: earrings.php"); } else { $sql = "SELECT * FROM earrings WHERE id = ".$_GET['mount']; $result = mysql_query($sql); if (mysql_nu...
by Joel
Mon Apr 03, 2006 4:14 am
Forum: PHP coding => General
Topic: Session Vars not storing
Replies: 2
Views: 1144

Session Vars not storing

The following script (process.php) is made to have a form POSTED to it and then if there are errors in the form, send it back to the form (form.php). The problem occurring is that the form variables, which are stored in the sessions by process.php are not being accesible from on form.php. This same ...
by Joel
Mon Mar 20, 2006 3:42 am
Forum: PHP General
Topic: Hardware for Web Development
Replies: 2
Views: 2516

Hardware for Web Development

I'm currently looking into getting a new computer. I'm not right after the top of the line. I've spent a bit of my night comparing prices to benchmark tests from Toms Hardware using the multitasking benchmark (most of the time i'd be my timesheets in excel while listening to music in itunes, sending...
by Joel
Mon Feb 27, 2006 1:27 am
Forum: PHP coding => General
Topic: Sending PDF as attachment through HTTP Header
Replies: 5
Views: 1525

Ahh well, I'll put a notice to tell people to save if it doesn't work but hopefully it's just something with my computer.
by Joel
Sun Feb 26, 2006 2:36 pm
Forum: PHP coding => General
Topic: Sending PDF as attachment through HTTP Header
Replies: 5
Views: 1525

No PHP errors, but Adobe reader says: There was an error opening this document. This file cannot be found. But like I said, if you save the file first, it works. The reason why I think this is a PHP error is because when the following code is used with the same PDF, it works as expected. This code i...
by Joel
Sun Feb 26, 2006 2:22 pm
Forum: PHP coding => General
Topic: user retrieve password from entering email
Replies: 20
Views: 7462

This means your script is working fine, but you have no mail server set up. I'm guessing your doing this on a home test server.

If you don'twant the hassle of setting up an smtp server - try uploading it somewhere for testing.
by Joel
Sun Feb 26, 2006 3:32 am
Forum: PHP coding => General
Topic: Sending PDF as attachment through HTTP Header
Replies: 5
Views: 1525

Sending PDF as attachment through HTTP Header

I have a script that retrieves a file through a getfile.php?file=filename.ext. Everything is working fine except when a user clicks 'Open' to a PDF file. It works fine if they save the file, then open it - and also any other file - for example MS Word opens fine. Here is the code, any reason to be g...
by Joel
Sat Feb 25, 2006 7:31 pm
Forum: PHP coding => General
Topic: user retrieve password from entering email
Replies: 20
Views: 7462

There are plenty of tutorials for this all over the net. Try a search for "php mysql forgot your password tutorial" But basically this is the process: User enters email address If found in database -> send mail via mail() containing username and password to email given If not found -> Give error Ver...
by Joel
Sun Sep 25, 2005 1:42 am
Forum: PHP coding => Mail
Topic: Mailing List Timeout
Replies: 4
Views: 2181

Thanks Alexei, I don't have access to the PHP.INI but my plan was to do 30 at a time or so if there was no quick fix which I wasn't aware of. I have rewritten my script using PHP Mailer, but the only SMTP I can use are with different ISP's from my hosting company. I also can't use set_time_limit as ...
by Joel
Sat Sep 24, 2005 11:58 pm
Forum: PHP coding => Mail
Topic: Mailing List Timeout
Replies: 4
Views: 2181

Mailing List Timeout

I see the "3000" emails post before, but it still doesn't exactly answer my question. I am making a mailing list, but it is timing out before all the mail is being sent out. I have put it into a loop to make the email personal with the users name. One part of the code I am unsure about is use of sle...
by Joel
Wed Aug 24, 2005 4:31 am
Forum: PHP General
Topic: Large File Uploads
Replies: 5
Views: 1961

OK Thanks for that. We will most probably be using a dedicated server.

Can HTTP form post uploading be trusted for a 7MB file?
by Joel
Wed Aug 24, 2005 4:17 am
Forum: PHP General
Topic: Large File Uploads
Replies: 5
Views: 1961

I did have a search, my question is more what will work the best for me? I haven't really done too much like this before. I don't know if I want to trust a form to upload such a large file and I'm curious if anyone has experience with software like m and integration into PHP. I'm willing to spend th...
by Joel
Wed Aug 24, 2005 3:06 am
Forum: PHP General
Topic: Large File Uploads
Replies: 5
Views: 1961

Large File Uploads

I'm currently developing an online digital photo printing service and realise I will be facing some problems with large file uploads. I think it would be fair enough to set the limit to 10MB as I would assume anyone with a digital camera this powerful would know how to resize the image anyway to be ...
by Joel
Tue Aug 02, 2005 2:04 am
Forum: mySQL & php coding
Topic: SQL Question - Query Returning No Results
Replies: 5
Views: 1389

Well, I've figured it out.

Fulltext searching can only find words of 4 characters or more. I just clicked when I was looking at the SQL from another site I did with similar code and saw all the features with 4 digit id's.
by Joel
Tue Aug 02, 2005 1:58 am
Forum: mySQL & php coding
Topic: SQL Question - Query Returning No Results
Replies: 5
Views: 1389

SELECT * FROM products WHERE MATCH (features) AGAINST('11')

Let me just check my knowledge - That query above,should return any products that contain the word '11'?
by Joel
Tue Aug 02, 2005 1:47 am
Forum: mySQL & php coding
Topic: SQL Question - Query Returning No Results
Replies: 5
Views: 1389

Thanks, but I've got no luck with that. I think the + does the same thing as having a space anyway. I'm starting to think it's a problem with my data now, because I've just noticed check boxes which get checked if the feature is there on the product are now not working. I don't think the data type o...
by Joel
Mon Aug 01, 2005 8:38 pm
Forum: mySQL & php coding
Topic: SQL Question - Query Returning No Results
Replies: 5
Views: 1389

SQL Question - Query Returning No Results

SELECT *, MATCH(features) AGAINST('15 11' IN BOOLEAN MODE) as relevance FROM products WHERE MATCH(features) AGAINST('15 11' IN BOOLEAN MODE) AND (price1 <= 9999 OR (saleprice <= 9999 AND sale_expiry > UNIX_TIMESTAMP())) AND (price1 >= 0 OR...
by Joel
Wed Jul 27, 2005 10:27 pm
Forum: PHP coding => General
Topic: Page Confusion?
Replies: 11
Views: 2012

OK, I have misunderstood you as well. I'm quite happy to use my navigation bar system I've made myself, and the problem I had was the script in index.php was being executed somehow from product_display.php and hence making product_display.php think that the user came from index.php. The problem was ...
by Joel
Wed Jul 27, 2005 10:11 pm
Forum: PHP coding => General
Topic: Page Confusion?
Replies: 11
Views: 2012

Did you read my explanation of what was going wrong? I've figured it out now and it was nothing to do with PHP at all. I've tried many print_r's all over the place and plenty of other attempts to narrow down the problem thats happening the die's were the main thing that helped me. The die() was NOT ...
by Joel
Wed Jul 27, 2005 2:28 pm
Forum: PHP coding => General
Topic: Page Confusion?
Replies: 11
Views: 2012

The die is just there for testing purposes to find which part of the code is causing the problem. And it worked a treat.
by Joel
Wed Jul 27, 2005 1:51 am
Forum: PHP coding => General
Topic: Page Confusion?
Replies: 11
Views: 2012

I still can't get over why this is even happening to begin with. I have isolated the part on the product_display.php where index.php is happening. <?php <td width="200" valign="top"><div align="center"> <a href="image_display.php?id=<?php echo $row['prod_id']; ?>&q...
by Joel
Wed Jul 27, 2005 12:39 am
Forum: PHP coding => General
Topic: Page Confusion?
Replies: 11
Views: 2012

Thanks for that, I will try and give that class or some similar workaround a try. I tried an echo from the functions file and it always returns the page that included it to begin with. The only include I am using is of a functions file, but still no association with index.php which is what I don't u...
by Joel
Tue Jul 26, 2005 11:06 pm
Forum: PHP coding => General
Topic: Page Confusion?
Replies: 11
Views: 2012

Page Confusion?

I have just deleted my first, very in detail post about what I thought the problem could've been. But I have narrowed down what I think the problem can be. I have a function called StorePage which is called from index.php and this function saves the page name to session vars. Then on another page pr...
by Joel
Tue Jul 12, 2005 2:32 pm
Forum: mySQL & php coding
Topic: HTML Table Problem from loop
Replies: 2
Views: 1006

Yeah I'll give it a go, it seems like a strange problem. I think it's something weird with the line breaks because if I make something look exactly the same in Dreamweaver, it turns out fine.