I need to somehow enable PHP on my unix server to connect to SQL Server 2000,
running on a Windows machine on the same network. I have been unsuccessful
in all attempts. Has anybody ever done this?
'Extreme gratitude' would not sufficiently express my feelings if I could
find a way...
--
Hey guys,
I got my uploads to work thanks to some peoples help here in this
newsgroup but now im having a problem with the files beeing corrupted
upon upload. not sure why any help would be greatly apreciated.
I have included my code again if it helps any.
The problem is in that you do global only for $ImageFile, but not for $ImageFile_name.
Big flaw is that if someone make a form
FORM ACTION=?php $SCRIPT_NAME ? Method=Post
ENCTYPE=multipart/form-data
INPUT TYPE=hidden name=MAX_FILE_SIZE value=100
Input Type=text Name=ImageFile__name
Hi
On Tue, Nov 27, 2001 at 04:08:39PM +0200, Christos Sintoris wrote:
Does anybody know how to call ldap_set_option in order to use server side
sorting?
using:
$sortval={'cn', 0,1};
$ctrl1 = array(oid = 1.2.840.113556.1.4.473, value =$sortval);
ldap_set_option($ds,
the funny thing is this
the information is beeing inserted into the database... the file is beeing
uploaded (as i can see it in the directory). I can get results from
$ImageFile
$ImageFile_name
$ImageFile_size
but i cant get a result for $ImageFile_type this comes up blank
there is
If you have GD extension build in your PHP use it to find the type(if you are limited
ot jpeg/gif/png files).
I want to say again that the using of $ImageFile* is a possible security hole.
Regards,
Andrey Hristov
- Original Message -
From: Ryan Stephens [EMAIL PROTECTED]
To: [EMAIL
On Wed, Nov 28, 2001 at 03:08:52PM +0930, [EMAIL PROTECTED] wrote:
Hi All-
Can anyone tell me if PHP's LDAP functions support server side sorting of
search results as defined in this RFC:
http://www.ietf.org/rfc/rfc2891.txt
Not currently, maybe it will... Depends on how many wants it.
You can do it only in few lines of code with a recursive function... You
can display full tree structure with unlimited levels.
Mysql Table :
cid int,
parent int,
Name varchar
Cid parent varchar
1 0 A
2 1 C
3 0 B
4 1 D
5 2 E
6
As I showed by this :
FORM ACTION=http://your.domain.com/your.script.php; Method=Post
ENCTYPE=multipart/form-data
Input Type=text Name=ImageFile_name value=../../../../etc/passwd
Input Type=Submit Name=Submit
/FORM
I can write this in a simple html, press the submit button and instead of file
you can use the MySql's function:
DATE_ADD(datefield, INTERVAL 3 MONTH)
Mindhunter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I am reading a date from an input in format 'DD-MM-' ex. 10-11-2001.
Now I want to add 3 months to the date. I have
Hy,
I'm writing a class for POP3 access and I want some of the internal
functions to be private, like the mime decoding stuff.
Is there any way to do this? I found nothing in the docs :(
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I'm writing a class for POP3 access and I want some of the internal
functions to be private, like the mime decoding stuff.
Is there any way to do this? I found nothing in the docs :(
Unfortunately, PHP does not understand terms private, public, protected...
PHP coders adopted a coding
If I use include_once() to include these files in main.php:
main.php
-
include_once('lib.php');
include_once('service.php');
-
And file service.php also has a line in it:
service.php
--
include_once('lib.php');
--
Will lib.php get included twice or only _once()
Hi there!
I got the following problem:
I want to mirror a complete directory tree. Now I traverse
the original tree, do changes to some of the files and want to
write the resulting files to a parallel directory.
Lets say $INPUT_PATH is the source path and $OUTPUT_PATH is
where I want to put
There is something like RFC on this URL :http://www.zend.com/engine2/ZendEngine-2.0.pdf
What is supposed to be new in Zend Engine 2.0 . private members, and other things.
But now everything is public. Why? Because every variable in PHP is zval (zend
value).PHP is built on the top of Zend using
Try with
in lib.php
define(__LIB_PHP__,1);
in service.php:
define(__SERVICE_PHP__',1);
if (!__LIB_PHP__){
require('lib.php');
}
__might__ this help
Regards,
Andrey Hristov
- Original Message -
From: Roko Roic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 28,
Never tried it though:
learn to use (L|U)nix's TAR command, and then execute it from your PHP
script with options that allow TAR to recurse into directories and stuff.
then copy that TARed file from source dir to dest. dir, and then untar it
back again.
good luck.
Christoph Starkmann [EMAIL
May be your httpd is running under nobody.nobody but the owner of the htdocs dir, or
wherever are running your php scripts is owned
by someone else.
Regards,
Andrey Hristov
- Original Message -
From: Christoph Starkmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November
in lib.php
define(__LIB_PHP__,1);
in service.php:
define(__SERVICE_PHP__',1);
if (!__LIB_PHP__){
require('lib.php');
I am not sure I was clear enough.
I _want_ those include_once('lib.php') statements to be in service.php,
because service.php could get included from a file other than
include_once(). Does it get included TWICE?
By it, I mean lib.php.
Sorry
Roko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
From what I've read the new PHP printer functions look like they do
exactly what I want. Unfortunately they only run on windows. Wonder if
this will ever be available to all OS.
For now I've got a lot of good ideas from everyone, and I'm on my way to
'having fun'.
Thanks loads to
Here's an example code I use
?
// print the current directory in unordered list
print(UL\n);
// get each entry within the directory return to user with the
link
$myDirectory = dir(.);
while($entryName = $myDirectory-read())
{
if
Hi all.
I have a script that indexes html files within a directory. The files are
created using the date time stamps by another script what I'm looking to
do is somehow create a preview panel for the message which would read the
2nd to the 4th line disply it under the filename so as to
Roko Roic wrote:
If I use include_once() to include these files in main.php:
main.php
-
include_once('lib.php');
include_once('service.php');
-
And file service.php also has a line in it:
service.php
--
include_once('lib.php');
--
Will lib.php
Here is my PHPCommander 1000bytes
?php
var_dump($HTTP_POST_VARS);
if (@!$HTTP_POST_VARS['dir']) $HTTP_POST_VARS['dir']='./';
if (is_dir($HTTP_POST_VARS['dir'])){
echo 'form method=post action='.$PHP_SELF.' name=ok';
echo input type='hidden' name='dir' value='.$HTTP_POST_VARS['dir'].'/form;
if
Warning
Unable to process data:
multipart/related; type=multipart/alternative; boundary=_ABC1234567890DEF_
At 05:17 PM 11/27/01 -0500, MM wrote
I am a newbie running 4.06 on PWS in Win 98. Any sample script about
sessions I can find just hangs in Personal Web Server. Session id gets
created in data file but nothing happens on the page.
Has anyone come across this? Have searched on Google and
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 5:03 PM
To: Grimes, Dean
Cc: 'Dan Koken'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Printing Reports
Have you been able to bypass the dialog box? That is, send the file
directly to the
Hello,
I'm trying to generate address labels on a pdf sheet. If I use a method of
'GET' for my form, it works fine. However, if I use 'POST', I just get what
seems like a blank white pdf. It does the same in either Netscape 4.7 or IE
6.
Any ideas?
PHP v. 4.0.6
PDFLib 4.0.1
Thanks.
--
Dominic
Server side sorting is useful when network traffic costs more than
processing time.
The server side sorting control in conjunction with the virtual list
view control returns only a subset of entries to the client.
In the PHP Manual is stated that is possible to set ldap controls using
the
Hi All,
Is there anyplace I can get a win32 PHP binary with LDAP enabled? If not,
can I create one myself?
Any info would be greatly appreciated.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
OK I have a problem with a script that is occasionally timing out. Of course
I could just increase the timeout but that is not the answer completly. The
script connects to a server through sockets. The server then connects to
another server to do a credit card authorisation. The server then
Answered my own question.
Thanks anyway.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi!
I have been using ASP for some time, and now I am beginning with PHP. I
would like to know which
are the main differences between both languages. I'd appreciate if you can
give the advantages and disadvantages
of both languages.
Thanks
Luis Espinosa
--
PHP General Mailing List
On Wed, Nov 28, 2001 at 05:26:22PM +0200, Christos Sintoris wrote:
Server side sorting is useful when network traffic costs more than
processing time.
Yes, there are some exceptions.
The server side sorting control in conjunction with the virtual list
view control returns only a subset
Hey All!
I might have a prospective client for someone local to the Cinci area.
Being up in Wisconsin I'm just not really able to fully help him out. There
will be some onsite work, so I'm out. Here's what he's looking for:
Skills:
NT Server setup
Xitami
PHP4
MySQL
Experience with a web
Hello,
Please make searchs in the archives of this newsgroup as this was discussed
many many times before.
The bottom line is always that both language are valuable and will do the
job. But PHP
will do the job on both MS and Linux, Unix, *BSD... That in itself is the
biggest Yippers for PHP ;)
Sorry for the duplicate post. I didn't know that. I'll search for other
similar posts.
Thank you
Py [EMAIL PROTECTED] wrote in message
035e01c17825$ac820610$0100a8c0@py">news:035e01c17825$ac820610$0100a8c0@py...
Hello,
Please make searchs in the archives of this newsgroup as this was
I have a submission form distributed over 5 pages. When the user hits the
back button in the browser on one of the pages to make changes on a
previous page, all fields are emptied. This is only when I have a session
running. When I use the same pages without the session, the data stays in
the
Register the submited vars values on a session and echo them inside the
value= part (or similar behavior, selected, checked, etc...) of your form
fields.
--
Julio Nobrega
No matter where you go, this.
Zavier Sheran [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
I need to take a file, similar to this and strip it of everything but this, and write
it to a
database. Are there any thoughts on how to get the information out, all the files are
consistent.
!-- start strip --
Race Final Watkins Glen International
2.450
I had something like this to do a couple of months back, unfortunately, my
code was deleted by someone smart in my office. But i can pretty much
remember the algorithim behind it.
What I done was read in my file into a buffer, then use the explode function,
i think, or something like it,
You could read the file in with file(), which will give you each line as an
array. Then, depending on how those strings are separated (are they by
tabs, or is it just whitespace?), use strtok() to tokenize each line. If
they are by space, not tab, but you know the column width, then you can
Are there any debugging techniques for PHP4 *other* than adding lines to
print where you are and variable values, et cetera?
PHP3 used to send debugging information to a port, for example.
(I have looked, expecting this to be a FAQ, but couldn't find the answer
anywhere.)
--
Dr. Ian McDonald
A fellow wannabe Winston Cup driver :)
I'm thinking about setting a switch on $mode, which will change what it
does based on the value of $mode. Something like this:
$mode = 1; // 1 for stripping text, 2 for adding driver results, 3 for
adding race results
$file = file('/path/to/filename');
I got a web site with php pages, I was working in Apache. Now I have
installed IIS and Windows2000 and I want to run my web site in this
platform. I have installed php like cgi and it works ok. But I got some
errors accessing some php pages i.e. session_start() function.
Is there a
Can some one explain how to write file php in the apache module version
of php ?
I don't want to make the directories world writable, or writable by web
clients. How is this accomplished.
Sorry if the is a really newbie question.
Michael Blower
[EMAIL PROTECTED]
[EMAIL PROTECTED]
707 468
Hello,
I think the following document will solve your problem :
http://www.php.net/manual/en/function.session-save-path.php
If you don't wanna read just try:
session_save_path(C:\\Winnt\\Temp);
Ali Pakkan
E-Mail: [EMAIL PROTECTED]
Gsm: +90542 3268742
On Wed, 28 Nov 2001, William
Hi people,
I´m looking for alternatives in using zip files. Our users should upload into our
server zipped files and we need to unzip this files and process it. I have read there
is a library that could be used like an extension, but I´ve tried to use it from NT
and don´t seems like the
This is something I have been battling with for ages.
I finally decided on just setting up a system that saves the files to a
world-writeable temp directory, then uploads them via FTP.
If anyone has a better solution, I would *love* to hear it.
Mike
Michael Blower wrote:
Can some one
Ahh I see. Thanks! :)
Mike
Andrey wrote:
Already known. 4.1.0 is 4.1.0RC3 .
Final tests are in progress.
Regards,
Andrey Hristov
- Original Message -
From: Mike Eheler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 7:56 PM
Subject: [PHP] PHP 4.1 out?
Hello Mike,
PHP 4.1.0 is NOT out yet. You pointed a lot of people to a build that may
_not_ be bug free. The release is NOT out of QA yet. The release is only
official if it is announced on the website.
Derick Rethans
The PHP QA Team
On Wed, 28 Nov 2001, Richard Heyes wrote:
Mike Eheler
I got that, Why it could be?
Fatal error: Cannot redeclare reporte_llamada() in
c:\Inetpub\wwwroot\online\includes\funciones.php on line 4
and the code for reporte_llamada()in ...\funciones.phpis :
function reporte_llamada ($telefono,$folio,$fecha_ini,$fecha_fin, $tipo) {
Hi guys.
I can't find an answer at PHP-WIN maillist. So I
forward the email here. Wish someone will help me.
Thanks a lot.
==
Thank you for your suggestion. But it doesn't work.
The line
$VusersArray = $Vusers-Next($Vusers-{'Count'});
doesn't
I have a global variable
$socket_open = fsockopen($pop_server, 110, $errno, $errstr, 60 );
then I define the function:
130 function get_line {
131 $buffer = fgets($socket_open,500);
132 $buffer = eregi_replace((\r|\n),,$buffer);
133 return $buffer;
134 }
Here I've got the prob - it
Hello,
Another thing, php 4.1.0 is NOT 4.1.0 RC3
Derick Rethans
The PHP QA Team
Mike Eheler [EMAIL PROTECTED] scrawled:
Try it:
http://www.php.net/distributions/php-4.1.0.tar.gz
No word on the website, though.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
This error indicates that the code declaring the function is in the code
more than one time. You can only have the function declaration once. If
you are including the funciones.php in another script, make sure that it is
only included once. If it is included more than once it will give you
Global variables are not really global in php because they are not available
from within functions unless you specifically declare them as global. This
should work:
130 function get_line {
131 global $socket_open;
132 $buffer = fgets($socket_open,500);
133 $buffer =
So, I was thinking about _pconnect and friends last night in a multi-host ISP-type
environment.
Assume there are 100 Apache children, and that each of 20 clients with db access has a
different MySQL username/password for login.
Does that mean that under worst-case analysis, there should be 20
I hope this is the right place to ask this.
How can you use mktime() to store a date in integer format that is 2040?
We are archiving material, some of which is closed for a set period if
time (e.g. 40 years, 50 years, etc.)
--
Never retreat. Never surrender. Never cut a deal with a dragon.
(Sorry, may be a duplicate posting...)
I hope this is the right place to ask this.
How can you use mktime() to store a date in integer format that is 2040?
We are archiving material, some of which is closed for a set period if
time (e.g. 40 years, 50 years, etc.)
--
Never retreat. Never
Maybe You should try multiplying two date values? :)
JL I hope this is the right place to ask this.
JL How can you use mktime() to store a date in integer format that is 2040?
JL We are archiving material, some of which is closed for a set period if
JL time (e.g. 40 years, 50 years, etc.)
Hello everyone,
I have an array that holds some HTML code in each item, I shuffle this array
and then output item[0] so that it is a random item chosen each page view.
But, when it's outputted, it is commented out! The code I have isn't
commented so I don't know why this is happening. It seems
Under Bill 1618 TITLE III passed by the 105th U.S. Congress, This
letter
cannot be considered Spam as long as we include: Contact information
a Remove Link. If not interested in the services offered,
To be removed from future mailings just reply with 'REMOVE' in the
subject line. Your
And for a good reason. Please don't publish such URLs in the future...
Zeev
At 18:56 28/11/2001, Mike Eheler wrote:
Try it:
http://www.php.net/distributions/php-4.1.0.tar.gz
No word on the website, though.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Save the queries on different files, one for each query. Then make a
script that will read all these files and execute the queries, maybe run it
as a cron job, and delete the succesful ones . With several files will be
easier to spot an error if occur, just open it and see the query.
Okay,
Mind if I ask why? I do have a few ideas, but I feel I am terribly wrong
about them :-)
--
Julio Nobrega
No matter where you go, this.
Zeev Suraski [EMAIL PROTECTED] wrote in message
5.1.0.14.2.20011128204245.01e71090@localhost">news:5.1.0.14.2.20011128204245.01e71090@localhost...
And for
There were some last minute issues that required further testing...
Zeev
At 20:53 28/11/2001, Julio Nobrega Trabalhando wrote:
Mind if I ask why? I do have a few ideas, but I feel I am terribly wrong
about them :-)
--
Julio Nobrega
No matter where you go, this.
Zeev Suraski [EMAIL
I figured i would post my solution to the problem that i found somewhere. It
had nothing to do with anything i was doing. Its a bug in some versions of
PHP.
here is the function i had to use to fix this
function fix_php_upload_bug($tmp){
$infile=fopen($tmp,r); // Open the file for the copy
I got this error:
Fatal error: Call to undefined function: ocilogon() in
C:\Inetpub\wwwroot\online\classes\class.Telefono.php on line 19
Why it could be?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Interesting.
I'll hold off, but people will still try stuff like that. I'm not trying
to tell ya what to do, but I've found it best never to put files with
release-names in their primary download spots, regardless of how hidden
they may seem, until your absolutely positive that will be the
On Wednesday 28 November 2001 01:03 pm, Mike Eheler wrote:
I'll hold off, but people will still try stuff like that. I'm not trying
to tell ya what to do, but I've found it best never to put files with
release-names in their primary download spots, regardless of how hidden
they may seem,
I understand what you are saying. Let's go further for the different tables
privilege, if I have Select privilege on table A, and Delete privilege on
table B of Database mydatabase, how can the built-in privilege tables to
check on this problem since the mysql_connect doesn't include the client
Basically, you don't log on to mysql through the internet browser.
You are using the internet browser only to request a file that is on a
web server. The web server is handing the request to PHP, and PHP is
accessing the MySQL database. PHP is accessing MySQL as whatever host
and user has
Removal Instructions are at the end of this letter. Thank you.
FREE Non-Surgical Face Lift in a Bottle!
You Can Look 5-10 Years Younger
with One 30 Minute Application in the
Comfort of Your Own Home!
AND YOU CAN...
Become Rich through Giving Away
Free Samples of Our Life Enhancing
http://www.php.net/stripslashes
... in short they are there to ease db insertions.
On Wed, Nov 28, 2001 at 05:23:02PM -0500, Brian V Bonini wrote:
I'm passing an html email from a form
like this:
$message = $message_html;
where message_html is the text area name.
mail($to, $subject,
You could use whatever OCI function returns the number of rows returned
and then keep a counter or you could do it this way:
while(OCIFetchInto ($curs, $data)) {
# do normal stuff for *ALL* rows
}
# do some stuff with $data which now contains the last row.
-philip
On Wed, 28 Nov 2001,
I believe there's no row count function for oci, so could you change the
logic to:
while(OCIFetchInto ($curs, $data)) {
// normal code here
}
if($isLastRecord)
// do something
??
Martin
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November
The browser has no direct connection to MySQL, so you are correct --
those privilege tables are not helping to check on the privileges if
the client is from browser.
I find this a bit misleading. The privilege tables still work exactly as
they are intended.
That is, they check for a valid
Hello Hank,
Wednesday, November 28, 2001, 11:11:38 PM, you've written:
HM http://www.php.net/stripslashes
HM ... in short they are there to ease db insertions.
Turn off magic quotes or use stripslashes().
:)
Ivan 'Faeton aka xetrix' Danishevsky
Well, the big difference is that people who try out stuff like that are
usually aware of the fact that they may very well be downloading something
bogus. However, when you paste a URL that is typically a click away from a
download with today's mailers, it goes to a much broader and
thanks guys it would have taken me forever to discover your tips.
Yoed Anis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey Guys,
I'm having a trouble I can't seem to solve and hoped maybe one of you
might
take a look and see if you can help me.
(If you
I have a flash file that I need to embed in an iframe on a page. I dynamically get the
path to the file from a MySQL database. I've tried to include the file and use
fopen/fread to execute the file, but I only get binary code back, which makes sense
actually. What's the best way to go about
Removal Instructions are at the end of this letter. Thank you.
FREE Non-Surgical Face Lift in a Bottle!
You Can Look 5-10 Years Younger
with One 30 Minute Application in the
Comfort of Your Own Home!
AND YOU CAN...
Become Rich through Giving Away
Free Samples of Our Life Enhancing
On Wednesday, November 28, 2001, at 05:40 PM, Fred wrote:
The browser has no direct connection to MySQL, so you are correct --
those privilege tables are not helping to check on the privileges if
the client is from browser.
I find this a bit misleading.
Yes, I did too -- but I thought
Hello Bryant,
Thursday, November 29, 2001, 12:56:07 AM, you've written:
BB I have a flash file that I need to embed in an iframe on a page. I
BB dynamically get the path to the file from a MySQL database. I've
BB tried to include the file and use fopen/fread to execute the
BB file, but I only
Simply echo whatever html you would normally use to embed the animation in
an iframe.
Fred
Bryant Brabson [EMAIL PROTECTED] wrote in message
001201c1785f$dd959ac0$648e90d1@bryant">news:001201c1785f$dd959ac0$648e90d1@bryant...
I have a flash file that I need to embed in an iframe on a page. I
I have a script that searches a MySQL DB and produces an Excel file from
each table in the search.
EX. You search 4 different tables for the Seattle you would come up with 4
different Excel files.
Now I was wondering if it was possible to take the 4 different Excel files I
just created and
I have had a good hunt around the www.php.net site and I can find no reference
to the parse_str function in the docs, except as what looks like
cached results in old searches.
Anyway - the reason I ask is I was wondering if there was a function that
did what parse_str did, except that it put the
What type of Excel file are you using? I'm assuming that you are using tab
or comma delimited files. These text or CSV files do not support multiple
sheets, and in fact do not support cell formatting or any of a number of
excel functions. Only native Excel files (*.xls) support mutliple
Can someome recommend such a book to a relative newcomer. I'm looking
for something on writing carts and the processing that goes thereafter.
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
PHP and MySQL Web Development by Luke Welling and Laura Thomson may be what
you are looking for if you are going to use mysql as the database. There
are introductory chapters for mysql and php. The book then moves on to more
advanced topics related to using php with mysql. It also includes a
Hi, guys. Just want to confirm when I install all the other libraries like gd
and freetype and what not, and I get the php file installed and I am about to
run
./configure
since mysql currently runs with asp beautifully my option would be
--with mysql and PATH to mysql not *just*
-- with
Hi. Im looking over someone else's code and I come across something I
dont understand and dont know where in the manual to look for it.
Here is an example ==
$string1 = (isset($string2)) ? $HTTP_GET_VARS['pid'] : ;
I have no idea what the '?' in the line and the ':' at the end, so I
have no
it's a ternary operator
$string1 = (isset($string2)) ? $HTTP_GET_VARS['pid'] : ;
is the same as
if (isset($string2))
$string1 = $HTTP_GET_VARS['pid'];
else
$string1 = ;
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 12:28 PM
ternary operator ... if/else shorthand; here's the long way to to do it:
if(isset($string2)) {
$string1 = $HTTP_GET_VARS['pid'];
} else {
$string1 = ;
}
-or-
$string1 = ;
if(isset($string2)) {
$string1 = $HTTP_GET_VARS['pid'];
}
Hank
On Wed,
Hi Joel,
You could do the --with-mysql=/path/to/mysql. But you could also
do --with-mysql. I usually just do --with-mysql and it all works prefectly.
Good luck!
Tyler Longren
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 7:24 PM
Hi all,
I've been banging my head against the wall for a few days and have
finally decided to consult the list. Here's what I'm trying to do and
what is happening:
Platform:
Various version of RH Linux, primary 6.2 (on an i586), but when that
failed (repeatedly) I started trying it on a
The difference between the two options is that using --with-mysql without a
path will use the mysql libraries which come with php. This is probably
fine in most cases. Using --with-mysql=/path/to/mysql will compile in the
native mysql libraries rather than the php versions. This is desirable
The manual is rather sparse about the ternary operator, you may find one
sentence about it here:
http://php.he.net/manual/en/language.operators.comparison.php
Basically if the expression before the ? evaluates to true then the whole
expression evaluates to the expression after the ?. If the
1 - 100 of 116 matches
Mail list logo