Search found 41 matches

by ska
Tue Mar 18, 2008 11:16 am
Forum: Javascript
Topic: CSS for liquid header with minimum width
Replies: 9
Views: 1305

Re: CSS for liquid header with minimum width

Thanks, that works. Sure I tried it before though! I think perhaps I tried it with an absolutely positioned wrapper and that somehow didn't work. Your version is fine though, cheers.
by ska
Fri Mar 14, 2008 11:41 am
Forum: Javascript
Topic: CSS for liquid header with minimum width
Replies: 9
Views: 1305

CSS for liquid header with minimum width

Hello all. I use CSS for all my layouts, but there's one thing that I've never been able to work our an elegant solution for. How do I achieve the layout using tables shown below using CSS only;   <table width="100%" border="0" cellspacing="0" cellpadding="0">...
by ska
Sat Nov 10, 2007 3:34 pm
Forum: PHP - Code
Topic: Parsing large XML documents - XMLReader, PHP, MySQL
Replies: 3
Views: 808

Guessing that no-one's used XMLReader on here then? Well if that's the case, has anyone got any other ideas for reading a large XML document into MySQL without running into timeout and memory issues?
by ska
Fri Nov 09, 2007 1:50 am
Forum: PHP - Code
Topic: Parsing large XML documents - XMLReader, PHP, MySQL
Replies: 3
Views: 808

Thanks for the suggestion. Anyone know if magpie can handle large XML files? Bear in mind this project is on a shared host so I have memory and timeout issues to take into consideration and can"t start tweaking the ini file to suit me. I googled 'Magpie large xml" and this thread comes up ...
by ska
Thu Nov 08, 2007 4:56 pm
Forum: PHP - Code
Topic: declaring multiple variables with includes as well?
Replies: 2
Views: 419

For efficiency, I tend to open the connection at the start of my application and then close it at the end. i.e. dbConnect(); // all my code here, SQL queries etc. mysql_close(); That way I'm not opening and closing connections the whole time. To answer your specific queries, Do the variables cancel ...
by ska
Thu Nov 08, 2007 4:20 pm
Forum: PHP - Code
Topic: Parsing large XML documents - XMLReader, PHP, MySQL
Replies: 3
Views: 808

Parsing large XML documents - XMLReader, PHP, MySQL

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi guys, ...
by ska
Fri Oct 26, 2007 4:37 am
Forum: Installation and Configuration
Topic: URL Rewrite Regex in htaccess
Replies: 3
Views: 1620

Hi Everah, yeah link is there already. I should have looked sooner, eh..! Cheers.
by ska
Thu Oct 25, 2007 12:09 pm
Forum: Installation and Configuration
Topic: URL Rewrite Regex in htaccess
Replies: 3
Views: 1620

Fixed it. Just had to actually think about it...!

Code: Select all

RewriteRule ^(.*)/([^/\.]+)_c([^/\.]+).html$ index.php?target=viewcategory&catid=$3 [L]
i.e. (.*) represents as many directories in the url as nescessary.

This is useful;


http://www.ilovejackdaniels.com/mod_rew ... _sheet.png
by ska
Wed Oct 24, 2007 3:11 pm
Forum: Installation and Configuration
Topic: URL Rewrite Regex in htaccess
Replies: 3
Views: 1620

URL Rewrite Regex in htaccess

Hi guys, I have a query for a specific regex I'm writing in an htaccess file for a URL Rewrite. I've got most of them working, it's just the last two; #this ones rewrites for example /admin/ to index.php?target=admin RewriteRule ^([^/\.]+)/$ index.php?target=$1 [L] #this one rewrites for example new...
by ska
Fri Nov 17, 2006 11:16 am
Forum: PHP - Code
Topic: Comparing remote FTP and local files by date
Replies: 4
Views: 682

Thanks, used file size! $res = ftp_size($ftp, $server_file); // find out if this file is in the current image list $sql="SELECT filesize FROM image_list WHERE imagename='".$filename."'"; $result = mysql_query( $sql ); if (mysql_num_rows($result)>0) { $row = mysql_fetch_assoc( $re...
by ska
Thu Nov 16, 2006 8:12 am
Forum: PHP - Code
Topic: Comparing remote FTP and local files by date
Replies: 4
Views: 682

Thanks, If I use file sizes presumably I'd have to do: if filesize_remote!=filesize_local get file This will be depending on an image that has not changed having exactly the same filesize as when it was last checked. There's no weird variations by a few bytes here and there that could occur when che...
by ska
Thu Nov 16, 2006 4:36 am
Forum: PHP - Code
Topic: Comparing remote FTP and local files by date
Replies: 4
Views: 682

Comparing remote FTP and local files by date

Hi all, Here's an issue I'm struggling with. I need to FTP into a remote sever via PHP and then grab all the latest images that are in a directory there. I've written a script that will go through all the images in a directory and download them to a directory on the local server. It will compare fil...
by ska
Wed Nov 15, 2006 4:24 am
Forum: PHP - Code
Topic: store email body, title, content and attachments to MySQL
Replies: 6
Views: 1790

More useful links continued....

http://sourceforge.net/project/showfile ... _id=104718

This one looks pretty good! ;)
by ska
Sun Nov 12, 2006 6:53 am
Forum: PHP - Code
Topic: store email body, title, content and attachments to MySQL
Replies: 6
Views: 1790

Hiya all, I'm still on with this. I've just found this article that looks like it might be useful; http://www.devshed.com/c/a/PHP/PHP-Email/2/ And this one too! http://www.linuxscope.net/articles/mailAttachmentsPHP.html Just thought I'd post here to chart my progress - someone else might find all th...
by ska
Thu Nov 09, 2006 8:07 am
Forum: PHP - Code
Topic: store email body, title, content and attachments to MySQL
Replies: 6
Views: 1790

Can you use the IMAP extension? If you can, I might have a class that can do this. You can use the database or file storage or use both, message parts are kept in the database and attachments are stored in the file system. Thanks printf. Yes, could use IMAP I think. Sounds like it might be what I'm...