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
Page 1 of 5
1
2
3
>
Last
»
Page 1 of 5
1
2
3
>
Last
»
Showing results 1 to 25 of 113
Search took
0.01
seconds.
Search:
Posts Made By:
sjaq
Forum:
Absolute Beginners
08-10-2010, 10:58 PM
Replies:
2
Upload script help
Views:
1,194
Posted By
sjaq
<?php define ("MAX_SIZE","1024");...
<?php
define ("MAX_SIZE","1024");
$errors=0;
if(isset($_POST['Submit'])) {
$image=$_FILES['image']['name'];
if($image) {
$filename = stripslashes($_FILES['image']['name']);
$extension...
Forum:
Advanced PHP Programming
05-04-2009, 10:33 AM
Replies:
4
MySQL query help
Views:
775
Posted By
sjaq
Thank you Salathe, this works: SELECT datax +...
Thank you Salathe, this works:
SELECT datax + datay AS data, viewsx + viewsy as views FROM
(SELECT COUNT(*) AS datax, COALESCE(SUM(views), 0) as viewsx FROM `data_id_custom` WHERE `user_id` = 1) as...
Forum:
Advanced PHP Programming
05-03-2009, 08:02 PM
Replies:
4
MySQL query help
Views:
775
Posted By
sjaq
The views row already defaults to 0. The problem...
The views row already defaults to 0. The problem is when one of the SELECTS has no results e.g. there are no items in data_id_custom for user_id 12 so SUM(views) can't count any data.
This is the...
Forum:
Advanced PHP Programming
05-03-2009, 09:43 AM
Replies:
4
MySQL query help
Views:
775
Posted By
sjaq
MySQL query help
Hello again,
I'm working on this file upload tinyurl like thing and have some problems with one mysql query. There are 2 tables with "id"s and I want to count all data and views in those tables...
Forum:
XHTML, HTML, CSS
04-12-2009, 11:32 AM
Replies:
3
I forgot how to line break...
Views:
918
Posted By
sjaq
http://snipplr.com/view/10979/css-cross-browser-wo...
http://snipplr.com/view/10979/css-cross-browser-word-wrap/
Forum:
General
04-10-2009, 09:55 AM
Replies:
6
PHP MySQL Table not loading sometimes
Views:
541
Posted By
sjaq
<?php...
<?php
$con=mysql_connect($hostName,$user,$password);
if(!$con) {
die "connection failed";
}
mysql_select_db($dbName,$con);
$sql="select * from market_details";
Forum:
Absolute Beginners
04-04-2009, 06:27 PM
Replies:
5
PHP function for color matching a photo
Views:
1,099
Posted By
sjaq
Interesting idea, this post looks like it could...
Interesting idea, this post looks like it could help you: http://valokuva.org/?p=72
Forum:
General
01-23-2009, 11:42 AM
Replies:
4
PHP Dictionary API
Views:
3,425
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:
866
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:
Script Giveaway
11-17-2008, 09:02 AM
Replies:
9
Pixelate algorithm using GD
Views:
2,537
Posted By
sjaq
Nice script, but can't you just scale an image...
Nice script, but can't you just scale an image down and then scale it up to get the same effect?...
Forum:
General
08-19-2008, 09:46 PM
Replies:
8
Storing Session data in $_COOKIE as well
Views:
904
Posted By
sjaq
You shouldn't do this, it's totally unsafe to...
You shouldn't do this, it's totally unsafe to store data from sessions in cookies. That's why there are sessions so you can store data the client shouldn't see.
Forum:
General
08-02-2008, 08:56 AM
Replies:
5
Filling an array with an array
Views:
746
Posted By
sjaq
$fp[] = "foreach (array('" . implode(',\'',...
$fp[] = "foreach (array('" . implode(',\'', $data['options']) . "') as $option) {
or something like that
Forum:
TalkPHP Developer Team
07-13-2008, 02:47 PM
Replies:
138
Planning Area - ideas,code,etc.. in here
Views:
5,130
Posted By
sjaq
As I said in the other topic:
As I said in the other topic:
Forum:
General
05-30-2008, 04:08 PM
Replies:
3
Multiple File Uploads
Views:
593
Posted By
sjaq
You should try FancyUpload...
You should try FancyUpload (http://digitarald.de/project/fancyupload/) it allows you to select more files at once.
Forum:
Show Off
05-21-2008, 03:53 PM
Replies:
8
Review: www.resumehype.com
Views:
1,009
Posted By
sjaq
Isn't this just spam? Look at how he said FREE in...
Isn't this just spam? Look at how he said FREE in caps and the links in his sig. And his username it is probably just generated, who the hell would call himself cancer, WTF :D.
Forum:
General
05-08-2008, 06:22 AM
Replies:
4
Destroy Session on Browser Window Closing
Views:
12,497
Posted By
sjaq
You should use session_destroy()
You should use session_destroy()
Forum:
General
05-05-2008, 10:05 AM
Replies:
22
Escaping Metacharacters
Views:
1,222
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:
General
05-05-2008, 09:58 AM
Replies:
22
Escaping Metacharacters
Views:
1,222
Posted By
sjaq
No it seems apache doesn't allow ?'s in their...
No it seems apache doesn't allow ?'s in their regexes, even if you pass it in as a hex it doesn't work.. and when you use / it's pretty basic.. RewriteRule ^image/([A-Za-z0-9\.\_]+)?$...
Forum:
General
05-05-2008, 09:50 AM
Replies:
22
Escaping Metacharacters
Views:
1,222
Posted By
sjaq
But why don't you just use image/bla.jpg this...
But why don't you just use image/bla.jpg this looks much cleaner..
Forum:
General
05-05-2008, 09:42 AM
Replies:
22
Escaping Metacharacters
Views:
1,222
Posted By
sjaq
This works on my computer RewriteRule...
This works on my computer
RewriteRule ^image([A-Za-z0-9\.\_]+)?$ image.php?img=$1 [QSA,L]
Forum:
General
05-05-2008, 09:37 AM
Replies:
22
Escaping Metacharacters
Views:
1,222
Posted By
sjaq
To clear things up what do you want to do...
To clear things up what do you want to do exactly? It seems you want to rewrite /image/bla.jpg to /image.php?img=bla.jpg am I right?
Forum:
General
05-05-2008, 09:33 AM
Replies:
22
Escaping Metacharacters
Views:
1,222
Posted By
sjaq
How does your whole .htaccess or .conf file looks...
How does your whole .htaccess or .conf file looks like? Can you post it here?
Forum:
Absolute Beginners
05-05-2008, 09:31 AM
Replies:
13
Randomize code
Views:
1,013
Posted By
sjaq
Orc I think you don't get the thing he's trying...
Orc I think you don't get the thing he's trying here, he wants to have random strings not the same string every time you run the script.
Forum:
Absolute Beginners
05-05-2008, 09:00 AM
Replies:
13
Randomize code
Views:
1,013
Posted By
sjaq
@Orc I think this is pretty basic stuff so it...
@Orc I think this is pretty basic stuff so it belongs in the Beginners section
Forum:
Absolute Beginners
05-05-2008, 08:52 AM
Replies:
13
Randomize code
Views:
1,013
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:...
Showing results 1 to 25 of 113
Page 1 of 5
1
2
3
>
Last
»
All times are GMT. The time now is
08:06 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