TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 22 of 22
Search took 0.00 seconds.
Search: Posts Made By: davidapple
Forum: Javascript, AJAX, E4X 03-27-2010, 11:30 PM
Replies: 14
Views: 2,521
Posted By davidapple
Thanks. Yeah, I know having your own site gives a...

Thanks. Yeah, I know having your own site gives a lot more freedom but it's also a lot more work. Especially when it comes to RSS feeds and the ability to allow users to leave comments. I had my own...
Forum: Javascript, AJAX, E4X 03-27-2010, 07:14 AM
Replies: 14
Views: 2,521
Posted By davidapple
I'm having trouble using the previous script in...

I'm having trouble using the previous script in BlogSpot. It won't let me put the script in to the head of the page. Is their a way of using java to do this countdown without putting anything in the...
Forum: Javascript, AJAX, E4X 03-25-2010, 11:24 PM
Replies: 14
Views: 2,521
Posted By davidapple
Ah crap, I just spotted another problem. It uses...

Ah crap, I just spotted another problem. It uses the date set on the users computer. This is a problem because I've got listeners in New Zealand and the UK so perhaps the simplest solution is to have...
Forum: Javascript, AJAX, E4X 03-25-2010, 11:12 PM
Replies: 14
Views: 2,521
Posted By davidapple
Thanks delayedinsanity, I though you had...

Thanks delayedinsanity,
I though you had forgotten the link, in your previous post. Ah well, easy mistake. That tutorial is excellent, I'm getting a lot closer now.

That tutorial displays 2...
Forum: Javascript, AJAX, E4X 03-25-2010, 08:50 AM
Replies: 14
Views: 2,521
Posted By davidapple
Thanks delayedinsanity, but because I'm using...

Thanks delayedinsanity, but because I'm using Blogspot, I can't use PHP unfortunately. Otherwise, that would be a really neat solution. Also, I really want a Java dynamic countdown that ticks down...
Forum: Javascript, AJAX, E4X 03-25-2010, 02:13 AM
Replies: 14
Views: 2,521
Posted By davidapple
Thanks for the tutorial. I am really new to Java,...

Thanks for the tutorial. I am really new to Java, I'm much better at PHP than Java so I'm going to need some help with this one I'm afraid. :-/

Can anyone change the code in the tutorial above to...
Forum: Javascript, AJAX, E4X 03-24-2010, 03:38 AM
Replies: 14
Views: 2,521
Posted By davidapple
Java Text Countdown - Weekly Loop

Hello,

I need help with a little project. I have a 3 hour radio show every week on a New Zealand Radio station (95bFM if anyone's interested). And I want to have a text countdown on my Blogspot...
Forum: Advanced PHP Programming 01-10-2010, 11:46 AM
Replies: 31
Views: 2,103
Posted By davidapple
Yeah I've completely sorted this now. I've made...

Yeah I've completely sorted this now. I've made it so you can actually skip 3 pages forwards or backwards.

$currentpage = ($offset + $perpage) / $perpage;
$nxtpage = ($currentpage + 1);
$prevpage =...
Forum: Advanced PHP Programming 01-10-2010, 11:24 AM
Replies: 31
Views: 2,103
Posted By davidapple
Thanks Parvus. The count(file($lines)) bit is...

Thanks Parvus. The count(file($lines)) bit is key.

I've integrated that in to the rest of my links script.

$currentpage = ($offset + $perpage) / $perpage;
$nextpage = ($currentpage +...
Forum: Advanced PHP Programming 01-10-2010, 02:07 AM
Replies: 31
Views: 2,103
Posted By davidapple
I've figured most of it out now :-D:-D:-D The...

I've figured most of it out now :-D:-D:-D

The first thing to do is figure out what the current page is. You can't use $page because it returns 'Object ID 2'! Which is lame. So I did some maths with...
Forum: Advanced PHP Programming 01-09-2010, 09:41 PM
Replies: 31
Views: 2,103
Posted By davidapple
Ah man! I wish I knew more about PHP. I'm...

Ah man! I wish I knew more about PHP. I'm struggling to implement the page hyperlinks :-(

This is what I was trying out..
$totalpages=ummm?

if ($page > 0){
echo '<a...
Forum: Advanced PHP Programming 01-09-2010, 09:10 PM
Replies: 31
Views: 2,103
Posted By davidapple
Thanks, This is amazing! :-D Works a treat! I'm...

Thanks,

This is amazing! :-D Works a treat!

I'm really impressed that you managed to figure that out from my source file. I didn't realize that mac's TextEditor and PCs Notepad had different ways...
Forum: Advanced PHP Programming 01-09-2010, 04:39 PM
Replies: 31
Views: 2,103
Posted By davidapple
I've had a play around with this again today but...

I've had a play around with this again today but I'm still really struggling. I would love to crack this soon. Any more advice anyone?
Forum: Advanced PHP Programming 01-08-2010, 10:46 PM
Replies: 31
Views: 2,103
Posted By davidapple
Big Grin {Sorry I haven't updated this since last weekend,...

{Sorry I haven't updated this since last weekend, I can't use the internet on weekdays}

Ah right, so that's what the 1000 means.

I have checked and I am sure that I do definitely have line breaks...
Forum: Advanced PHP Programming 01-03-2010, 04:26 PM
Replies: 31
Views: 2,103
Posted By davidapple
This is fantastic. I'm getting really close to...

This is fantastic. I'm getting really close to finishing this project now. I have tested this with a test file that looks a bit like this..

line one
line two
line three
line four
...

And it works a...
Forum: Advanced PHP Programming 01-03-2010, 12:29 PM
Replies: 31
Views: 2,103
Posted By davidapple
A ha, thanks for letting em know about this. I'll...

A ha, thanks for letting em know about this. I'll give them a call tomorrow. If they can't upgrade, is there a way to achieve pagination with my txt file using PHP 5.1.6?
Forum: Advanced PHP Programming 01-03-2010, 11:34 AM
Replies: 31
Views: 2,103
Posted By davidapple
I'm using a shared hosting program (Pick N Mix,...

I'm using a shared hosting program (Pick N Mix, Easyspace.com) so I'm not in control of which version of PHP I am using.

Bit of a shame because the filter function looks really useful. Any easy ways...
Forum: Advanced PHP Programming 01-03-2010, 02:18 AM
Replies: 31
Views: 2,103
Posted By davidapple
I added the error lines and this is the error...

I added the error lines and this is the error message..

Fatal error: Call to undefined function filter_input() in /vhost/*thesitepath*/www/test.html on line 12

Any ideas?

(I have set my website...
Forum: Advanced PHP Programming 01-02-2010, 06:25 PM
Replies: 31
Views: 2,103
Posted By davidapple
I have tried using a query string too but it's...

I have tried using a query string too but it's just not working. For example:

test.html?page=1
Forum: Advanced PHP Programming 01-02-2010, 05:47 PM
Replies: 31
Views: 2,103
Posted By davidapple
Thanks for this. This looks like exactly what I'm...

Thanks for this. This looks like exactly what I'm looking for. I've copied this code and tested it on my site but it's not working. It's just not pulling anything through to the site.

Any ideas why...
Forum: Advanced PHP Programming 01-01-2010, 11:23 AM
Replies: 31
Views: 2,103
Posted By davidapple
Thanks for this :-) Yes, this method is a big...

Thanks for this :-) Yes, this method is a big improvement. A lot simpler. This code pulls all of the data from the txt file using foreach(). However, for some reason the data is preceded...
Forum: Advanced PHP Programming 01-01-2010, 03:57 AM
Replies: 31
Views: 2,103
Posted By davidapple
Paginated Flat File DB

I found this old article (http://www.talkphp.com/advanced-php-programming/2174-pagination-without-using-database.html) on this forum, about paginated txt file databases.

I've set up a site that...
Showing results 1 to 22 of 22

 

All times are GMT. The time now is 04:08 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design