- Original Message -
From: "John A. Grant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 11:51 PM
Subject: [PHP] how do I use "<" and "<" with eval()?
> I'm not having an easy time understanding the discussion
> in the doc for eval().
>
> I want to read th
Hello:
Is there any way to find out the week of the month. Today is in the first
week of month.
That is, a function like weekofmonth() which displays 1 today & 2 next week.
thanks
Sheni R Meledath
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
Hi php'ers
I'm about to build a site that allows payment with credit card.
Of cause the card number, expiration date etc. should be secured
when transfered. How do I do that?
I've been looking at the OpenSSL functions in php, but they seem to
be unsatisfying.
Kind regards,
Mor
On Thu, 1 Nov 2001 14:51, AAustin wrote:
> Hi
>
> Is there a php technique, app, code example..., where users can enter
> normal formatted text with paragraphs etc and the '' or ' ' tags
> (and even 'table') are entered so the text looks ok on an php page.
> This will then mean the end user does
I just did that tonight.
Lookup the predefined variables in the manual.
$argc gives a count of the arguments
$argv is an array of the arguments
Ex:
php -q myscript.php Apple Orange
$argc == 3
$argv[0] == 'php -q myscript.php' or something like that
$argv[1] == 'Apple'
$argv[2] == 'Orange'
-Ja
On Wed, 31 Oct 2001 22:04, Adrian D'Costa wrote:
> On Mon, 29 Oct 2001, David Robley wrote:
> > On Sat, 27 Oct 2001 03:23, JSheble wrote:
> > > A while ago an email came through here about how to parse out email
> > > message from a php script. The thing that was mostly of interest
> > > to me is
I've just been watching the posts regarding this issue.
I can see the following:
You SHOULD test it on *nix JUST to narrow down the problem.
You ask for help from all the *VERY NICE* people on this list, and then
WILL not do what they say will help???
If you do not like the php smtp implementat
Hi All
I have a php that access to database and show the values in the browser, But
I need add hte option of print on printer, but that only print the table
with values.
Somebody can help me?
Thanks in Advanced,
Regards,
_
Ge
hi all,
i want to know how i can feed a parameter into a php script in commandline?
eg.
php getdata.php apple orange
so, i want to get use of "apple" and "orange"...
any help pls!
jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
hi all,
i want to know how i can feed a parameter into a php script in commandline?
eg.
php getdata.php apple orange
so, i want to get use of "apple" and "orange"...
any help pls!
jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
READ THE MANUAL.
variable variables
$i=1;
$sName = "seat$i";
$value = $$sName;
At 04:40 PM 10/31/2001 +1100, sc wrote:
>Hey all;
>
>If i have a variable say, $seat and i want to go through variables with a
>number, ie. $seat1 , $seat2 etc. how would i go about it? i have one setup
>where $p in
Ever consider reading the online manual?
First, say header("Content-type: image/png");
Second, create image.
third use ImagePNG() function
fourth, destroy image.
fifth, go directly to the php script that generates the image, then you
will see PHP generated errors.
-Jason Garber
IonZoft.com
At
Second comment is that we are not a review board for specific products.
At 10:40 PM 10/30/2001 +0300, you wrote:
>Good day!
>
>I try to wrote Web-interface for DNS. Only simple test version now. I'd like
>to listen your comets to make real good and useful thing. mail me you
>coments
>please
>
>G
In article ,
[EMAIL PROTECTED] (Sondra Russell) wrote:
> They have provided a perl sample script (see below).
>
> Mostly I'm just trying to figure out how to replicate the whole
> "receiving", "sending", and "receiving again" thing in PHP.
Most of tha
Good day!
Well... you can recive access to any tag on HTML page form java-script with
code like this:
here will be text from selected option
.
function some_event()
{
objH1 = document.all["razdel"];
objSelector = document.all["selector"];
objH1.innerT
Some time ago I asked for help regarding techniques to provide dynamic
update of content on a PHP-page.
Someone mentioned a javascript routine which I've forgotten. Anyone here
might have a clue? What I want to do is that
User selects and option from a option box, and depending on what that
se
> > You'll also need to compile php as a standalone, and put as
> > the first line of your php script
> >
> > #!/path/to/php -q
>
> What if we need both version??
There's nothing stopping you running both.
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
On Mon, 29 Oct 2001, David Robley wrote:
> On Sat, 27 Oct 2001 03:23, JSheble wrote:
> > A while ago an email came through here about how to parse out email
> > message from a php script. The thing that was mostly of interest to me
> > is the ability to send an email to a php script, I guess thr
Hi
Is there a php technique, app, code example..., where users can enter normal
formatted text with paragraphs etc and the '' or ' ' tags (and even
'table') are entered so the text looks ok on an php page. This will then
mean the end user does not need to know a smattering of html code just to
en
Hi guys!
I'm going to use paypal with my site, and they have a cool "instant
notification" feature which sends, to a page I preassign, information
about a transaction as it happens. My script is supposed to:
a) receive this information (as a "post")
b) send it back to them with a sort of "is t
Hi Arsen,
I think that'd be a lot of work, and I'm not sure I understand why you can't
use MySQL?
I suppose you could do it, but i think you'll find once starting it, that
its not worth the time it'll need...
Jack
-Original Message-
From: ArsenKirillov [mailto:[EMAIL PROTECTED]]
Sent: W
HEllo !
I have a website designed in several languages (En , Fr , Cz)
My question is :
How to detect the language setting of the the visitor's PC in order to
redirect him to a specified content ?
Thanks ...
Arcad.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
Hi all
I am creating a program PHP that will be access int the web for many
persons, this aplication will be permit to insert registry on a data base
Postgresql, When a person this inserting a registry I need to block that
table so that another user cannot to access the data base. Exists some
Thanks David,
I set magic_quotes_sybase to "On" (even though I'm using oracle) and that
did the trick.
php.ini
; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = On
I was able to insert data with an apostrophie into the database from a form
and the data looks
does anybody hear about
board(bbs or phorum) written oin php wihout using any kind
of SQL DB ? I think of developing one in text db (separated by | fields in
one line)
Did anybody think of this is good idea ? (i have problem in my country -
stupid admins can't run MySQL to be such stable as php4.)
More specifically, 'empty' is a language construct and not a function.
Other constructs are unset, isset and, well, there are others :) For
example:
$arr = array('mysql_connect' => 'foo',
'unset' => 'bar',
'empty' => 'ooh');
print $arr[mysql_co
Hello!
Have you specified path to extensions? In my case:
extension_dir = c:/apps/php/extensions/
Best regards,
Andrew Kirilenko.
> -Original Message-
> From: Brandon Orther [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 1:41 AM
> To: PHP User Group
> Subject: [PHP] Win
Are you a Mortgage Office in need of leads?
We receive refinance requests direct from borrowers
throughout the United States daily!
Whether your office services one state or multiple states,
our leads will meet your needs!
A few features of our program:
*Leads are exclusive
Don't forget true, false, and null. :)
A good place to look might be to grab a syntax definition file for some
sort of popular editor (like textpad), and just go through it. Not the
best way, for sure.
The best place to look easily is http://www.php.net/manual/en/
Mike
Johnson, Kirk wrote:
Hey -
My php installation is filling my apache error log with copies of the
piece of the environment that PHP knows as HTTP_SERVER_VARS. It seems to
be caused by imap functions.
doesnt do it... but if i do
I get a bunch of:
REDIRECT_nokeepalive=1
REDIRECT_STATUS=200
REDIRECT_URL=/test.php
R
In article <01A4B59FD1EBD311838100A0C98BE0D9AD5D91@chef>,
[EMAIL PROTECTED] (Kirk Johnson) wrote:
> The manual at http://www.php.net/manual/en/language.types.array.php mentions
> that "empty" and "default" are "special keywords". Does anyone know of any
> lists of PHP's predefined constants and
Hello,
Since I am not able to get msssql functions running. Can someone please
give me instructions on exactly what I need to do to get the functions
werking?
Thanks Brandon
Hello,
I am trying to get php4 to use mssql function under WindowsXP. I don't
know if this is a problem or not.
I uncommented the extensions line in the php.ini file that says:
extension=php_mssql.dll
But when I try to use mssql_connect it says call to undifiened function.
Does anyone know a
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (John A. Grant) wrote:
> I tried this code:
> function somefunc($text,$n)
> {
> for($i=0;$i<$n;$i++){
> echo $text;
> }
> }
> $string='xxx zzz';
> eval($string);
> ?>
>
> but I get
> "P
I'm not having an easy time understanding the discussion
in the doc for eval().
I want to read this string from a file:
xxx zzz
and then "run" it.
I tried this code:
zzz';
eval($string);
?>
but I get
"Parse error: parse error in eval.php(11) : eval()'d code on line 1
Do I h
More generally, this should work:
$smallarray1=array_slice($bigarray, 0, sizeof($bigarray) / 2);
$smallarray2=array_slice($bigarray, sizeof($bigarray) / 2);
I haven't tested it though...
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 4:32 PM
"Yz James" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey John,
> something like this might work:
>
>
> $string = "This is a string with an embedded image [bird.gif,this is a
> bird]";
>
> $string = preg_replace("/\[(.*?\.)(gif|jpg),(.*?)\]/i", " alt=\"\\3
"Dl Neil" <[EMAIL PROTECTED]> wrote in message
042101c157f6$4cd9fb90$c014100a@jrbrown">news:042101c157f6$4cd9fb90$c014100a@jrbrown...
> Two inter-dependent problems:
> 1 a means of identifying a cipher within the text
> 2 a means of replacing the cipher with HTML code
Succinctly stated.
>
"Mike Eheler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Beyond that, why not keep it conforming to HTML, and use an tag,
> for example:
>
> This is some text .
>
> That way if you need to view the page "as-is" in a browser or whatever,
> it'd still look f
I'm working on my first shopping cart web application (done in php) and have
started to look into ways to secure it. After reading up a little bit on
mcrypt I have some basic questions about it:
1. If I use mcrypt to encrypt user input before storing it in a database,
do I have to use it in
Correction:
$count = count($array);
$count = $count/2;
$count = round($count,0);
"Liz Fulghum" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You could also grab the midpoint of the array:
>
> $count = round(count($array), 0);
>
> then populate your new arra
You may find this helpful:
$arr = array('a','b','c','d','e');
$second_half = array_splice($arr,floor(sizeof($arr)/2));
print_r($arr); // Array ( [0] => a [1] => b )
print_r($second_half); // Array ( [0] => c [1] => d [2] => e )
In the above, $second_half will be one la
You could also grab the midpoint of the array:
$count = round(count($array), 0);
then populate your new arrays by using a foreach loop:
$x = 0;
foreach($array as $key => $value) {
if ($x <=$count) {
$array1[] = $value;
} else {
$array2[] = $value;
}
$x++;
}
"D
On Wed, 2001-10-31 at 10:23, Michael Hall wrote:
> I'm looking for a way to clamp down a network machine (we're on a T1) to
> modem speeds (28 to 52 K) for testing purposes.
>
> Is there software (preferably for Windows) that would do this? Better yet,
> would this software be free?
I've not us
Or do you really want: First array:
1
3
5
Second array
2
4
6
Corresponding to the two columns across the screen, and controlled by the same
iteration index?
=dn
- Original Message -
From: "Daniel Harik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 01 November 2001 07:25
Subject:
Don't forget that you should clear out that memory space, especially if it's
an array of arrays or an array of objects or something along those lines:
unset($bigarray);
Just good programming practice, that's all. I doubt it would ever be a
problem on today's servers, but it's still a good idea.
$smallarray1=array_slice($bigarray,0,3);
$smallarray2=array_slice($bigarray,3,3);
On Wed, 31 Oct 2001 23:25:55 -0800, Daniel Harik wrote:
>Want to split it in half
>
>1 Big array:
>
>1
>2
>3
>4
>5
>6
>
>Want to make
>
>
>1 Small array:
>
>1
>2
>3
>
>2 Small array:
>4
>5
>6
>
>Thank You
>
>
--
M
take a look at the manual
http://www.php.net/manual/en/function.array-slice.php
it will show you the right way to do it
jim
- Original Message -
From: "Daniel Harik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 11:25 PM
Subject: Re[2]: [PHP] split arra
Want to split it in half
1 Big array:
1
2
3
4
5
6
Want to make
1 Small array:
1
2
3
2 Small array:
4
5
6
Thank You
--
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 administr
Based on what criteria? if you just want to split the array at element 30,
you could use array_splice to get the necessary data...
- Original Message -
From: "Daniel Harik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 2:16 AM
Subject: [PHP] split array in 2
Good evening
I was wondering how can I split, array that has 60 elements in it,
into 2 arrays with 30 elements each?
Thank You very much and have a good night :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
I't just came into my mind, if 1 simple split that arrey in to 2
arrays, it would be much simplier and wouldn't need second loop, i
just wanted to know how can i split 1 array in 2 arrays
Thank You
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Kraa,
Sorry for the confusion; we should have that component available by the end
of the week.
Best regards,
Andrew
> -Original Message-
> From: Kraa de Simon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 2:50 PM
> To: '[EMAIL PROTECTED]'; Php-General (E-mail)
> Subjec
If you have installed Qmail and removed Sendmail create symlinks to the
qmail sendmail wrapper and you should not have to edit you php.ini. Read
the qmail INSTALL file for more.
# ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
-Original Me
if ($REMOTE_ADDR=="127.0.0.1") {
do something
} elseif ($REMOTE_ADDR=="remote.somewhere.com") {
do something else
} else {
eeks! its the end
}
List of all the predefined variables:
http://www.php.net/manual/en/language.variables.predefined.php
--
Liz Fulghum
-
Hi list,
I have recently installed qmail-1.03 now what settings should I make in
php.ini file to send email with mail() function. Thanks.
In perl I do something like this:
if (!($ENV{'REMOTE_ADDR'} =~ /\b(132\.210)/))
or
... $ENV{'REMOTE_HOST'}
PHP is not Perl. So how do I parse the user's remote address or host to
display one thing if IP = 127.0.0.1, another if = 209.247.2.3 another if
host = "remote.somewhere.com
Your files are being uploaded to the pre-defined temporary directory.
$userfile contains the name of the temporary file the file was uploaded as.
After you run all the checks on the file to make sure its valid, you should
use copy() to move the file to its permament home in your file system, then
Hi,
The problem is that a Progress 9.1c is not available at openlinksw.com for:
Client: Linux glibc2.1 (x86)
Server: UnixWare 7 (x86)
Only Progress 8.3b is supported.
So you are saying that a setting in the .ini files or some environment
variable could be missing.
I will have a look at it.
T
Kraa,
I'm not sure why the two sample apps are using different connection calls;
It's not terribly relevant - both are legal.
Driver manager and driver are not typically dependent on each other, no.
The fact that the connection fails in odbctest is probably due to a missing
parameter that iODBC
duno about for windows, but there's quite a bit around on packet shaping for
Linux and *BSD which amounts to the same thing - could be worthwhile sticking
an old server in the middle with some different rules on different ports
(i.e. port 81 set up for 14k4 equiv, 82 for 28k8 equiv, etc..)
so
.
Thank you Kurt,
The day for the server to be move from Cal to Fla is the 31st (today)
I would image that it is somewhere in transit at the present time...
Will send you an email with another address you can respond to...
Thanks for all of your help
Mike
"Kurt Lieber" <[EMAIL PROTECTED]
Hi Andrew,
I'm using the Merant DataDirect 3.6 Progress SQL92 ODBC drivers and they
seem to be working fine when I try their test C program. I can connect to
the Progress database en retrieve data.
I'm using their driver manager as well (--with-custom-odbc).
The test C program uses:
SQLConnect
On Wed, 31 Oct 2001, Michael Hall wrote:
> I'm looking for a way to clamp down a network machine (we're on a
> T1) to modem speeds (28 to 52 K) for testing purposes.
Well, mod_throttle on the server side will do this for you. Client
side.. hrum. A linux box with bandwidth controls, a packetee
I apologize for the only-vaguely-PHP-related nature of this, but I'm
endlessly impressed with the knowledge here.
I'm looking for a way to clamp down a network machine (we're on a T1) to
modem speeds (28 to 52 K) for testing purposes.
Is there software (preferably for Windows) that would do this
Yes! That's it! I added that srand function, and it works great. Thanks!
..Rene
> -Original Message-
> From: Tamas Arpad [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 10:58 AM
> To: René Fournier
> Cc: Php-General
> Subject: Re: [PHP] Re: Weird caching problem with PH
> Really? No good at all, huh? I would think that would answer the
question
> right there if it was an SMTP problem or a problem that lies elsewhere.
If
> you take SMTP out of the equation, and the problem still occurs, then you
> know that's not the issue. If the problem does go away, then you
On Wednesday 31 October 2001 18:18, René Fournier wrote:
> Here's what I've got, starting at the top...
>
> ==
> header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');// Date in
> the past header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . '
> GMT'); //
On Wednesday 31 October 2001 09:08 am, you wrote:
> It doesn't do much good to test on a nix box because what I'm looking
> for is a solution to a PHP/SMTP problem.
Really? No good at all, huh? I would think that would answer the question
right there if it was an SMTP problem or a problem that
Here's what I've got, starting at the top...
==
Title
[SNIP]
[SNIP]
>
==
Here's why I think it's PHP4: If I look at these pages on my local machine
(WinME, Apache 1.3.20, PHP4.06 module, MySQL 3.23.14 (not
OK. here's why I think it's in PHP's SMTP support:
There is an address that fails in 4.06 yet functions in 4.04 - exactly
the same code, same SMTP server, same .ini, everything the same.
I wouldn't question the class if I hadn't tested my own code and
settings first. I've been trying to trac
Hello,
> Matthew Luchak wrote:
>
> Recently I have had to defend the use of PHP in light of a number of
> screw-ups with the mail function in 4.0+. It seems that some email
If you are using Windows, that seems to be a problem that the mail()
function implementation does not handle
SMTP servers
On Wednesday 31 October 2001 08:40 am, you wrote:
> for now it's PHP that's in question
AFAIK, this is the first I've ever heard of probelms with mail() not sending
to perfectly valid email addresses. Scalability issues and other performance
problems, sure, but that's a different animal.
Gi
>Well hey, if mail() won't send to those addresses, what's wrong with us
>testing them? :-)
;)
>Can you send to those addresses from a regular email client? If so, can
you
>do it from the command line with your MTA?
Of course I am talking about valid addresses, in fact there is at least
one
Well hey, if mail() won't send to those addresses, what's wrong with us
testing them? :-)
Can you send to those addresses from a regular email client? If so, can you
do it from the command line with your MTA?
jon@maya~$ sendmail [EMAIL PROTECTED]
hello there
.
Cheers
Jon
-Original Messa
On Wednesday 31 October 2001 08:16 am, you wrote:
> The addresses I know about are clients that are already a little peeved
> with me so I can't send them out for testing but I have found at least 4
> addresses that will "not work" (no error message, just dead air) with
> Mail(). It is something
The addresses I know about are clients that are already a little peeved
with me so I can't send them out for testing but I have found at least 4
addresses that will "not work" (no error message, just dead air) with
Mail(). It is something about the string of letters that does it
because if I tr
I'd be interested to see an example of an address that will "not work"
Which MTA are you using? On which OS? More info!
(obPeeve): Please don't post in HTML.
Cheers
Jon
-Original Message-
From: Matthew Luchak [mailto:[EMAIL PROTECTED]]
Sent: 31 October 2001 16:04
To: Php-General
thats wierd it added blank infront of it all...wierd
it might have been the smtp server its self that had rules or something...
- Original Message -
From: "Matthew Luchak" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 2:09 AM
Subjec
On Wednesday 31 October 2001 07:45 am, turtle wrote:
>
Glad we could help. Also, you can re-write the above so you don't have to
define two sets of tags by doing the following:
";
?>
Not a big deal here, but if you start writing multiple lines of HTML code,
you probably don't want to enc
My favorite email libraries are ..
SMTP class
http://www.phpguru.org/download.php?script_id=10
And working in conjunction with SMTP class ..
HTML Email Class
http://www.phpguru.org/download.php?script_id=4
-Original Message-
From: Matthew Luchak [mailto:[EMAIL PROTECTED]]
Sent: Wedn
Which addresses won't work?
- Original Message -
From: "Matthew Luchak" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 2:04 AM
Subject: [PHP] defending PHP mail function
Recently I have had to defend the use of PHP in light of a n
WIN 2000
Blankwhat os was it?!?!?
--
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]
Blankwhat os was it?!?!?
- Original Message -
From: Matthew Luchak
To: Php-General (E-mail)
Sent: Thursday, November 01, 2001 2:04 AM
Subject: [PHP] defending PHP mail function
Recently I have had to defend the use of PHP in light of a number of
screw-ups with the mail function in 4.0+.
Title: Blank
Recently I have had to defend the use of PHP
in light of a number of screw-ups with the mail function in 4.0+. It seems
that some email addresses will simply "not work" with mail. I have been
shopping around for a smtp direct class ( http://www.zend.com/codex.php?id=347&single=
.
Thank you for the heads up on using like. I was wondering since there will
be 2 similar variables from each page var1 var2 (identical except for the
number). I programmed in DataFlex for about 6 years back in the late 80's
early 90's but have not done anything db wise in over 8 years I st
Thanks very much, Stig, very helpful! We are just scouting the technology
right now, so my more precise questions will come later ;) We will be using
SSL. Given that, it looks to me like "decision maker" mode is the way to go?
Kirk
> -Original Message-
> From: Stig Venaas [mailto:[EMAIL
.
Thanks to Kurt and Justin for the help offered on this simple (now that it
is working) problem.
I do not know where my stumbling block was but after a good nights rest and
some coffee this morning I have this and the GetImageSize function
incorporated.. I will list the code incase someone find
Yeah, I got these kind of warning when I set error_reporting(E_ALL);
Anyway, this shouls do it:
The point is when you get 'non defined var', just define it before, even
empty (i.e, $x = '') or check it with isset();..
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/pro
Hi
Just yesterday I installed Apache 1.3.22/PHP 4.0.6 to replace an
ancient install of Apache 1.3.9/PHP 3.0.12. This is on FreeBSD 3.2.
I have several sites which display content in different languages using
Apache's AddLanguage, and LanguagePriority directives (page.php.en,
pa
On Wednesday 31 October 2001 02:32 am, you wrote:
> So, I'd recommend giving that a try. From my understanding (limited) of
> MySQL, use = in the case of $id=2, and LIKE in the case of firstName
> LIKE "justin".
Um...you *can* do that, but I don't think you want to. Using LIKE means that
MySQL
I believe you would be getting a number echoed to the screen or dumpfile,
but you want the values, correct?
$telefono is declared as an array. Calling an echo statement on an array
won't give you the values of the array elements. In order to have them all
printed to screen, try:
foreach ($tele
Hello,
I want to Know how can I save information on a Data Bse that will be access
for many persons at the same time.
I use Postgressql
Thanks.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
PH
Apache has a high learning curve. PHP isn't terribly hard to pick up on if
you already know the basics of programming.
Also, you may want to check out the newsgroup
comp.infosystems.www.servers.unix for help with Apache if you continue to
have problems. It appears from all the info you gave us
Kraa,
The 01000 error is a 'General Error', probably at connect time.
This suggest that your DSN settings might be bad or not being passed into
PHP.
Is your DSN named "results" and is that the one you are using in your tests?
Also, are you setting your environment variables as appropriate? e.g.:
I retry using the following snuppet:
...
while (!connection_aborted() && !feof($fp) )
{
echo fread($fp, 1000);
}
but nothing change.
I try also with connection_status() and ignore_user_abort(false) but nothign
change.
If the user abort the download progress, the php process hang.
Try something like this (you'll need to populate it afterward):
$this->array = array();
Then populate it with the data.
Mike Frazer
"Andrzej Roszkowski" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi!
>
> I have to create array of classes.
>
> When I
> Hello,
> I want to set member variables out of their class. The code class is:
>
>
> class translator {
>
> var $nombre;
> var $departamento;
> var $despacho;
> var $telefono;
> var $correo_electronico;
> var $pagina_personal;
>
> function translator(){
> $nombre = array("Nombre","Nam
Based on the snippet you have sent us you need
to at least start by enclosing your column names
in your accesses to the associative array containing
your results.
Each line just use print_r or var_dump:
while($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
{
print_r($row);
}
This will sh
If defined ($x) ???
If !empty ($x) ???
...Well ...
- Original Message -
From: Martín Marqués <[EMAIL PROTECTED]>
To: Harald Witt <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 3:43 PM
Subject: Re: [PHP] PHP-arnings
> On Mié 31 Oct 2001 11:17, you wrote:
1 - 100 of 130 matches
Mail list logo