|
More site info...
|
|
Forum profile page for Newbies on http://www.phpbuilder.com.
This report page is the aggregated overview from a single forum: Newbies, 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 "Newbies" 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 Newbies:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
68
|
203
|
640
|
|
Post:
|
179
|
593
|
1,861
|
|
|
Newbies Posting activity graph:
|
Top authors during last week:
user's latest post:
Calculate total from a form?
Published (2009-11-25 14:43:00)
for a start your form is wrong, the select options need values, or you will have no data to calculate.
user's latest post:
outside referrer redirect
Published (2009-11-25 17:26:00)
Yes, I tried $_SERVER['HTTP_REFERRER'] but I get it only from internal links for some strange reason. I tried to google for my domain name and then click on the link from google results but when I got to the page where I echoed referrer I could not see it. However when I clicked through from another page of mine I could get the referrer value...
user's latest post:
PHP show only first part of .txt...
Published (2009-11-23 07:49:00)
Yes. For example, you could use file () then display only the first few lines retrieved. Or you could read a small portion of the file and display just that part.
user's latest post:
help with sharing a header and...
Published (2009-11-22 06:21:00)
just put the file you want to inlcude in the same directory then use Code: <?php include('file.php');?>
user's latest post:
random key generator
Published (2009-11-22 13:31:00)
Of course, there's a possibility, especially as more values get used, that you could get a sequence of several duplicates while trying to generate one of these, resulting in several database queries.
user's latest post:
Trying to Use CSS Variables...
Published (2009-11-20 11:39:00)
Hi sneakyimp, Well you were right - there was something else going on. I copied your exact code and it worked - then I found the problem. this original code I copied from the web page: http://sperling.com/examples/pcss/ ... there were 3 invisible spaces after this line: echo <<<CSS SPACE SPACE SPACE which your code did not have. When I deleted the 3 spaces - all worked fine! Thanks again for your help!
user's latest post:
[RESOLVED] Site not working on...
Published (2009-11-24 20:00:00)
Quote: Originally Posted by dan2684 I guess my PHP code isn't as clean as I thought it was! Which is why you should have your development server setup such that display_errors is On and error_reporting is E_ALL (or even E_ALL | E_STRICT).
user's latest post:
Live preview of PHP?
Published (2009-11-21 23:02:00)
laserlight and Nogdog, Thank you for your very helpful replies. Installing a server has always sounded like a "big deal" to me, and something that only a very knowledgeable person would do. But perhaps it's not as complex as I have imagined. Your replies are reassuring. I used to be intimidated by my computer, and so I decided to build my own in order to overcome that. The build was a success, and I've felt much...
|
|
|
|
Latest active threads on Newbies::
Started 10 hours, 42 minutes ago (2009-11-26 17:26:00)
by teufelhounden91
Is there some place I can go to view the configuration settings of
phpMyAdmin, and reset everything maybe?
Started 2 days, 9 hours ago (2009-11-24 18:16:00)
by bradgrafelman
Quote:
Originally Posted by v2jtb
Every book I have bough seems to use Apache but as my website is hosted by Godady.com and I opted for the windows option as I know windows.
If you only ever stick to things you know, how will you ever learn something new and/or expand your knowledge in general?
Without starting a...
Started 20 hours, 16 minutes ago (2009-11-26 07:52:00)
by johanafm
Every request sent to the server will send all cookies that have been set for this domain, such as the sess_id cookie. So if you're users are logged in, you could for example do it like this.
css.php
PHP Code:
<?php
header ( 'content-type: text/css; charset=...' );
// start session. get user data from where it's stored: in $_SESSION, db, ...
?>...
Started 1 day, 21 hours ago (2009-11-25 06:33:00)
by rahulpatel
Loading Excel
I have half figured this out but the last bit is stumping me.
What I've been asked to do is sort some data in an Excel spreadsheet. I find it much easier to write SQLs in PHP/MySQL rather than VBA so I prefer to do it this way. In a folder there are 20 spreadsheets with one being added per week. I want to list the ...
Started 1 day, 6 hours ago (2009-11-25 21:28:00)
by bpat1434
The only difference I see is short-open tags versus long-open tags. Change <?= to <?php echo and see if that helps.
Started 1 day, 11 hours ago (2009-11-25 17:07:00)
by ixalmida
I'm assuming the conventional $_SERVER['HTTP_REFERRER'] won't work for you or you could just grab the domain.
Another thought is to check the referring link. This would work only if you are using relative links in your own site and all of your referring pages are limited to a particular folder. In my site, for example, all of the links for any admin function is the function name itself. ...
Started 2 days, 5 hours ago (2009-11-24 22:46:00)
by dagon
Started 3 days, 1 hour ago (2009-11-24 03:08:00)
by bradgrafelman
Well the logic flow is of course the same, and the PHP manual can help you with any syntax for the if () statement.
As for the cookie part, look into using isset () on the $_COOKIE superglobal array. More information about this array can be found here: reserved.variables.cookies .
__________________
***If your problem has been solved, ...
Started 2 days, 9 hours ago (2009-11-24 18:48:00)
by dan2684
For anyone who's interested - I put this at the top of my page:
PHP Code:
<?php error_reporting ( 0 ); ?>
I guess my PHP code isn't as clean as I thought it was!
Started 2 days, 13 hours ago (2009-11-24 14:44:00)
by Blessed
Parse error: syntax error, unexpected T_IF
Hello all pls I'm new to php and been battling with this error on my form for adding data to the database. The code is below, pls help.
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transition al.dtd...
|
|
Hot threads for last week on Newbies::
Started 4 days, 17 hours ago (2009-11-22 10:21:00)
by zzz
random key generator
I've been using a function that I've found that generates a random alpha key. It worked fine so far, until yesterday when it created a duplicate, which is no good. The function is below.
Why did it generate the duplicate?
What is the likelihood of this repeat again and
what modifications can be made to avoid ...
Started 6 days, 3 hours ago (2009-11-21 01:01:00)
by NogDog
You can install Apache/MySQL/PHP on your PC and test locally. Wampserver and XAMPP are two popular installation packages for doing so (WAMP for Windows, XAMPP for most platforms).
There are many different editors/IDEs out there that are useful for PHP coding, including many good free ones. If you search here on "editors" and "IDE" you should find many reviews/suggestions. (I currently use ...
Started 2 days, 9 hours ago (2009-11-24 18:16:00)
by bradgrafelman
Quote:
Originally Posted by v2jtb
Every book I have bough seems to use Apache but as my website is hosted by Godady.com and I opted for the windows option as I know windows.
If you only ever stick to things you know, how will you ever learn something new and/or expand your knowledge in general?
Without starting a...
Started 1 week ago (2009-11-19 20:18:00)
by sneakyimp
Have you checked the output of your php script to make sure it's valid CSS?
Started 6 days, 12 hours ago (2009-11-20 15:20:00)
by marcyjo
Can PHP copy output to a new (permanent) file?
I am reasonably certain this can be done but there's something about the concept that I'm missing.
I have a form into which data is entered and when the magic button is pressed, an action/output page is generated. That's exactly what I want to happen, but I need to complicate things a ...
Started 1 week, 1 day ago (2009-11-18 17:11:00)
by big.nerd
You can do this with both PHP & JS.
I am @ work so don't have time to write up an example, but you can programatically remove an element from the page using Javascript.
So under the validation it would remove blank items.
Although, I strongly recommend using PHP instead, as people, like me use script blockers and your JS code may not work.
Started 5 days, 18 hours ago (2009-11-21 09:21:00)
by zzz
[RESOLVED] remove values from string
I have a string of numeric ids in a comma separated format
PHP Code:
$IDs = 23 , 34 , 55 , 42 , 33 , 41 , 22 ... 6767 , 4556 ;
I also have a table that may have some values that should be removed from the string of IDs. How do I do ...
Started 1 day, 21 hours ago (2009-11-25 06:33:00)
by rahulpatel
Loading Excel
I have half figured this out but the last bit is stumping me.
What I've been asked to do is sort some data in an Excel spreadsheet. I find it much easier to write SQLs in PHP/MySQL rather than VBA so I prefer to do it this way. In a folder there are 20 spreadsheets with one being added per week. I want to list the ...
Started 1 week ago (2009-11-19 15:23:00)
by dagon
the problem of using a file when you should be using a db is you have to read and process then write the whole file, everytime
Started 1 week ago (2009-11-19 20:17:00)
by sneakyimp
Sounds like your PHP server is configured with magic_quotes on. magic_quotes is a setting left over from the old days and is meant to provide convenience but really is just annoying. Try and get your ISP to turn it off.
If you can't, you can remove magic quotes from $_POST thusly:
PHP Code:
if( get_magic_quotes_gpc ()) { foreach ( $_POST as $key => $...
|
|