08-21-2011
Many thanks for all the replies. Just to clarify, with limited understanding of all the above:
What seems to be the general opinion is for php to be used server side and for js as browser side. However, it seems it is possibly more time efficient to use an application (which has made good use of these web development languages with ready made functions) and then to change/add any neccessary coding, dependent on requirements of the job or limitations of these applications with pre-built functions. Have i got that right in my head?
So i suppose when it comes to contracting any work out and finding a developer, i would need to check they have experience in applications that make use of PHP/JS (such as wordpress), but then are capable enough to write raw code in PHP/JS should i need my website to do something specific that wordpress can not offer. Have i got this right in my mind?
Also other than what we have been discussing above, can you please advise if i should be asking something else when it comes to choosing someone to work with on website development? Other than the obvious such as having a good rapport!
Thanks again for all your help
Maqsood
6 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
LINK
The Development of the C Language
http://cm.bell-labs.com/cm/cs/who/dmr/chist.html
By: Dennis M. Ritchie
Bell Labs/Lucent Technologies
Murray Hill, NJ 07974 USA
Paper History of C Language Development. B to C to BCPL (Ansi Standard). Check it out. This paper studies its evolution &... (0 Replies)
Discussion started by: killerserv
0 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am supposed to create the website to perform some monitoring and management activities on unix server.
Activities includes cpu usage,displays currently runing processes,deleting files on the server and so on.
Please tell which is best web based language(.net or java) to develop... (6 Replies)
Discussion started by: S_venkatesh
6 Replies
3. Programming
I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm asking... (1 Reply)
Discussion started by: Anna Hussie
1 Replies
4. Programming
I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm... (3 Replies)
Discussion started by: Anna Hussie
3 Replies
5. Web Development
I am just getting into web development and I want to understand it better and more theoretically. :D
So by now I can create some basic websites with html, css, php, etc, but what I do not understand is how is this then projected into the world wide web or what we call the internet??? Of course... (2 Replies)
Discussion started by: vas28r13
2 Replies
6. Web Development
Top 8 Web Development Trends 2019
https://www.youtube.com/watch?v=VLm3Y7Odb74 (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT PHP
debug_zval_dump
DEBUG_ZVAL_DUMP(3) 1 DEBUG_ZVAL_DUMP(3)
debug_zval_dump - Dumps a string representation of an internal zend value to output
SYNOPSIS
void debug_zval_dump (mixed $variable, [mixed $...])
DESCRIPTION
Dumps a string representation of an internal zend value to output.
PARAMETERS
o $variable
- The variable being evaluated.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
debug_zval_dump(3) example
<?php
$var1 = 'Hello World';
$var2 = '';
$var2 =& $var1;
debug_zval_dump(&$var1);
?>
The above example will output:
&string(11) "Hello World" refcount(3)
Note
Beware the refcount
The refcount value returned by this function is non-obvious in certain circumstances. For example, a developer might expect the
above example to indicate a refcount of 2. The third reference is created when actually calling debug_zval_dump(3).
This behavior is further compounded when a variable is not passed to debug_zval_dump(3) by reference. To illustrate, consider a
slightly modified version of the above example:
Example #2
<?php
$var1 = 'Hello World';
$var2 = '';
$var2 =& $var1;
debug_zval_dump($var1); // not passed by reference, this time
?>
The above example will output:
string(11) "Hello World" refcount(1)
Why refcount(1)? Because a copy of $var1 is being made, when the function is called.
This function becomes even more confusing when a variable with a refcount of 1 is passed (by copy/value):
Example #3
<?php
$var1 = 'Hello World';
debug_zval_dump($var1);
?>
The above example will output:
string(11) "Hello World" refcount(2)
A refcount of 2, here, is extremely non-obvious. Especially considering the above examples. So what's happening?
When a variable has a single reference (as did $var1 before it was used as an argument to debug_zval_dump(3)), PHP's engine opti-
mizes the manner in which it is passed to a function. Internally, PHP treats $var1 like a reference (in that the refcount is
increased for the scope of this function), with the caveat that if the passed reference happens to be written to, a copy is made,
but only at the moment of writing. This is known as "copy on write."
So, if debug_zval_dump(3) happened to write to its sole parameter (and it doesn't), then a copy would be made. Until then, the
parameter remains a reference, causing the refcount to be incremented to 2 for the scope of the function call.
SEE ALSO
var_dump(3), debug_backtrace(3), References Explained, References Explained (by Derick Rethans).
PHP Documentation Group DEBUG_ZVAL_DUMP(3)