Re: [PHP] hi

2001-08-31 Thread Hugh Danaher
It sounds like you want to set the select box to something wider than the product names so that it always comes out the same width. There is likely some elegant way to do this, but a quick fix would be to fill one of the cells with a line of unprintable characters;. You could make it the first

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-31 Thread Philip Murray
Depending on the version of PHP you're using, this might help: Versions prior to PHP 4.0.5 do not handle HTTP redirects. Because of this, directories must include trailing slashes. It's from the fopen() manual page, http://www.php.net/fopen Cheers - -- -

[PHP] hi

2001-08-31 Thread Balaji Ankem
Hi, Renze, I have one doubt in HTML. I should not ask this in this group. I don't have any alternative. Please consider this. How to increase the length of the select box. It is comming width as very less. I would like to increase that width. see the following code.. ISSUE Issuing by

[PHP] Re: Labor Day Weekend

2001-08-31 Thread Wendi Ann
Below is the result of your feedback form. It was submitted by Wendi Ann ([EMAIL PROTECTED]) on Saturday, September 1, 2001 at 08:17:35 --- message: NEW !! http://tiphanie1295.devil.ruNEW !!! To hell with porn sites..

[PHP] Re: number to word converter

2001-08-31 Thread Carry Ian
thanks to everybody who responded. carry Carry Ian e-mail: [EMAIL PROTECTED] -- Get real solutions to all your problems. http://www.salahkarindia.com - India's first advisory Portal Your frie

[PHP] Reg-Variables

2001-08-31 Thread senthilvellan
Hello Techies, Is it possible to have our own global variables that can be shared between more than one programs in php.Is there any other go to share between programs(Other than flat files and database).Any help is appreciate. Thanks in advance, Senthi

RE: [PHP] File Upload Problem Solving?

2001-08-31 Thread Jeff Oien
I found the problem. A user was logged in under their username with a different case (capital/small letters) and that caused a problem. Jeff Oien > I have a user who is unable to upload files but I don't know where > to start with the troubleshooting process. I have this: > > @copy("$img1", "/bl

Re: [PHP] networking

2001-08-31 Thread mike cullerton
http://www.linuxdoc.org/HOWTO/SMB-HOWTO.html --On Friday, August 31, 2001 11:25 PM -0400 Data Driven Design <[EMAIL PROTECTED]> wrote: > corel linux on a fourth machine. Is there a tutorial somewhere that will > show me how to set up samba, or whatever else I need to access my network, > and th

[PHP] If PHP4 existed in 1995 we would of taken over the world by now

2001-08-31 Thread Bob
If PHP4 existed in 1995 then http://www.squirrelmail.org could of been hotmail.com If PHP4 existed in 1995 then http://phpwebsite.appstate.edu could of been geocities.com If PHP4 existed in 1995 then http://www.phpauction.org could of been ebay.com If PHP4 existed in 1995 then http://www.audiogala

[PHP] slightly OT -- content management systems and php

2001-08-31 Thread daniel goldin
I am a nonprogrammer--or enthiusiastic amateur--looking into various open source content management systems and finding myself bewildered by the possibilities. Couldn't think of a better list to pose these questions and hope I don't offend by going slightly off topic. First, what's the differnce

[PHP] seeking good annotate script

2001-08-31 Thread daniel goldin
= Note: The sender of this email has requested that you verify receipt of this email. Please visit the web page below (click on the link) to verify receipt. http://cgi.webbox.com/wbwc/webbox.asp?act=vr&ms=101724550&t=rlsbtsmefi =

[PHP] seeking good annotate script

2001-08-31 Thread daniel goldin
I'm looking for a good script that implements an annotation function--much like the manual at php.net. Anybody know where I could find such a beast? Daniel Goldin [EMAIL PROTECTED] 323-225-1926 www.blue-lamp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] networking

2001-08-31 Thread Data Driven Design
I know this is off topic, but I hope someone can point me in the right direction. I have a network of three win98 machines and I just installed corel linux on a fourth machine. Is there a tutorial somewhere that will show me how to set up samba, or whatever else I need to access my network, and th

[PHP] File Upload Problem Solving?

2001-08-31 Thread Jeff Oien
I have a user who is unable to upload files but I don't know where to start with the troubleshooting process. I have this: @copy("$img1", "/blah/$username/$img1_name") or die("File upload didn't work."); and they are getting the die message. All but one person are able to upload. Jeff

[PHP] Email Processors Wanted!

2001-08-31 Thread skyward_7
Dear [EMAIL PROTECTED], EMAIL PROCESSING COMPANY LOOKING FOR EMAIL PROCESSORS IMMEDIATELY, TO SUSTAIN EXPLOSIVE GROWTH. EARN $2,000-$6,000 (PART-TIME) AND $5,000-$10,000 (FULL TIME) MONTHLY. FREE START-UP, NOT MLM, NO EXPERIENCE NECESSARY. SEND AN EMAIL TO: [EMAIL PROTECTED] WITH SUBJECT

[PHP] Hello

2001-08-31 Thread Brian Elias
Dear Neighbor: I'm having a tax problem and I want you to be the beneficiary instead of the IRS... My business has had a phenomenal year so far in 2001. In fact, we've done so well I'm probably going to pay 2½ times more corporate taxes than I did last year. And if we make an

[PHP] Re: Getting links from html page

2001-08-31 Thread Richard Lynch
There have to be samples of this in the code archives linked from http://php.net/links.php You'll probably want http://php.net/preg_match -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm

[PHP] Re: Is there anything in here that could be considered a parse error?

2001-08-31 Thread Richard Lynch
MySQL may not like that ; at the end of the query... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message --

[PHP] Re: sessions problems :/

2001-08-31 Thread Richard Lynch
> another question is, at what time of the script does php call my > session_write function to update the registered session?! *AFTER* the connection to the browser is dead and gone, so any error output is sent to the twilight zone. Any error output in session_write needs to go through error_log

[PHP] Re: HTTP authentication

2001-08-31 Thread Richard Lynch
Change the realm out from under them. IE, keep a dynamic list of "Realm" values to use, and when you want to re-authenticate, present a new, unused "Realm" -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-

[PHP] Re: help !

2001-08-31 Thread Richard Lynch
DreamWeaver newer versions have support for PHP, almost for sure. If nothing else, use the "raw HTML" view tab or whatever and just type in the PHP code where you want it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-31 Thread Richard Lynch
> echo $HTTP_POST_VARS['Approve_Selected_y'; That would have come from an tag. Conjecture: You probably didn't make nifty image buttons yet, so don't have that variable showing up. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like M

[PHP] Re: Grabbing all files and adding to select boxes...

2001-08-31 Thread Richard Lynch
echo "\n"; $dir = opendir('/path/to/images/dir') or die("Could no open images dir."); while ($d = readdir($dir)){ if ($d != '.' && $d != '..'){ echo "$d\n"; } } echo "\n"; -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? L

[PHP] Re: Non selected submited form-array values

2001-08-31 Thread Richard Lynch
Submitting only checked boxes is just how HTTP works. A cool trick you can use is to do this: name=noticias[$id] value='m' In other words, you can convey *MORE* info by including a specific "key" with each checkbox element from the sending script. For keeping track of previous values, though,

[PHP] Re: Apache Segmentation fault.

2001-08-31 Thread Richard Lynch
Check for and report bugs at http://bugs.php.net Also, you can get instructions there on generating a backtrace with detailed info of why Apache puked. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.c

[PHP] Re: Asynchronous SNMP?

2001-08-31 Thread Richard Lynch
You can run 5 or 6 copies of PHP just fine, way easier than trying to hack together some sort of multi-threading inside of PHP. Just be sure you use a database or other thread-safe storage mechanism. Writing to a common file, for example, would be pretty bad. Actually, under Linux, for small da

[PHP] Re: vanishing variable

2001-08-31 Thread Richard Lynch
>Finally, I've got another select box which calls a new page using get (I tried post, and it >didn't work either), and the $current_year disappears never to be seen again. Perplexing, >no? You almost for sure don't have > in that last step. Or, if you are using GET: ...=yourserver.com?current_

[PHP] Re: Send mail via exact account

2001-08-31 Thread Richard Lynch
http://php.net/mail $headers = "From: [EMAIL PROTECTED]\r\n $headers .= "Reply-to: [EMAIL PROTECTED]\r\n"; $headers .= "X-anything-you-want: Custom headers can be useful or fun\r\n"; $success = mail($to, $subject, $body, $headers); if ($success){ # Mail was successfully queued for sending }

[PHP] Re: Socket Server

2001-08-31 Thread Richard Lynch
>This is my quandry... I am trying to build a socket server to transfer simple information, more of a monitoring tool. But after about 14+ hours it just kicks out, without rhyme or reason. No errors, no nothing... I was curious if anyone could see big gaping holes in my code that would allow f

Re: [PHP] The future of PHP

2001-08-31 Thread Richard Lynch
> looks bright. The future's so bright, I need to wear shades. Sorry, couldn't resist. Bottom line I'm hearing: The Dev team has no more hours to give, and is focussing on what they believe is right. If somebody wants to sink time/money into this, go for it. -- WARNING [EMAIL PROTECTED] addr

Re: [PHP] Image manipulation

2001-08-31 Thread Bob Scott
Adam - If you're on a machine that has ImageMagick installed on it (most Linux boxes I've been on have it installed already) you can do something like this in PHP: $origfile = "/home/bob/my_face.jpg"; $img_dir = "/usr/local/www/htdocs/images"; $dest_file = $img_dir . "/t_" . basename($userfi

[PHP] Image manipulation

2001-08-31 Thread Adam Plocher
Hey I got a few questions about image manipulation. First of all, is there anyway I could have my script take a full size image and crop out a chunk of it to be used as a thumbnail - or just simply shrink the image down to be used as a thumbnail? Also, is there anyway to convert misc image t

Re: [PHP] Might just be a typo, but...

2001-08-31 Thread Martín Marqués
On Sáb 01 Sep 2001 05:31, you wrote: > > Here are your mistakes! This lines should be: > > > > $this->hinta = 0; > > $this->määrä = 0; > > $this->list = array(); // Initialised > > > > Thats because you haven't initiallized $this->list, but $list, that is > > internal

Re: [PHP] Might just be a typo, but...

2001-08-31 Thread Jon Thompson Coon
> Here are your mistakes! This lines should be: > > $this->hinta = 0; > $this->määrä = 0; > $this->list = array(); // Initialised > > Thats because you haven't initiallized $this->list, but $list, that is > internal to the Example function (in this case the constructor

Re: [PHP] Might just be a typo, but...

2001-08-31 Thread Martín Marqués
On Sáb 01 Sep 2001 05:18, you wrote: > Hey, you people are great. 5 reasonable answers to a 1 silly problem > within the hour. I'll exploit your goodwill. Here's the next one, this > is about objects (in finnish): > > class Example { >var $list; // Here I set the problem >var $hinta; >

[PHP] Might just be a typo, but...

2001-08-31 Thread Jon Thompson Coon
Hey, you people are great. 5 reasonable answers to a 1 silly problem within the hour. I'll exploit your goodwill. Here's the next one, this is about objects (in finnish): class Example { var $list; // Here I set the problem var $hinta; var $määrä; function Example() {

[PHP] Re: passing variables between scripts? End of story

2001-08-31 Thread Jon Thompson Coon
Thank you. Question answered. Several times over. -- 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]

[PHP] Re: passing variables between scripts?

2001-08-31 Thread Paul Procacci
Sessions would definately save the data. :) Jon Thompson Coon wrote: > I can't cope the fact that I loose my variables every time I reload the > page. If someone could point me to the right direction, I'd be grateful. > > Present problem: > > I have a script that has some globals (surprise). Wi

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-31 Thread Paul Procacci
This is a snippet from my code. $FILE = "http://www.somehost.com";; $fp = fopen($FILE, "r"); if(!$fp){ print("Somethings screwy"); } else{ do stuff } Any suggestions? Paul Speedboy wrote: > > I'm sure http://www.php.net exists. :) > > No, what my sentence meant was you're trying to do so

[PHP] Getting links from html page

2001-08-31 Thread Kunal Jhunjhunwala
Is there a way one can get all the information in the tags from a html page? I was able to get the link per se, but not the link information or name. :( Can anyone help me out here? Regards, Kunal Jhunjhunwala -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

RE: [PHP] array search

2001-08-31 Thread Philip Olson
btw, you may want to search for a name surrounded by spaces as philip vs philips, jim vs jimmy, etc. probably other considerations as well, or maybe not :) philip On Fri, 31 Aug 2001, Philip Olson wrote: > try this : > > $people = array ('philip','sasheen','jim'); > $string = 'Hi, my n

RE: [PHP] array search

2001-08-31 Thread Philip Olson
try this : $people = array ('philip','sasheen','jim'); $string = 'Hi, my name is philip, I miss Sasheen'; foreach ($people as $person) { if (stristr($string,$person)) { $matches[] = $person; } } // results live in $matches now. print_r($matches); stristr is case

Re: [PHP] array search

2001-08-31 Thread Martín Marqués
On Vie 31 Ago 2001 17:49, you wrote: > What about going the other way? Say I have a sentence... > > "Hi, my name is Bob." > > ...and I want to search the sentence for one of the values (people) in the > array... > > $people = array("Jim","John","JP","Bob"); > > Can this be done? Yes, split the se

RE: [PHP] array search

2001-08-31 Thread Joseph Bannon
What about going the other way? Say I have a sentence... "Hi, my name is Bob." ...and I want to search the sentence for one of the values (people) in the array... $people = array("Jim","John","JP","Bob"); Can this be done? Thanks, Joseph -Original Message- yes, in_array($person,

Re: [PHP] Disbale function in certain virtual host

2001-08-31 Thread Rasmus Lerdorf
php_admin_value disable_functions strlen On Fri, 31 Aug 2001, Nicolas Ross wrote: > I am searching a way of disabling certain functions in a particular Virtual > Host. > > I search through the archive of this list and I found a begening of a > solution. I can disable functions in php.ini, but

[PHP] xitami problems

2001-08-31 Thread Nikola Veber
I know I'm stepping on your nerv, but I can't process any pages, although xitami is properly installed, and has php direction in filters option. I am using opera 5.12 as my browser, and even when I read files trough the local server, I can't process the code... I tried reinstalling PHP with

[PHP] xitami problems

2001-08-31 Thread Nikola Veber
I know I'm stepping on your nerv, but I can't process any pages, although xitami is properly installed, and has php direction in filters option. I am using opera 5.12 as my browser, and even when I read files trough the local server, I can't process the code... Help ! Nikola -- PHP Gen

[PHP] Disbale function in certain virtual host

2001-08-31 Thread Nicolas Ross
I am searching a way of disabling certain functions in a particular Virtual Host. I search through the archive of this list and I found a begening of a solution. I can disable functions in php.ini, but I can't use them in vhost I want to. If I don't disable functions in php.ini, I cannot disable

Re: [PHP] How to get a double to show the .00 in a hole number

2001-08-31 Thread Andrey Hristov
Try number_format() if you have int than ($int_var*100)/100 or (double)$int_var number_format((double)$int_var,...) Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Robert J Collins" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

RE: [PHP] How to get a double to show the .00 in a hole number

2001-08-31 Thread Boget, Chris
> I am trying to get a double data type to display the .00 in a > "hole" dollar amount (i.e. 432.00 not 432 or $432.00 not $432). > Can anyone tell me how to do this? printf(); or sprintf(); is your friend Chris

[PHP] How to get a double to show the .00 in a hole number

2001-08-31 Thread Robert J Collins
I am trying to get a double data type to display the .00 in a "hole" dollar amount (i.e. 432.00 not 432 or $432.00 not $432). Can anyone tell me how to do this? Thanks, Robert J Collins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

[PHP] UpLoading Large Files?

2001-08-31 Thread Henrik Hudson
Afternoon List- I have been burrowing through archives and newsgroups for awhile now and have been trying to find some info on a better way to upload files from a browser then doing HTTP based uploads? Are there any? My system: PIII 750, 128MB RAM running FreeBSD 4.2 and Apache 1.3.20, PHP 4.

[PHP] FTP Connection Problems

2001-08-31 Thread Michael Jacobs
I'm getting the following error: Warning: Unable to find ftpbuf 0 in C:\directory\page.php on line 22 Whenever I try to connect to our FTP server...it does this whenever I make a call to ftp_login(). The server, username, and password are correct, and I can successfully FTP into it through oth

[PHP] FTP Connection Problems

2001-08-31 Thread news.php.net
I'm getting the following error: Warning: Unable to find ftpbuf 0 in C:\directory\page.php on line 22 Whenever I try to connect to our FTP server...it does this whenever I make a call to ftp_login(). The server, username, and password are correct, and I can successfully FTP into it through oth

[PHP] sessions problems :/

2001-08-31 Thread Rui Barreiros
i'm sorry if the solution to this problem was posted here before, but if it was i couldn't find it. i have an app that it's basically like this: index.php: $app = new App; $app->start(); in class app: function start() { ()

Re: [PHP] passing variables between scripts?

2001-08-31 Thread Papp Gyozo
I think, the built-in session management can solve your problem: http://www.php.net/manual/en/ref-session.php Briefly, you should register your variable into the session and after reloading the page you can get it back. peculiarly: http://www.php.net/manual/en/function-session-register.php hth,

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Jason Bell
at your unix prompt, (assuming you are running apache) enter the command "ps -ef |grep httpd" you should see the httpd (apache) process, and who owns it. Typicly this is the user "nobody". Your file needs to be owned by the user that owns the httpd process. - Jason Bell - Original Message -

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Larry Rosenman
Therein lies the problem. The webserver, therefore your PHP script, is probably *NOT* running with your credentials. Larry * Police Trainee <[EMAIL PROTECTED]> [010831 13:50]: > the files are all owned by me, that is, my unix login. > --- Jason Bell <[EMAIL PROTECTED]> wrote: > > who owns the

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee
the files are all owned by me, that is, my unix login. --- Jason Bell <[EMAIL PROTECTED]> wrote: > who owns the file to begin with? your account? a > web server typically runs > as a low access account, such as "nobody" on Unix. > So, what is probably > happening is that you don't have permissio

Re: [PHP] HELP! Frustrating Cookie Problem....

2001-08-31 Thread Richard Baskett
I had the exact same problem, so what I have been doing is using the header function to set cookies directly as a header. For example: header("Set-Cookie: CookieName=$NameVar; path=/; expires=$DateVar"); I have had no problems with this way of setting cookies... So far :) Rick > OK I have bee

Re: [PHP] chmod failed: Operation not permitted

2001-08-31 Thread Jason Bell
who owns the file to begin with? your account? a web server typically runs as a low access account, such as "nobody" on Unix. So, what is probably happening is that you don't have permissions to chmod the file. Doesn't have anything to do with your PHP configuration. Jason Bell - Original

[PHP] HELP! Frustrating Cookie Problem....

2001-08-31 Thread Jack Sasportas
OK I have been using the *same* cookie function to place cookies on the surfers pc and it works for a few hundred people just fine. Now I have a few people that it just won't work for. After extensive testing the only thing I can see is that it is not writing the cookies, we do see it writing th

[PHP] chmod failed: Operation not permitted

2001-08-31 Thread Police Trainee
can anyone help? safe mode is set to "0", which i believe is "off". i put a chmod command in one of my scripts and got the following error on running it: Warning: chmod failed: Operation not permitted in /path-here/index.phtml on line 1 why won't chmod work? the chmod command i used is: the

Re: [PHP] number to word converter

2001-08-31 Thread Hugh Bothwell
Here is a slightly more readable number-to-English converter. It will deal with negative numbers and recognizes zero; it's table-driven, so it shouldn't be too hard to convert to other languages. It will convert anything in +/- 10^30. This should be pretty comprehensive; if not, extend the trip

Re: [PHP] help again

2001-08-31 Thread Jason Bell
do yourself a favor... create a file, call it something like test.php and add the following to it's contents: /* begin test.php */ /* End test.php */ then, open this page with your browser. if PHP is working, you should see a lot of configuration and version information, and the PHP logo etc.

Re: [PHP] help again

2001-08-31 Thread Nikola Veber
The code of your's print's the following : $beer's taste is great";?> I'm not sure if there could be a problen in configuring PHP, since the only thing I have done was making html page containing this code. 8/31/01 6:42:02 PM, "Andrey Hristov" <[EMAIL PROTECTED]> wrote: > > >PHP Test > > >$

Re: [PHP] PHP with Access?

2001-08-31 Thread EDUMEXICO
Try upsizer, simple but work fine. On Thu, Aug 30, 2001 at 10:02:03AM -0400, Jeff Lewis wrote: > I am using mySQL with all of my stuff but a friend who started writing some files >for our online baseball league was using Access as his database. We tried running it >on my server but it returns

RE: [PHP] RE: multiple submit buttons

2001-08-31 Thread Johnson, Kirk
Tim Ward wrote: > Be careful using values of submit buttons ... if the user hits return instead of clicking one of the buttons you won't get anything. If you want a default value try a hidden field before the submits with same name. > Tim, thanks for the tip. I had heard of this behavior before

Re: [PHP] Cookies

2001-08-31 Thread Papp Gyozo
http://www.phpbuilder.com/columns/chriskings20001128.php3 - Original Message - From: Jason Radley <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 5:11 PM Subject: [PHP] Cookies > Does anyone know how to share cookies between servers. > What I want to do is set a

RE: [PHP] The future of PHP or my 2 cents

2001-08-31 Thread B. van Ouwerkerk
>I think with everyone replying to "The future of PHP" e-mails and putting in >their two cents, we're eventually going to raise that $100,000 in no time. > Yeah.. not to mention the time it takes to read or just download those messages. I stopped counting and started hitting the delete button.

Re: [PHP] help again

2001-08-31 Thread Philip Olson
Sounds like you want to do : $guiness = 'Thick and Creamy!'; $beer= 'guiness'; print ${$beer}; // Thick and Creamy! Regards, Philip Olson On Fri, 31 Aug 2001, Nikola Veber wrote: > I am having big troubles here. I wrote this code just as it said in the manual, and > it prints >

Re: [PHP] help again

2001-08-31 Thread Alex Marín Fica \(Desarrollo\)
echo sends a literal string to the output and eventually evaluates variables that are found inside, so it seems that your instruction should be: echo "{$beer}'s taste is great"; Why it worked with outside, I guess because it was closing some former tag in your code or something like that... Ho

Re: [PHP] help again

2001-08-31 Thread Jason Bell
All you should need to do is echo "$beer's taste is great"; don't use the braces. -Jbell - Original Message - From: "Nikola Veber" <[EMAIL PROTECTED]> To: "php forum" <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 9:38 AM Subject: [PHP] help again > I am having big troubles here. I

[PHP] help again

2001-08-31 Thread Nikola Veber
I am having big troubles here. I wrote this code just as it said in the manual, and it prints "{$beer}'s taste is great";?> PHP Test "{$beer}'s taste is great"; ?> and if I don't put string into it prints nothing ! I'm kind of confused right now ... (win98, opera 5.12, php installed

Re: [PHP] The future of PHP

2001-08-31 Thread pierre-yves
> > 1) some want direct marketing > 2) Some believe the status quo is enough > 3) all agreee php is useful as a web development tool/language ... Did you open source your thread filter program? :) Good job anyway. For me the most important point is that the developer/maintainer of the language

Re: [PHP] help with strings...

2001-08-31 Thread Philip Olson
Not sure what your goal is here but the easiest (and most efficient) way to get the first character of a string is : $string = 'abcdef'; print $string{0}; // prints a print $string{3}; // prints d So in your case, maybe the following craziness is what you're wanting : ${$string{0}} = '

RE: [PHP] Setcookie

2001-08-31 Thread Galvin, Max
Header redirect isn't vaiable in this situation. > -- > From: Jason Radley[SMTP:[EMAIL PROTECTED]] > Sent: 31 August 2001 17:00 > To: Galvin, Max > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Setcookie > > $alertthem = "Testing your browser for cookies."; > > if

Re: [PHP] just 10 characters from a string

2001-08-31 Thread Alexander Skwar
So sprach »Marcos Lloret« am 2001-08-31 um 09:53:01 +0200 : > i have a long string (about 255 characters) and i would like to show only 10. >how can i do it? substr Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.dig

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Alexander Skwar
So sprach »Arcadius A.« am 2001-08-31 um 17:36:51 -0700 : > Would this work ? Kinda, but not really. If you want to do this, you've got to stuff it all in one function, like so: function dunno($mandatory, $optional1 = NULL, $opt2 = NULL){ if (NULL === $optional1){ // be

RE: [PHP] array search

2001-08-31 Thread Alfredeen, Johan
Joseph, The below postings are what you're looking for. Hopefully the in_array PHP function uses a smart search algorithm and doesn't go through the entire array. If you store your values in a db you can make use of an index on the column, or you could write your own search algorithm that uses a

[PHP] passing variables between scripts?

2001-08-31 Thread Jon Thompson Coon
I can't cope the fact that I loose my variables every time I reload the page. If someone could point me to the right direction, I'd be grateful. Present problem: I have a script that has some globals (surprise). Within this script, pretty deep in a function call tree, a function saves a query in

Re: [PHP] help with strings...

2001-08-31 Thread Papp Gyozo
$GLOBALS[substr($string, 0, 1)] or : $tmp = substr($string, 0, 1); ${$tmp} = 'add whatever value you want'; - Original Message - From: Stig-Ørjan Smelror <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 9:35 AM Subject: [PHP] help with strings... > Hei all. >

Re: [PHP] array search

2001-08-31 Thread Philip Olson
just to add some info. rememember this is case sensitive and spaces do matter, sometimes (depending on your goals) the following will apply : $good_names = array('jim','philip','sasheen'); $my_name= 'PHiliP'; if (in_array(trim(strtolower($my_name)),$good_names)) and, another good fu

RE: [PHP] Setcookie

2001-08-31 Thread Jason Radley
Please enable cookies.You need cookies to shop this site"; } else{ header("Location: somepage.php3"); } } ?> -Original Message- From: Galvin, Max [mailto:[EMAIL PROTECTED]] Sent: Friday, August 31, 2001 9:45 AM To: '[EMAIL PROTECTED]' Subject: [PHP

RE: [PHP] PHP Security

2001-08-31 Thread Alfredeen, Johan
Thanks for the tip. This is what I am talking about. Even with an error like the one you mention below, preferably the page should die nicely and not output a bunch of secret info or other stuff to the client. I am generally careful to prevent that from happening in all my dealings with my mySQL d

[PHP] Setcookie

2001-08-31 Thread Galvin, Max
Is there any way to see whether or not the cookie setting has actually worked without going to another page? I suspect there isn't but I'd like confirmation ;) Cheers Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] array search

2001-08-31 Thread Papp Gyozo
yes, in_array($person, $people)! however, you may take a look into the manual. - Original Message - From: Joseph Bannon <[EMAIL PROTECTED]> To: PHP (E-mail) <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 5:40 PM Subject: [PHP] array search > I have an array of names, like below... >

Re: [PHP] array search

2001-08-31 Thread Andrey Hristov
from http://php.net/quickref.php $os = array ("Mac", "NT", "Irix", "Linux"); if (in_array ("Irix", $os)){ print "Got Irix"; } Andrey HristovIcyGEN Corporationhttp://www.icygen.comBALANCED SOLUTIONS - Original Message - From: "Joseph Bannon" <[EMAIL PROTECTED]> To: "PHP (E-

RE: [PHP] PHP Security

2001-08-31 Thread Seb Frost
Great question - I'd love to know too. I can give you one hint. Make sure that you validate any variables passed in the url. I had a script that should take an integer, and realised if someone put in a fraction or text then the script output errors to the html page showing file and directory na

[PHP] array search

2001-08-31 Thread Joseph Bannon
I have an array of names, like below... $people = array("Jim","John","JP"); Is there a way in an IF statement to see if someone's name is in the array? Like... if ($people =~ $person) { } I don't want to have to create a foreach loop to go through the array to see if that person is there. Jos

Re: [PHP] Databases, arrays and woes

2001-08-31 Thread Papp Gyozo
I think it's very simple to do it. '; // new Type list echo '' . $row['Type']; } // print out the rest of the row like : // Place Name and Place Abbr and ther link echo ''.$row['place name']; echo ' jump '.$row['place abbr'].''; //... } //... ?> or maybe I

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Arcadius A.
Ok .I see Thanks to you both ! Have a nice weekend Arcad -- 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]

Re: [PHP] The future of PHP

2001-08-31 Thread Philip Olson
looks bright. -- 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]

Re: [PHP] PHP to fax

2001-08-31 Thread Sean C. McCarthy
Hi Ari, If you are using Linux (if not you should! really) You can use lprfax which will let you use 'lpr -Pfax -J', mgetty-fax, efax or something like that. If you use one of those programs dump the information to file and use exec() from PHP. Sean C. McCarthy SCI, S.L. (www.sci

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Philip Olson
> One of the downside of PHP IMHO is, that you do not have to define > variables. This leads to a lot of errors. At least there should be a > "option", which forces you to define variables, like maybe so: I've not followed this thread but this is pretty much what E_NOTICE is for, turn it on in

RE: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Boget, Chris
> Cool ... > Now that we're talking about PHP > I'd like to ask a question > You know the "overloading" function in C++ Is that > possible in PHP ? No, I do not believe so. > Basically , I'd like to define more than one function having > the same name but different number of v

[PHP] My apologies for the OOAR's

2001-08-31 Thread Phil Labonte
Apparently I caused some agitation with my reply to Eric. I want to be clear so that everyone knows. I apologies for my reply and I will not be sending anymore OOAR to the list. Once again, I apologize. Phil Labonte -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

[PHP] Plese help me

2001-08-31 Thread soawarat weangkawe
We have installed PHP4.06 manually to use it with IIS 5 on win2000server We did everything the installation guide told us to do. We uncommented some options in php.ini including extension=php_oci8.dll Afer we stopped and started the Web server every dll was loaded except php_oci.dll "unable t

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Arcadius A.
Cool ... Now that we're talking about PHP I'd like to ask a question You know the "overloading" function in C++ Is that possible in PHP ? Basically , I'd like to define more than one function having the same name but different number of variables/parameters ... so PHP would know w

Re: [PHP] Cookies

2001-08-31 Thread Jon Farmer
Ignore my previous post it is incorrect Sorry Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] - Original Message - From: "Jon Farmer" <[EMAIL PROTECTED]> To: "Jason Radley" <[EMAIL PROT

  1   2   >