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 4
1
2
3
>
Last
»
Page 1 of 4
1
2
3
>
Last
»
Showing results 1 to 25 of 78
Search took
0.04
seconds.
Search:
Posts Made By:
benton
Forum:
General
07-23-2010, 03:26 PM
Replies:
2
How to keep directory structure in gzip
Views:
980
Posted By
benton
Thank you for the information. That was enough to...
Thank you for the information. That was enough to allow me to look up the needed information and I have it working now.
Forum:
General
07-23-2010, 01:40 AM
Replies:
2
How to keep directory structure in gzip
Views:
980
Posted By
benton
How to keep directory structure in gzip
I'm trying to create a script to read my files and add them to a gzip file. The code below works except that the paths are not written. So if the code below is ran as it is, the file within the gzip...
Forum:
General
12-22-2009, 12:57 AM
Replies:
4
Why does this preg_match fail?
Views:
916
Posted By
benton
That did it. Thanks for taking the time to help....
That did it. Thanks for taking the time to help. It is much appreciated. :)
Forum:
General
12-21-2009, 07:08 PM
Replies:
4
Why does this preg_match fail?
Views:
916
Posted By
benton
Thanks. Unfortunately, that was just a typo made...
Thanks. Unfortunately, that was just a typo made while editing the post. The original code already had it in there. I did find that using quotes instead of apostrophes made a difference though. So...
Forum:
General
12-21-2009, 02:08 PM
Replies:
4
Why does this preg_match fail?
Views:
916
Posted By
benton
Why does this preg_match fail?
Can someone plase explain why this statement fails?preg_match('/<h1>(*)<\/h1>/i', $line, $matches);The failure results in the warning
If I enter this line instead (just to test the code), it...
Forum:
General
10-09-2009, 03:07 AM
Replies:
13
How to write this
Views:
734
Posted By
benton
I have. I tried every variation I can think of....
I have. I tried every variation I can think of. The solution may be something obvious but it is beyond me at this point, which is why I posted here. Am I missing the point of this forum?
Forum:
General
10-07-2009, 12:09 AM
Replies:
13
How to write this
Views:
734
Posted By
benton
Please show how to do it. What sort of problems?
Please show how to do it. What sort of problems?
Forum:
General
10-05-2009, 11:38 PM
Replies:
13
How to write this
Views:
734
Posted By
benton
I was setting up up some test code and got tired...
I was setting up up some test code and got tired of typing in two lines. I wouldn't use in the live code I work on. It seemed an obvious thing to combine the two but when I tried it, it didn't work....
Forum:
General
10-05-2009, 11:37 AM
Replies:
13
How to write this
Views:
734
Posted By
benton
While not correct, extra semi-colons don't cause...
While not correct, extra semi-colons don't cause problems. The php parser just ignores them.
For that statement to be true, you would have to assume the syntax I used is correct, which I don't know...
Forum:
General
10-05-2009, 02:33 AM
Replies:
13
How to write this
Views:
734
Posted By
benton
I did - it doesn't work. Thus the question....
I did - it doesn't work. Thus the question. Perhaps if you tried it you would see that too?
Forum:
General
10-04-2009, 03:00 AM
Replies:
13
How to write this
Views:
734
Posted By
benton
How to write this
Given something like$check = mysql_query("select a from table");
$item = mysql_fetch_array($check);
echo $item['a'];Is it poosible to combine the last two statements? Something likeecho...
Forum:
General
09-26-2009, 03:06 PM
Replies:
2
Glob recursion not working right
Views:
1,306
Posted By
benton
I'm not sure I understand how to make that change...
I'm not sure I understand how to make that change but I tried the following. The result is the same though. The sub-directories are listed but not their contents. This is actually the code I started...
Forum:
General
09-26-2009, 12:46 PM
Replies:
2
Glob recursion not working right
Views:
1,306
Posted By
benton
Glob recursion not working right
I need to be able to read through all directories in a given path and list all of the files. I'm using the following code and it works for the top level but not sub-directories. For example, if there...
Forum:
General
08-31-2009, 01:41 AM
Replies:
1
How to copy file from server to server
Views:
2,003
Posted By
benton
This is just a follow-up in case someone else...
This is just a follow-up in case someone else runs into this. It turns out you have to perform a chdir on the remote server before this will work.
Forum:
General
08-30-2009, 01:12 AM
Replies:
1
How to copy file from server to server
Views:
2,003
Posted By
benton
How to copy file from server to server
I am trying to write a script that will cycle through a list of other servers and copy files from those remote servers to the one the script is on. I've tried the script below but it fails, stating...
Forum:
General
07-23-2009, 06:23 PM
Replies:
11
Simple script fails with php5
Views:
819
Posted By
benton
Thanks to all those who helped. I was finally...
Thanks to all those who helped. I was finally able to determine that fopen was causing the problem, although I don't know why. I did a search on google and see others are having the same problem but...
Forum:
General
07-23-2009, 05:48 PM
Replies:
7
Using regex
Views:
904
Posted By
benton
My thanks to everyone. The code is working as...
My thanks to everyone. The code is working as expected now and I have a better understanding of how to manipulate the string. I do appreciate it.
Forum:
General
07-20-2009, 03:14 PM
Replies:
7
Using regex
Views:
904
Posted By
benton
Thanks for the suggestions but they don't seem to...
Thanks for the suggestions but they don't seem to be working. I changed the input string to more properly illustrate the problem. So given this string$str = '#!$abstract modern-fields';it should...
Forum:
General
07-20-2009, 01:56 AM
Replies:
7
Using regex
Views:
904
Posted By
benton
Using regex
The following code, the way I understand it, is supposed to strip all punctuation characters from the string. From what I've found on the web, a space is not one of those characters. But the code...
Forum:
General
07-12-2009, 12:26 PM
Replies:
11
Simple script fails with php5
Views:
819
Posted By
benton
Can no one see the reason for the failure in this...
Can no one see the reason for the failure in this code?
Forum:
General
07-01-2009, 03:03 AM
Replies:
6
Getting name of array
Views:
595
Posted By
benton
Thanks for the help. I was able to get it working...
Thanks for the help. I was able to get it working with the revised code.
Forum:
General
06-28-2009, 08:05 PM
Replies:
6
Getting name of array
Views:
595
Posted By
benton
That doesn't seem to do it but maybe I missing...
That doesn't seem to do it but maybe I missing sometihng obvious. It I run the above, the output is So it got the array name but not the contents of that array. I then thought to try this:
...
Forum:
General
06-28-2009, 02:26 AM
Replies:
6
Getting name of array
Views:
595
Posted By
benton
Getting name of array
Given a multi array like this Array
(
[warranty15] => Array
(
[id] => 15 year
[text] => 15 Years
)
[warranty20] => Array
(
Forum:
General
06-27-2009, 04:08 PM
Replies:
11
Simple script fails with php5
Views:
819
Posted By
benton
I tried echo ereg('php', 'elephpant', $match);...
I tried echo ereg('php', 'elephpant', $match); with both php versions and they both returned 3. To give a better idea of this problem, I created two sub-directories, one with php4 and one with php5...
Forum:
General
06-24-2009, 04:25 PM
Replies:
11
Simple script fails with php5
Views:
819
Posted By
benton
Thanks, but I don't understand your reply. Is...
Thanks, but I don't understand your reply. Is there something wrong with "<cite>(.*)</cite>"? It works find in php4. Does something need to be changed for it to work with php5?
The second if is...
Showing results 1 to 25 of 78
Page 1 of 4
1
2
3
>
Last
»
All times are GMT. The time now is
06:58 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