|
More site info...
|
|
Forum profile page for PHP on http://www.webdeveloper.com.
This report page is the aggregated overview from a single forum: PHP, located on the Message Board at http://www.webdeveloper.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "PHP" on the Message Board at http://www.webdeveloper.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on PHP:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
121
|
499
|
1,462
|
|
Post:
|
359
|
1,649
|
4,565
|
|
|
PHP Posting activity graph:
|
Top authors during last week:
user's latest post:
PHP XML help
Published (2009-11-08 22:57:00)
You could look at the DOM XML functions or the XML Parser functions.
user's latest post:
calendar not working
Published (2009-11-06 12:26:00)
What "isn't working" about it? Are you getting an error or just unexpected behavior?
user's latest post:
Help - Including "if"...
Published (2009-11-02 01:43:00)
How do I include and "if" statement into an email $message. Example PHP Code: <?php $order01 = $_POST [ "order01" ]; $order02 = $_POST [ "order02" ]; $order03 = $_POST [ "order03" ]; if ( $order01 > 0 ) { echo " amount of $order01 <br />" ; } if ( $order02 > 0 ) {...
user's latest post:
Good SQL Injection and XSS...
Published (2009-11-05 14:35:00)
That some great advice. I was actually reading about that book last night on my iphone. It is currently an app you can by. Will look into it.
user's latest post:
Install script freakout
Published (2009-11-05 16:33:00)
I noticed the double quotation too and removed it. I change the content of the variables too so that it makes better source code, I though that was what I was doing Still have a lot to learn though Criterion I haven't learned about mysql_real_escape_string yet, I will have to read about it on w3schools tomorrow. The errors I receive is in english already except what I myself echo when the error occurs, which just says that an error...
themonkey40 Registered User
7
user's latest post:
Good SQL Injection and XSS...
Published (2009-11-05 14:35:00)
That some great advice. I was actually reading about that book last night on my iphone. It is currently an app you can by. Will look into it.
user's latest post:
New to PHP
Published (2009-11-08 10:23:00)
Quote: PHP is completely different to Javascript. It's much more object-oriented (at least, in later versions it is) and the syntax is different. More-so than that, PHP is a sever-side language, where Javascript is a client-side language.
user's latest post:
Notice: Undefined offset: 26
Published (2009-11-05 12:34:00)
So there is nothing jumping out other then the above laid out messages to anyone?
|
|
|
|
Latest active threads on PHP::
Started 1 day, 4 hours ago (2009-11-09 13:32:00)
by ssystems
Code:
$numbers = Pick3();
echo "<p>Numbers:<br />" . print_r($numbers) . "</p>";
Started 1 day, 4 hours ago (2009-11-09 13:24:00)
by ssystems
I have never encountered a problem that is not possible in ANY server side language (or at least there exist a work-around). So yes this is possible in PHP.
Started 2 months, 2 weeks ago (2009-08-27 23:41:00)
by NogDog
Most likely via URL rewriting at the web server level, converting the user name portion to a URL query string "name=value" pair. Then it would be available to the script as $_GET['name'], which would be used (after sanitizing and escaping) to query the DB to display the user's data.
In other words, the web server would rewrite "http://www.example.com/nogdog" to "http://www.example.com/index....
Started 2 days, 22 hours ago (2009-11-07 19:21:00)
by blue-eye-labs
I assume you mean that some sites change their content on a date-basis?
I've never seen a site which changes its layout completely simply based on the current date but you can easily get the date in PHP as you can in Javascript.
There wouldn't be much sense in using a database to do this, but just to rotate the CSS used depending, perhaps, on the day of the week.
PHP is completely ...
Started 2 days, 6 hours ago (2009-11-08 12:00:00)
by NogDog
SimpleXML requires PHP5.
If your web host will not support PHP5, I strongly suggest finding another, as PHP4 has not been supported at all (including security patches) for well over a year now.
Started 1 day, 21 hours ago (2009-11-08 20:10:00)
by aj_nsc
php.net is a big help ( http://www.php.net/define )
When you use the define function, you don't define a variable, you define a constant, so simply take the $ away from in front of $author_name in all parts of your script and it will work.
Started 5 days, 15 hours ago (2009-11-05 03:01:00)
by kaafmim
You are facing a funny problem! The first defined date is January 1, 1970. So what you receive, the day before the first defined date in php, means that the value of $row_blog['Bdate'] is -1 .
This means that mysql is returning an error while connecting the database, reading the entry, or something else. The sure thing is that the problem is in your database query, and not the date function...
Started 2 days, 1 hour ago (2009-11-08 16:11:00)
by themarty
You could do something like this ( untested)
PHP Code:
$str_entities = htmlentities ( $str );
$str_html = preg_replace ( "/(<)(.*)(>)/U" , "<\\2>" , $str_entities );
|
|
Hot threads for last week on PHP::
Started 1 week ago (2009-11-02 23:48:00)
by NogDog
Currently $row is going to be an integer, not an array, as it's the result of a mysql_num_rows(), not a mysql_fetch_*() function.
Not being totally sure what you want to accomplish, I'm not sure if you need any additional logic in there. If ecr_number field is defined as unique in the database table, you could skip most of that stuff and just do a single REPLACE query.
Started 6 days, 3 hours ago (2009-11-04 14:28:00)
by jasonahoule
It looks like you have 26 fields. PHP arrays are 0 based. Try changing $RECORD_LENGTH to 25.
Started 1 week, 1 day ago (2009-11-02 14:14:00)
by criterion9
Are you waiting past your expiration of the cookie? It looks like you have set the cookies to expire in 30min. Are you resetting the cookie with each page load or just the first time? If you only set it the first time then it will expire 30 min from the time the user logs in whether or not there is any activity.
Started 1 week ago (2009-11-02 22:23:00)
by OctoberWind
hyphens are not allowed in variable names. Switch it to an underscore.
PHP.net:Variables
Quote:
Originally Posted by php.net
Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular ...
Started 6 days, 5 hours ago (2009-11-04 12:09:00)
by lukaz
PHP Code:
for( $i = 0 ; $i <= /*your max int*/ ; $i ++){ $web_site_body = str_replace ( 'href="' . $i . '"' , /*whatever you want to replace with*/ , $web_site_body ); }
I think this would work.
Started 5 days, 6 hours ago (2009-11-05 11:08:00)
by NogDog
PHP Code:
$text = htmlentities ( $text , ENT_QUOTES , ' UTF-8' );
$text = "<p>" . preg_replace ( '/[]+/' , "</p></p>" , $text ) . "</p>" ;
Started 1 week ago (2009-11-03 12:16:00)
by caho caho is offline Registered User
Hi
I have a problem and thought I´d try asking about it here.
I have a page on one domain (A) that opens another page from another domain (B) in an iFrame. Before the page from A is opened the server is "pinged" with fsockopen. The pinging is used to make sure that the server is up and running, otherwise I redirect to another page.
This was the only solution I could think of at the time....
Started 1 week, 1 day ago (2009-11-01 19:21:00)
by hastx
Why are you getting unlink warnings. You said you are trying to upload. Are you trying to delete the photos?
You might want to post more of your code. The only reason for Unlink warnings is because you are trying to delete something that doesn't exist.
Started 5 days, 5 hours ago (2009-11-05 12:18:00)
by themonkey40 Registered User
I am doing a lot of CRUD (Create, Read, Update, Delete) on a site I am building for my company. I want to be sure and prevent both sql injection and XSS. I have been reading some books on the matter and found this bit of code. What do you think, good?
PHP Code:
<?php
$user = mysql_entities_fix_string ( $_POST [ 'user' ]);
$pass = mysql_entities_fix...
Started 6 days, 8 hours ago (2009-11-04 09:42:00)
by droomweb
not sure if you can do it via .htaccess but you can add / modify the following in your apache config:
Code:
<Ifmodule mod_ php5.c>
AddType application/x-httpd-php .php .php3 .php4 .php5
AddType application/x-httpd-php-source .phps
</IfModule>
--
visit my tech blog @ www.schuchlenz.com
|
|