Home
Forums
Articles
Glossary
Awards
Register
Rules
Members
Search
Today's Posts
Mark Forums Read
Account Login
User Name
Password
Remember Me?
Latest Articles
The basic usage of PHPTAL, a XML/XHTML template library for PHP
by
awuehr
on
11-10-2008
in
Tips & Tricks
Vulnerable methods and the areas they are commonly trusted in.
by
Village Idiot
on
11-04-2008
in
Classes & Objects
Simple way to protect a form from bot
by
codefreek
on
10-23-2008
in
Basic
The Basics On: How Session Stealing Works
by
wiifanatic
on
09-12-2008
in
Security & Permissions
How to keep your forms from double posting data
by
drewbee
on
07-03-2008
in
Tips & Tricks
IRC Channel
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
Wired Flame
ClientExec
Handy PHP
PHP Kitchen
PHP Tutorials
Insane Visions
Associates
TalkPHP
>
Search Forums
»
Search Results
Showing results 1 to 25 of 25
Search took
0.00
seconds.
Search:
Posts Made By:
sjaq
Forum:
XHTML, HTML, CSS
04-12-2009, 11:32 AM
Replies:
3
I forgot how to line break...
Views:
917
Posted By
sjaq
http://snipplr.com/view/10979/css-cross-browser-wo...
http://snipplr.com/view/10979/css-cross-browser-word-wrap/
Forum:
General
01-23-2009, 11:42 AM
Replies:
4
PHP Dictionary API
Views:
3,422
Posted By
sjaq
I created a word script a while back, the code...
I created a word script a while back, the code probably sucks but you it uses definr.com and if definr.com can't find it it tries Oxford dictionary (no api but fetches de definition from the...
Forum:
Advanced PHP Programming
01-08-2009, 07:03 AM
Replies:
7
Template Phraser
Views:
863
Posted By
sjaq
Why make your own template parser when there are...
Why make your own template parser when there are lots of open source Classes already made? I use H2O: http://github.com/speedmax/h2o-php/tree/master
Forum:
General
05-05-2008, 10:05 AM
Replies:
22
Escaping Metacharacters
Views:
1,219
Posted By
sjaq
Ah I found it, when you use %3F it works, that is...
Ah I found it, when you use %3F it works, that is the hex for a ?. So that was the problem. It is just a technical restriction.. But you could fix it with php...
RewriteRule ^image$ image.php...
Forum:
Absolute Beginners
05-05-2008, 08:52 AM
Replies:
13
Randomize code
Views:
1,011
Posted By
sjaq
With numbers <?php $str =...
With numbers
<?php
$str = 'XXXX-XXX-XXX-XX-XXXX';
echo preg_replace_callback('/X/', create_function('$match', 'return rand(0, 1)? chr(rand(65, 90)) : chr(rand(48, 57));'), $str);
?>
@Orc:...
Forum:
Absolute Beginners
05-05-2008, 08:28 AM
Replies:
13
Randomize code
Views:
1,011
Posted By
sjaq
Something like this? $str =...
Something like this?
$str = 'XXXX-XXX-XXX-XX-XXXX';
echo preg_replace_callback('/X/', create_function('$match', 'return chr(rand(65, 90));'), $str);
Forum:
Absolute Beginners
05-02-2008, 08:29 AM
Replies:
6
what a headache
Views:
981
Posted By
sjaq
$i = 0; foreach ($rss->getItems() as $item)...
$i = 0;
foreach ($rss->getItems() as $item) {
echo "<li><a href=\"" . $item['link'] . "\">" . $item['title'] . "</a></li>\n";
++$i;
if($i === 5) break;
Forum:
Absolute Beginners
04-17-2008, 07:45 AM
Replies:
4
email link validation (need hekp)
Views:
889
Posted By
sjaq
$_SERVER['REQUEST_URI']?
$_SERVER['REQUEST_URI']?
Forum:
General
03-27-2008, 05:03 PM
Replies:
7
Software Versioning: Alpha & Above Question(s)
Views:
693
Posted By
sjaq
Pre alpha sounds good. It depends, some...
Pre alpha sounds good.
It depends, some developers just use revision numbers as versions when they are in the alpha stage. Most developers go to a new "stage" after they've fixed a small amount of...
Forum:
General
03-27-2008, 03:16 PM
Replies:
7
Software Versioning: Alpha & Above Question(s)
Views:
693
Posted By
sjaq
Pre-alpha is not feature complete Alpha is...
Pre-alpha is not feature complete
Alpha is released to a closed group of tester
Beta is public
RC is feature complete and all the bugs have been fixed, it's only for last testing purposes and to look...
Forum:
Script Giveaway
03-09-2008, 06:19 PM
Replies:
0
Id generator script
Views:
1,433
Posted By
sjaq
Id generator script
I posted this script in a other thread and thought it would be nice to post it here also.
It is a script that converts long id's to strings and the other way. The coding is pretty crappy, but I was...
Forum:
General
02-12-2008, 07:15 AM
Replies:
6
Rss Feed layout won't show
Views:
1,380
Posted By
sjaq
It just opens up in my feed reader, you've...
It just opens up in my feed reader, you've probably just installed a plugin to read rss.
But one problem can be that you're not giving the proper headers to your rss feed: Content-Type: text/xml
Forum:
General
02-06-2008, 09:31 PM
Replies:
3
Combining RSS Feeds - Any Suggestions
Views:
774
Posted By
sjaq
RSSMix (http://www.rssmix.com/) does the job for...
RSSMix (http://www.rssmix.com/) does the job for you.
Forum:
General
02-01-2008, 07:40 PM
Replies:
21
im looking for a cheap host
Views:
1,486
Posted By
sjaq
Secure PHP Hosting...
Secure PHP Hosting (http://www.securephphosting.com/) is down, funny enough :-P
Forum:
General
02-01-2008, 03:02 PM
Replies:
21
im looking for a cheap host
Views:
1,486
Posted By
sjaq
I'm with dreamhost, it's great if you don't have...
I'm with dreamhost, it's great if you don't have that many visitors and just want to play around. Got like 10 sites hosted there and support is great. It's also nice that you can install almost...
Forum:
Absolute Beginners
01-15-2008, 07:44 AM
Replies:
6
Namespaes?
Views:
755
Posted By
sjaq
PHP: Namespaces - Manual...
PHP: Namespaces - Manual (http://nl3.php.net/language.namespaces) ;-)
Forum:
Advanced PHP Programming
01-14-2008, 10:47 AM
Replies:
5
Mixed Mod_Rewrite with non
Views:
776
Posted By
sjaq
RewriteEngine On RewriteCond %{REQUEST_FILENAME}...
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^([a-z0-9]+)/([a-z0-9]+).html index.php?act=$1&sub=$2...
Forum:
Script Giveaway
01-08-2008, 07:28 PM
Replies:
3
Function to convert from PDF to JPG
Views:
16,480
Posted By
sjaq
You can use Ghostscript...
You can use Ghostscript (http://pages.cs.wisc.edu/~ghost/) to do that, described here: Google Answers: Create Image from PDF using PHP (http://answers.google.com/answers/threadview?id=134543)
Forum:
General
01-01-2008, 05:38 PM
Replies:
7
The 3 Click rule
Views:
1,198
Posted By
sjaq
I often find myself leaving sites because I'm...
I often find myself leaving sites because I'm just clicking and clicking to get to the information. The 3 click rule is a really good tool and I think it should be used more often.
Most of the time...
Forum:
XHTML, HTML, CSS
12-27-2007, 02:18 PM
Replies:
14
Menu Display Problem in IE6+
Views:
3,992
Posted By
sjaq
z-index only works when you define a position, so...
z-index only works when you define a position, so try this:
#ja-mainnav { position: relative; background-image: url(xx/xx/xx.jpg); height: 184px; }
#ja-mainnav div {
position: relative;
z-index:...
Forum:
Absolute Beginners
12-21-2007, 09:46 PM
Replies:
8
preg_match and that stuff..
Views:
816
Posted By
sjaq
I'm assuming you understand regular expressions...
I'm assuming you understand regular expressions and I don't have to explain that part..
What that line does is that it searches for all occurrences of {([a-z0-9\.]+)} within the template file (which...
Forum:
Absolute Beginners
12-21-2007, 07:18 PM
Replies:
8
preg_match and that stuff..
Views:
816
Posted By
sjaq
No, it won't. It gets all the data out of the...
No, it won't.
It gets all the data out of the array so if you would like to replace {page} with the contents of $page you'll have to do something like this:
<?php
$values = array(
'page' =>...
Forum:
Absolute Beginners
12-21-2007, 06:47 PM
Replies:
8
preg_match and that stuff..
Views:
816
Posted By
sjaq
I tried it a couple of different ways but this...
I tried it a couple of different ways but this seems to work fine:
Template.php
<?php
class Template
{
public $data;
const TEMPLATE_PATH = './';
public function parse($template, array...
Forum:
Absolute Beginners
12-19-2007, 06:37 PM
Replies:
5
mysql_connect VS. mysql_pconnect
Views:
2,998
Posted By
sjaq
From the php site...
From the php site (http://www.php.net/manual/en/features.persistent-connections.php):
There are some pre's and cons about persistent connections, you just have to read it...
Forum:
Absolute Beginners
12-07-2007, 07:50 PM
Replies:
5
PHP Mail - Help sending multiple attachments
Views:
10,105
Posted By
sjaq
You can use arrays for that: <p>File Attachment:...
You can use arrays for that:
<p>File Attachment: <input type='file' name='fileatt[]' /></p>
<p>File Attachment: <input type='file' name='fileatt[]' /></p>
And then use foreach to do something with...
Showing results 1 to 25 of 25
All times are GMT. The time now is
11:31 AM
.
Contact Us
-
TalkPHP - PHP Community
-
Archive
-
Top
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