Also, you could use print_r($obj);
to look at everything in the class, with arrays already expanded for you.
http://www.php.net/manual/en/function.print-r.php
jerome
>From: Marty McGowan <[EMAIL PROTECTED]>
>
>PHPers,
> In a genaology application, where I add individuals to
>an array:
>
CGI.referrer? are you a foxweb user? :-)
you can use $_SERVER['REQUEST_URI'] for the page itself, plus (i think...)
$_SERVER['SERVER_NAME'] if you need the hostname (of the server), too.
check out
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server
jerome
>From:
http://www.php.net/manual/en/function.mssql-connect.php
>From: "Skyhawk" <[EMAIL PROTECTED]>
>Please, How do I make to access a database Sql Server 2000?
>
>
>Thaks
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
___
Ditto on all that for me. use apache. the instructions on how to get them
working together are good as long as you are diligent about reading *every*
word. no half-ass instruction following will do. mysql is just as easy to
set up, and you have to do *zero* configuration of php to get it wo
http://www.php.net/manual/en/function.ord.php
Original Message Follows
From: "James Drabb" <[EMAIL PROTECTED]>
Hey *,
In C I can cast a char 'j' to an int and get it's ascii value. Is there a
funciton in PHP
to do this with a string containing a single char (i.e. "j")? I could writ
Hi,
>I am interested in setting up PHP on my web server. I have a RH 7.3 Linux
>server that is running apache v1.3.19 with Frontpage v5.0 extensions. Will
>the installation of PHP affect my current server...meaning will it kill
>anything (web server stop working). I just don't want to start a
morgan-
is there any way you can have those img tags (the ones with the height and
width) changed to reference a php script? you could write a script that
reads in the image they're requesting, and takes a height and width as
inputs, then uses php commands like imagecopyresampled() or
imageco
Is there a particular reason everyone is skipping over the idea of using
XML/XSLT? What you're talking about is EXACTLY what XSLT was designed for.
You can write scripts that access the DB, and output XML. Then you just use
XSL files written by your designers to translate your XML into HTML.
there's a couple problems with your question:
we don't know what tool you're using,
what database you're you're using,
and most importantly,
this is not a PHP question.
please use a hammer for a nail, and a screwdriver for a screw.
thanks.
>From: "Anil Garg" <[EMAIL PROTECTED]>
>Hi,
>for vi
I've used both fopen() and the CURL libraries...
> > I need to grab some data from a CGI program running on a different
> > server. I have been toying around executing LYNX using the passthru
> > command. I seem to be able to grab the data just fine using "lynx
> > -source -preparsed $URL".
If I could elaborate on colin's explanation
Mainly so that there is a fairly recent one of these in the archives
(not that anybody searches them :-)
Like miguel said encryption in an HTTP request/response pair is determined
by your browser.
if the browser is making a request, and it sees an
Ah, miguel
good to have you back.
I missed your lovingly superior painstaking attention to detail :-)
jerome
>From: Miguel Cruz <[EMAIL PROTECTED]>
> > if the browser is making a request, and it sees an https:// at the
>beginning
> > of the request URL, it will :
> > 1. get the domain's pu
oh, mucho disagree-o.
i dunno, maybe the people who say that it will slow you down have HUGE
projects, and HUGE classes with hundreds of member variables, but i use OO
for all the DB interactions (i have a class with get, update, insert, delete
methods, etc. for each table) and i think it work
martin-
you're totally right except for one thing
>$count=1;
>while($query_data = mysql_fetch_array($result))
>{
> $price = $query_data["price_lq"];
> $RowColor = useColor();
> // current echo statements here
>}
>$count++;
this code will give him the exact same problem. the
$count++;
Hi,
i'm working on a win2k server running php 4.1.1 accessing MSSQL server 2000
on a win2k server.
i've got a problem with a table that has 'real' numbers in it.
codeinventory name
PRC01 2.33 Prince Brand Chips
FCA13 9.934E-2 Frozen Calamari
when i
mssql_query("se
pened.
thanks once again, everyone.
jerome
>From: "Mullin, Reginald" <[EMAIL PROTECTED]>
>To: 'Jerome Houston' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: MSSQL 2000's 'real' type kills php
>Date: Tue, 14 May 200
hi-
it is not REQUIRED for variables to be initialized in PHP, but if your error
reporting is on too high, it will tell you, just to make sure you know. to
turn your error reporting to a different level, you can change your php.ini:
http://www.php.net/manual/en/configuration.php#ini.error-rep
http://www.php.net/manual/en/language.types.array.php
An array in PHP is actually an ordered map. A map is a type that maps values
to keys.
we're not working with C where each array value is right next to each other
in memory. it's an abstraction that does the job intelligently, but gives
yah, there's a function. (isn't there almost always?)
http://www.php.net/manual/en/function.array-values.php
it gives you a numerically indexed array of all the values in your current
array, associative or not.
-j
Original Message Follows
From: "1LT John W. Holmes" <[EMAIL PROTECTED]
one REALLY notable advantage is:
if you us ob_*() functions, instead of writing HTML pages with php tags
inserted, you can write XML pages with PHP tags inserted. then after you're
done, you can pass the contents of the output buffer to an XSLT processer
like sablotron, THEN outputting an HTM
yeah, just find in your web server where to tell it what kind of files to
send through php.
there are also possible good reasons for sending .html files through php.
like if you don't want users to know that your website is written in php.
-jerome
Original Message Follows
From: Just
This isn't a php question, which is why you aren't getting any answers...
there are many ways to go about this. with cybercash and payflow, and all
other payment gateways, you DO need a merchant account. specifically, a
merchant account that is compatible with the payment gateway you're trying
Testimonial time!
Despite ROCK STAR assistance from a PHP developer, I'm having troubles with
mssql_*() functions. most of the problems are gone (or being fixed by some
AWESOME people), but to make use of those fixes, i've got to use php v
4.3-dev. and there's other bugs in that (as there sh
Looks good Tim.
if you're going to do it this way, make sure register_globals is set on in
your php.ini. also you check isset($srch) AND strlen(trim($srch)). in most
cases, both checks won't be necessary. unless you have high error
reporting, and php will complain if you check a variable th
While Natalie's solution is a valid one, i have another
first - the error you're getting is because the headers are sent AS SOON as
you echo, print or output html outside of your tags. you're echoing
something before you call ob_start();
second- the reason this doesn't work, is because yo
go to:
http://www.php.net/manual/en/configuration.php
and look for "auto_prepend_file"
-jerome
Original Message Follows
From: "Darren Gates" <[EMAIL PROTECTED]>
Reply-To: "Darren Gates" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] including functions on every php page in a s
26 matches
Mail list logo