|
More site info...
|
|
Forum profile page for Coding on http://www.phpbuilder.com.
This report page is the aggregated overview from a single forum: Coding, located on the Message Board at http://www.phpbuilder.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 "Coding" on the Message Board at http://www.phpbuilder.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 Coding:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
100
|
360
|
1,075
|
|
Post:
|
295
|
1,134
|
3,098
|
|
|
Coding Posting activity graph:
|
Top authors during last week:
user's latest post:
Regex help Please
Published (2009-11-08 18:19:00)
Typo on my part. that should be a $0. Also, you're chopping off the '['...']' on the ends, which breaks it. So the substr() needs to be adjusted to retain them. After all that array_chunk can be used to group elements in $data.
user's latest post:
NuSoap - where's my data...
Published (2009-11-06 07:16:00)
hmm, I thought it may be the complex array that was causing me problems, but turns out, even the simplest array falls over. I just don't understand why its so difficult to get anything out of nusoap. i must be missing something fundamental here. Look: PHP Code: require_once ( '../nusoap/lib/nusoap.php' ); $client = new nusoap_client ( "authenticate.wsdl" , 'wsdl' ); $response_doCanSearch = $client ->...
user's latest post:
[RESOLVED] ok.. i have no clue...
Published (2009-11-02 16:20:00)
I'm very appreciative of your help. And i now feel slightly more like a dolt. but thats okay because it's fixed. Thanks to all who took the time to respond.
user's latest post:
[RESOLVED] INclude and Require...
Published (2009-11-07 16:34:00)
You are including a file system path, not a HTTP URL, so it is treating the "?BBack=1" as part of the file name, not a URL query string. You can just include it without that part, and if it's not already in the $_GET array, then set before doing the include: PHP Code: $_GET [ 'BBack' ] = 1 ; include( '../includes/login.php' );
user's latest post:
Help.. For Loop !!
Published (2009-11-06 13:06:00)
Quote: Originally Posted by bradgrafelman Minor correctoin: the HTML element's name would be "tp[]" - no dollar sign. ahah true that, im le tired
user's latest post:
Parse Error: syntax error - Page...
Published (2009-11-08 20:34:00)
It helps immensely to use a good editor (search the Echo Lounge - there's been numerous discussions about which editor is better and why); one feature you should look for, for example, is an editor that can match up every [ and { to the corresponding (or missing) } and ] respectively.
user's latest post:
Parse error: syntax error,...
Published (2009-11-01 01:45:00)
Here is what I just copy & pasted. PHP Code: <?php /* $Id: information.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //-->...
user's latest post:
OR Statement within a string?
Published (2009-11-04 20:19:00)
Perhaps you should redesign that function's interface so you can pass an array of strings instead.
|
|
|
|
Latest active threads on Coding::
Started 15 hours, 35 minutes ago (2009-11-09 09:27:00)
by JVassie
Hmm, think I fixed it by replacing \d* with \d+
New code:
PHP Code:
// Battleships
if( preg_match ( "/Battleship\s*\d*/i" , $string , $output ))
{
$output = preg_replace ( "/\s*/" , "" , $output [ 0 ]);
preg_match ( "/\d+/" , $output , $output );
echo 'Number of Battleships: <b...
Started 15 hours, 55 minutes ago (2009-11-09 09:07:00)
by NogDog
I'd start by verifying that the $data array has the expected values
(var_dump(), perhaps). If not, then work backwards from there to figure out
why. If $data looks OK, then we'll probably have to see the query_insert()
method.
Started 2 years, 1 month ago (2007-10-10 21:12:00)
by sobuj
Hi guys
I am looking for exactly the same thing, a way to convert and upload using ffmpeg. I found this thread by searching, and thought it would better if I ask my question by replying to this one, since the subject matter is the same.
Would greatly appreciate if someone can help. I have searched a lot and could not find even a single example / tutorials that work.
Thanks again...
Started 1 week ago (2009-11-02 20:21:00)
by NogDog
I don't think you want to negate ("!") the preg_match(), as you want the if condition to be true if it finds anything that is not a 0-9, correct?
Started 23 hours, 55 minutes ago (2009-11-09 01:07:00)
by laserlight
hmm... I thought that there was an array_union, but apparently not. Still, you could use:
PHP Code:
<?php $array1 = array( 'value1' , 'value2' , 'value3' ,); $array2 = array( 'value4' , 'value2' , 'value1' ); $array3 = array_merge ( $array1 , array_diff ( $array2 , $array1 )); print_r ( $array3 );
Started 1 day, 1 hour ago (2009-11-08 23:41:00)
by sgray
By the way, I have been using this to list them, unsorted...
PHP Code:
foreach ( $shows as $current_show => $value ) {
echo "" . $shows [ $current_show ][ "current_episode" ]. " - " . $shows [ $current_show ][ "current_name" ]. "" ;
}
It seems a bit icky..
Started 4 days, 3 hours ago (2009-11-05 21:39:00)
by NogDog
First problem I see is that you are anchoring your regexp to the beginning ("^") and end ("$") of the string, so you need to remove those anchor characters. Also, you don't account for spaces in the contents between the quotes. A simpler way might be to just match on any non-quote:
Code:
'/program:"[^"]"/'
(Quoting the regexp in single quotes will then allow you to use double quotes...
Started 1 day, 6 hours ago (2009-11-08 18:58:00)
by dagon
the code looks insane to me, what are you actully trying to achieve?
|
|
Hot threads for last week on Coding::
Started 1 week, 1 day ago (2009-11-02 00:34:00)
by dariuc
[RESOLVED] ok.. i have no clue why so i need some help.
i did about 5-6 hours of tinkering and error checking on a piece of code and i've eliminated everything i can think of.
PHP Code:
function inflictAil ()
{
if( $currentprop == "serrated" )
{
echo "hi" ;
}
} //end funct...
Started 6 days, 13 hours ago (2009-11-03 11:19:00)
by scrupul0us
wouldnt it just be easier in apache to set the network access level on a
file that includes that if/else code... if the user's IP/HOST doesnt pass
the test the include will fail and you can handle that within PHP easily
Started 1 week, 1 day ago (2009-11-01 09:26:00)
by emkay
Having trouble with MySQL Queries!
I've managed to get the user registration module working perfectly, but I'm having some more trouble with my login authentication queries:
PHP Code:
$sql = "SELECT * FROM `users` WHERE email = '$email' AND password = '$encrypt_pass' " ;
$result = mysqli_query...
Started 1 week ago (2009-11-02 11:44:00)
by jexx
Help.. For Loop !!
I'm trying to use a for loop to save me writing the same code 10 times !!
This is what I have :
Code:
<? $s=array('existing'=>'Exisiting','new'=>'New');
function create_select($fields,$name,$selected= ''){
$field= '<select name="'.$name.'" id="'.$name.'" disabled>';
foreach($fields as $key=>$...
Started 4 days, 3 hours ago (2009-11-05 21:39:00)
by NogDog
First problem I see is that you are anchoring your regexp to the beginning ("^") and end ("$") of the string, so you need to remove those anchor characters. Also, you don't account for spaces in the contents between the quotes. A simpler way might be to just match on any non-quote:
Code:
'/program:"[^"]"/'
(Quoting the regexp in single quotes will then allow you to use double quotes...
Started 5 days, 21 hours ago (2009-11-04 03:13:00)
by toxic_brain
Quote:
Its not quite right
Quote:
I think my coding is wrong.
Please mention what is the expected result and the actual result.
Started 1 week, 1 day ago (2009-11-01 11:54:00)
by spikenology
how to bold, email and web links in mysql query results in table
have a simple membership database in mysql. Running a query, and displaying results on a page to show active members.
Need some simple assistance - I want to bold the names, and make the email address links (- mailto: etc.), and make links to folks web sites, if present....
Started 1 week, 2 days ago (2009-11-01 00:39:00)
by Lowryder1
Parse error: syntax error, unexpected ')'
I keep getting this error message...
Parse error: syntax error, unexpected ')' in /public_html/includes/boxes/information.php on line 28
Where is the unexpected ')'
Thanks in advance.
PHP Code:
<?php
/*
$Id: information.php 1739 2007-12-20 00:52:...
Started 4 days, 1 hour ago (2009-11-05 23:13:00)
by dagon
you don't run a query from a db, so im not sure what you are asking.
to query a db on another server you just specify its ip in the connection
Started 1 week ago (2009-11-02 20:21:00)
by NogDog
I don't think you want to negate ("!") the preg_match(), as you want the if condition to be true if it finds anything that is not a 0-9, correct?
|
|