I'd like to print a variable's name in a procedure along with it's value
Is there a way to do this?
for example:
---
function showvar($somevar) {
echo Now showing: . ... code to show var name . .\n;
echo
Thanks Ryan,
but what I want is to be able to pass any variable to a procedure and
have the variable name and value printed by the procedure.
Can this be done?
I'm trying to extend my library of debugging functions/procedures by
having a procedure which can be used to inspect a variable
that works for me.I know it is messy
-Original Message-
From: Michael Sims [mailto:[EMAIL PROTECTED]
Sent: 05 May 2004 4:23 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Print a variable's name
Ahbaid Gaffoor wrote:
Thanks Ryan,
but what I want is to be able to pass any variable
That's the way I ended up going
pass the name and value along :)
Not what I was hoping for, but it gets the job done, and it's only for
debugging pruposes
thanks
Ahbaid.
Michal Migurski wrote:
but what I want is to be able to pass any variable to a procedure and
have the variable name
Someone had posted a tip for using an abbreviated form of an if.. else
structure...
It looked something like:
$x : action1 : action2;
I'm trying to shorten having to do the following:
if ($x) {
action1;
} else {
action 2;
}
can someone please post the syntax if they know it? I am reading
Yeah, but if my code is less readable, my job security goes up ;) (Kidding)
Thanks for all your help folks,
that's what I needed.
regards
Ahbaid
Richard Davey wrote:
Hello Ahbaid,
Tuesday, March 9, 2004, 11:42:21 PM, you wrote:
AG Someone had posted a tip for using an abbreviated form of
Yep, that was indeed the problem.
Many thanks for your help.
I just could not see that at all
regards
Ahbaid
Richard Davey wrote:
Hello Ahbaid,
Sunday, February 29, 2004, 6:33:45 AM, you wrote:
AG this uses a FORM with INPUT tags, what is weird is that under IE6 some
AG of the INPUT
I'm building a site using PHP for the navigation section of each page
and to to do the general page layout.
To this effect I have created php functions to structure the pages and I
fill in the static text specific to each page.
This all works.
I have now got to the point where I am doing a
My folding is setup to work based on a function to fold and unfold. I
have the function mapped to my spacebar, so pressing it while
in escape mode will either fold or unfold the code
Place this in your .vimrc and then you can use {{{ and }}} as your
start and end tags
there seems to be a lot of neat editors out
there, to each his own.
regards,
Ahbaid.
Jough Jeaux wrote:
Hmm, I'm currently a vim user also. You'll have to
elaborate on this folding and ctag business though...
--- Ahbaid Gaffoor [EMAIL PROTECTED] wrote:
vim - with folding and ctags
sweet
vim - with folding and ctags
sweet.
Ahbaid
Jough Jeaux wrote:
Was wondering what everyone's favortie IDE is for
coding in PHP. I've got a big PHP project in the
works. I'll be doing alot with it and am looking for
ways to boost my productivity.
--Jough
__
Do
I have written the first half of my application which stores images in
BLOB fields of an oracle database.
This part of my app. works fine.
I am now trying to download the database stored blob and display it in
my web page.
I am able to get the blob data into a variable called $blobdata.
If I
Thanks to all who helped with my earlier questions on pulling BLOB data
out of Oracle using PHP.
I am however finding that performance is slow when downloading huge
files from the database.
A typical 2Meg GIF file being downloaded from Oracle via. PHP is taking
about thirty seconds.
Beautiful,
many thanks
Ahbaid.
Martin Cameron wrote:
$ndays=14;
function get_next_dates($ndays)
{
$today=date(m-d-Y,mktime(0,0,0,date(m),date(d),date(Y)));
$forward_date=date(m-d-Y,mktime(0,0,0,date(m),date(d)+$few_days,date(Y)));
print h1$today === $few_days === $forward_date/h1;
Hello all,
I would like to create a php function as follows:
function get_next_dates($ndays) {
/*
1. get the current date
2. create an array say $results
3. Store the dates for the next $ndays in $results
*/
return $results
}
So in my main program I can include the file with
I'm running Oracle 9iAS on Linux,
does anyone know if it's possible to add PHP to it as a module?
Given that it's based on Apache?
are there any docs out there on how to do this?
thanks
Ahbaid
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Is there any utility that can be run against a php script to generate
documentation of the functions in that script?
Sort of like javadoc is for java code
thanks
Ahbaid
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you!
Just what I needed.
Ahbaid
Boyan Nedkov wrote:
http://phpdocu.sourceforge.net/
http://www.callowayprints.com/phpdoc/
http://sourceforge.net/projects/phpdocu/
http://www.stack.nl/~dimitri/doxygen/
Ahbaid Gaffoor wrote:
Is there any utility that can be run against a php script
Hello all,
when using AOL Server you can register a procedure against the server
and use this as your web page.
for example a procedure that prints Hello World as an HTML page name
helloproc
So if I call up http://server/helloproc the procedure serves up the page
to the client browser
Is
19 matches
Mail list logo