[PHP] how to run php from the command line in Linux?

2002-08-13 Thread Jean-Christian Imbeault
How can I run a PHP program from the command line in linux? I want to dosomething like: #php prog.PHP Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to run php from the command line in Linux?

2002-08-13 Thread Jason Wong
On Tuesday 13 August 2002 14:41, Jean-Christian Imbeault wrote: How can I run a PHP program from the command line in linux? I want to dosomething like: #php prog.PHP Manual - Using PHP from the command line -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software

Re: [PHP] how to run php from the command line in Linux?

2002-08-13 Thread Jean-Christian Imbeault
Jason Wong wrote: Manual - Using PHP from the command line Thanks! Now for a really dumb question. How do I compile PHP so that I can get a binary executable instead of an Apache module? Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] how to run php from the command line in Linux?

2002-08-13 Thread Jason Wong
On Tuesday 13 August 2002 15:12, Jean-Christian Imbeault wrote: Now for a really dumb question. How do I compile PHP so that I can get a binary executable instead of an Apache module? ./configure make make install -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source

[PHP] printer_draw_text

2002-08-13 Thread Peter Bottenberg
Hi All, I'm trying to print some date right out of an php file, to do this i use the printer_draw_text function. All works fine for one line, but how can i print more than one line? When i put my text in a string, and try to print the string it will print nice squares, but it will not print

Re: [PHP] how to run php from the command line in Linux?

2002-08-13 Thread Jean-Christian Imbeault
Jason Wong wrote: ./configure make make install Thanks! I also have PHP compiled as an apache module and need it. Will this overwrite anything needed by the PHP/apache module? Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] In version 4.2.1 ereg_replace break Apache

2002-08-13 Thread Marcello Lupo
Probably i missunderstand your question but this is my production build... I discovered this problem yesterday after 2 week from the installation?? It is a problem that i had with the dialup_admin package to administer radius account via web, but i was thinking to be a problem of coding of the

Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Geoff Caplan
Mike, Does anyone have any suggested method of scrambling a user's credit card number before I stick it in a mysql database? With respect, if you have to ask the question, you don't have the technical skills to do this safely. In particular, there is no way to keep the numbers secure if you are

Re: [PHP] In version 4.2.1 ereg_replace break Apache

2002-08-13 Thread Marcello Lupo
Solved the problem. I have recompiled php with --with-regex=system instead of --with-system-regex and the problem is disappeared. Thanks anyway for help, Bye Marcello On Tuesday 13 August 2002 10:01, Marcello Lupo wrote: Probably i missunderstand your question but this is my production

Re: AW: [PHP] image function

2002-08-13 Thread Nicholas Mercier
At 03:37 AM 8/13/2002 +0200, you wrote: Hey there, I created a set of scripts that did basically what you are looking to do. THINGS TO CHECK: 1. You may have a problem if you uncommented both DLL files. Apache will complain when it tries to load two libraries with the same functions in

[PHP] Removing session id from url when using session_set_save_handler

2002-08-13 Thread Per
Hi Does anybody know how to get rid of the session id in the url when using session_set_save_handler. There is a user note in the online manual saying that you have to set the cookie manual to accomplish this but it doesn't mention how! I've tested some combinations but I can't get it to

Re: [PHP] security login

2002-08-13 Thread Nicholas Mercier
At 04:12 PM 8/12/2002 +0100, Pag wrote: Here is my humble, but relatively effective solution for a low security site. Create a file called security.php and require it at the head of every secure page. This is the one I use. ? session_start(); if(!session_is_registered(userinfo)) {

[PHP] Help with output from system() or backticks

2002-08-13 Thread David Drewelow
I need to read (and parse) some text-list output from an executable, but the output to the PHP script is limited to the first couple of lines. Running from the command line works fine, and I get the complete output in Perl. Essentially: $output = array (system($executable $param));

[PHP] fruity arrays

2002-08-13 Thread Roger Thomas
i have these arrays: $A_fruit_list = array('A1' = 'Fruit A1', 'A2' = 'Fruit A2', ); $B_fruit_list = array('B1' = 'Fruit B1', 'B2' = 'Fruit B2', ); then i do these: $var = B; $var_list = $var._fruit_list;

RE: [PHP] fruity arrays

2002-08-13 Thread Richard Black
snip $A_fruit_list = array('A1' = 'Fruit A1', 'A2' = 'Fruit A2', ); $B_fruit_list = array('B1' = 'Fruit B1', 'B2' = 'Fruit B2', ); then i do these: $var = B; $var_list = $var._fruit_list; //Note: variable

Re: [PHP] Scheduler, Staff Directory, Work tracker

2002-08-13 Thread Paul Dionne
Um yes, well the issue is not learning it is time. I am on an assignment here for only 4 more months and I have another project to do. There is no point in starting from scratch. I will check the web sites you suggested. Paul Justin French wrote: on 12/08/02 5:59 PM, Paul Dionne ([EMAIL

Re: [PHP] Php lib?

2002-08-13 Thread John Wards
Thanks for that rather handy! Does anyone know what the function set_var() does in template.inc in phplib? I persume it has something to do with the template system.but thats as much as I have figured out!! I am going to replace the phplib template system with Smarty there is not a

Re: [PHP] Php lib?

2002-08-13 Thread Andrey Hristov
Hi, sets the value of the var to be parsed later. HTH Andrey - Original Message - From: John Wards [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 12:58 PM Subject: Re: [PHP] Php lib? Thanks for that rather handy! Does anyone know what the function set_var()

RE: [PHP] Help with output from system() or backticks

2002-08-13 Thread Shawn Sellars
Have you tried it like this? $output = `$executable $param`; $output = explode(\n,$output); print_r($output); It works for me! I get the same weird response as you when I try to create the array directly off of the system call. Good Luck, Shawn Sellars -Original Message-

Re: [PHP] Php lib?

2002-08-13 Thread John Wards
Again ta! I had sort of figured it out while waiting for someone to get back to me. Mental note..must learn objects.no argh John Hi, sets the value of the var to be parsed later. HTH Andrey - Original Message - From: John Wards [EMAIL PROTECTED] To:

RE: [PHP] HTML issue... spaces in between images

2002-08-13 Thread Ford, Mike [LSS]
-Original Message- From: Michael Zornek [mailto:[EMAIL PROTECTED]] Sent: 13 August 2002 02:26 Ok so in my HTML I have: img src=img/tab_1l.gif width=9 height=24 img src=img/home_on.gif width=80 height=24 img src=img/tab_10.gif width=15 height=24 [] anyone know of a way to

[PHP] controls list menu

2002-08-13 Thread kale
hy, I have a list menu: select name=select option value=oneone/option option value=twotwo/option option value=threethree/option /select I want when I select value two my page reloads and it prints You selected value TWO. How can I do this? thx kale.

Re: [PHP] controls list menu

2002-08-13 Thread Justin French
It's a javascript thing. Try the newsgroup comp.lang.javascript Justin French on 13/08/02 8:13 PM, kale ([EMAIL PROTECTED]) wrote: hy, I have a list menu: select name=select option value=oneone/option option value=twotwo/option option value=threethree/option /select I want when

[PHP] Re: controls list menu

2002-08-13 Thread Peter Bottenberg
Hy, Save this script as select.php ?PHP if (!isset($action)) { $action = select; } if ($action == select ) { ? form method=post action=select.php select name=select onChange=this.form.submit() option value=oneone/option option value=twotwo/option option

RE: [PHP] HTML issue... spaces in between images

2002-08-13 Thread James Green
On Tue, 2002-08-13 at 02:29, Matt Babineau wrote: TABLE TR TDIMG SRC=/images/image.gif/TD TDIMG SRC=/images/image.gif/TD TDIMG SRC=/images/image.gif/TD TDIMG SRC=/images/image.gif/TD /TR /TABLE Which leads to other mysterious gaps (that are again part of the HTML

Re: [PHP] include require directive

2002-08-13 Thread James Green
On Tue, 2002-08-13 at 02:55, Huy wrote: But I do... If I left out the require statement all is well.. or I copy the whole content of the included file.. it works fine. The problem is the require statement. Check the file for whitespace, anything outside ?..?php or spaces/blank lines

Re: [PHP] N6: PHP files can't show source

2002-08-13 Thread James Green
On Tue, 2002-08-13 at 05:04, Jean-Christian Imbeault wrote: I'm using Netscape 6.2 and whenever I load one of my .php files I can't get Netscape to show source. I don't have that problem with IE. Can anyone tell me how to configure Netscape so that I can view the HTML output of my PHP

Re: [PHP] Re: controls list menu

2002-08-13 Thread James Green
On Tue, 2002-08-13 at 11:35, Peter Bottenberg wrote: Hy, Save this script as select.php ?PHP - $action = $_POST[action]; if (!isset($action)) { $action = select; } [ snip rest ] Sorry, but the PHP irc channel is full of people asking why form variables can't be seen by PHP for

[PHP] Session variable problem

2002-08-13 Thread Christian Ista
Hello, I'd like to use session variable. I do that (see below) but I receive an error. Other question, how can I do to know if a session variable is already defined ? ?php session_start()? ?php$_SESSION[LG] = 'EN';? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head

[PHP] PHP lib again

2002-08-13 Thread John Wards
Sorry to bother folks again but I have a few phplib questions again. set_file() what does this do and would this be display() in smarty? set_block() this one is baffeling me...can't think what it woudl be in smarty! parse() now is this display in smarty...oh me head... p() argh is this

Re: [PHP] Session variable problem

2002-08-13 Thread Christian Ista
Add a missing space. ok thanks :) How use this variable in a query (mysql_query) ? Is it possible if a session variable is already defined ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and Memory...

2002-08-13 Thread MyBox
Hello! I have a question: In my PHP-script i have created a function with many calculation and variables in the function. example: function testfunc($var1,$var2) { ...many calculation and variables return $result; } When i call the function they will work correktly - no errors, no warnings.

[PHP] Creating a zip file using php

2002-08-13 Thread Rahul
Hi I want to create a zip file using php. Can this be done? If anybody has a code snippet, for this, or any guidelines, please send it to me. Rahul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML issue... spaces in between images

2002-08-13 Thread Brent Baisley
Try adding border=0 to each one. Some browsers would render your code as is without spaces, some will not. They are all supposed render it without spaces, and I think all the latest versions of the browser do. It's the older ones you have to worry about. Also, do you have a DOCTYPE declaration

RE: [PHP] Creating a zip file using php

2002-08-13 Thread Matt Schroebel
From: Rahul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating a zip file using php Hi I want to create a zip file using php. Can this be done? If anybody has a code snippet, for this, or any guidelines, please send it

[PHP] radio value

2002-08-13 Thread adi
hi: i have 2 file: file1.php, file2.php in file2.php i have: echo form name='popupform' echo input type=text name=cod value='$cod'nbsp; echo Alege sistemul: input type=button name=choice value='alege' onClick=window.open('file1.php','popuppage','width=450,

RE: [PHP] Creating a zip file using php

2002-08-13 Thread Rudolf Visagie
The following zip creation class by Eric Mueller works well: ?php /* Zip file creation class makes zip files... use the functions add_dir() and add_file() to build the zip file; see example code below by Eric Mueller, [EMAIL PROTECTED], http://www.themepark.com BASED ON zip file

[PHP] question concerning php parsing

2002-08-13 Thread Randy Johnson
if i have functions.php with 10 functions in it and include the file in my main php file and call 1 of the 10 functions in my program does the whole functions.php have to be parsed or does it just include the function that is needed. I am just curious as I plan to use the phpa on my scripts

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-13 Thread Petre Agenbag
Rasmus OK, I think I understand the principle now, yet, when I implement id, my app still fails. I have register_golbals = on, BUT, I want to find a way to code that I know will always work, regardless of register_globals or cookies, so that I am only dependant on the trans-sid ( but If I could

[PHP] PHP 4.2.2 and Apache 2

2002-08-13 Thread MET
So how stable are they? I'm not running a production server, but a development server. Everything coming off of this box goes directly to a production server. ~ Matthew /** Matthew Metnetsky [EMAIL PROTECTED]

[PHP] Variable naming standards???

2002-08-13 Thread Gerard Samuel
A philosophical question Are there any standards to naming variables?? I was told that one should include a letter or combination of letters to describe a variable i.e. $sfoo = 'string'; // string $bfoo = true; // bool $nfoo = 10; // interger etc Thanks -- Gerard Samuel

RE: [PHP] Variable naming standards???

2002-08-13 Thread Jay Blanchard
[snip] A philosophical question Are there any standards to naming variables?? I was told that one should include a letter or combination of letters to describe a variable i.e. $sfoo = 'string'; // string $bfoo = true; // bool $nfoo = 10; // interger [/snip]

RE: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread César Aracena
Mike, I agree with the things that Geoff is telling you. What I have seen in the past and even in some free PHP programs that I downloaded for learning purposes, is the CC number stored in your database but not entirely. I mean like 1234789 so the customer can verify that the transaction

[PHP] Sessions in a database?

2002-08-13 Thread Randy Johnson
When i started to learn php there was talk of storing session information in a database rather than in a particular directory like /tmp Is it better to store the session data in a database rather than a directory? Is it faster if it is stored in the database? Randy -- PHP General Mailing

Re: [PHP] Re: controls list menu

2002-08-13 Thread kale
hy, I have next lines of code: 1. form method=post action=leadview.php select name=viewleads onChange=this.form.submit(viewleads) option value=AOLAll Open Leads/option option value=MULMy Unread Leads/option option value=RVLRecently Viewed Leads/option

[PHP] parse URL good syntaxe please

2002-08-13 Thread Christian Ista
Hello, Could you tell me why on PHP 4.2.2 this code work ?php switch ($_GET['fuseaction']) { case 0: print i equals 0; break; default: print i is not equal to 0, 1 or 2; } ? and this one not : ?php switch ($fuseaction) { case 0: print i

[PHP] Re: A kind of array (hashtable)

2002-08-13 Thread lallous
Yes, PHP support indexing by strings and not only numbers/indexes. $myarray['elias'] = 'PHP rulez!'; echo $myarray['elias']; Christian Ista [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, In some language (like Java, C#, ...) you can find a hashtable.

[PHP] Re: parse URL good syntaxe please

2002-08-13 Thread lallous
you can use isset() better grab a PHP starter document or tutorial. Elias Christian Ista [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Could you tell me why on PHP 4.2.2 this code work ?php switch ($_GET['fuseaction']) { case 0:

Re: [PHP] parse URL good syntaxe please

2002-08-13 Thread Jim Dam
First of all, you need to use the $_* superglobals if register_globals is off. That is, to access get variables, you use $_GET['variable_name'] To check if the variable is set, use the isset function. if (IsSet($_GET['variable']) { // code } else { //error } - Original Message - From:

[PHP] Re: parse URL good syntaxe please

2002-08-13 Thread Christian Ista
Could you tell me why on PHP 4.2.2 this code work My previous mail it was for my development machine, IIS, windows 2000 and PHP4.2.2. My host use PHP4.2.2 on linux and that's work. Could you tell me why this difference ? Bye -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-13 Thread Analysis Solutions
Petre: On Tue, Aug 13, 2002 at 03:18:42PM +0200, Petre Agenbag wrote: I have register_golbals = on, BUT, I want to find a way to code that I know will always work, regardless of register_globals or cookies, so that I am only dependant on the trans-sid ( but If I could rule that out too, it

Re: [PHP] PHP, XML and HTML-Tags

2002-08-13 Thread Analysis Solutions
On Tue, Aug 13, 2002 at 03:22:03PM +0200, Bernard wrote: I am using successfully the PHP XML-parser. But I have one problem. I like to include html tags into the texts and I don't want them to be interpreted by the parser. Have you tried putting the XML in CDATA sections? That's really

Re: [PHP] question concerning php parsing

2002-08-13 Thread Analysis Solutions
On Tue, Aug 13, 2002 at 09:22:47AM -0400, Randy Johnson wrote: if i have functions.php with 10 functions in it and include the file in my main php file and call 1 of the 10 functions in my program does the whole functions.php have to be parsed or does it just include the function that is

Re: [PHP] PHP 4.2.2 and Apache 2

2002-08-13 Thread Aaron Gould
We have been using PHP 4.2.1/4.2.2 with Apache 2.0.39 for a month on a development server with absolutely no problems at all. The PHP group has deemed Apache 2 support in 4.2.x as experimental, but judging by its stability, a non-experimental release can't be more than a couple months away. --

RE: [PHP] parse URL good syntaxe please

2002-08-13 Thread Christian Ista
First of all, you need to use the $_* superglobals if register_globals is off. That is, to access get variables, you use $_GET['variable_name'] What do you mean by that ? (I'm newbie in PHP) Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] parse URL good syntaxe please

2002-08-13 Thread Jim Dam
Try taking a look at this tutorial for PHP. http://www.php.net/manual/en/tutorial.php - Original Message - From: Christian Ista [EMAIL PROTECTED] To: 'php list' [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 10:32 AM Subject: RE: [PHP] parse URL good syntaxe please First of all,

[PHP] Extensions?

2002-08-13 Thread Php
I'm trying to configure my php.ini file on my local Windows 2000 system so I can use the extensions such as GD, etc. I have changed the line: extension_dir = C:\php\extensions ; (which is where php_gd.dll resides) and uncommented: extension=php_gd.dll and when I restart the web service and

AW: [PHP] Performance of ZLib

2002-08-13 Thread Sascha Braun
Do you know another possibility to store multiple files in one package? - And most users in the web can use it, without getting special programms. I know tar can, but there either I don't know how fast it is. Maybe there is an freeware programm for all plattforms wich can untar, but a i don't

AW: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Sascha Braun
If there is no secure way to store creditcards on webservers, please tell me about how secure it is to encrypt passwords with md5 encryption. I want a password secured area in my website where I store some company concepts I invented. I'm searching for people who got enough money to make these

AW: [PHP] image function

2002-08-13 Thread Sascha Braun
I believe the jpeg funnktions don't work on a windows system. The Gifs don't do either because they aren't implemeted too. Please look at this Library. It's very nice but I don't get it working and the guy who made it don't know either, why it's not working on my system. Must be something about

Re: [PHP] Extensions?

2002-08-13 Thread Neil Freeman
Try this instead... extension_dir = C:/PHP/extensions/ and ensure that the GD section is present in phpinfo() output. Neil Php wrote: ** This Message Was Virus Checked With : SAVI 3.60 May 2002 Last Updated 8th August

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Jim Dam
MD5 encryption of passwords is secure since you do not need to decrypt the password ever (in fact you can't). You just encrypt the password that the user entered and check if the MD5 of each password is the same, then the user most likely entered the correct password. - Original Message

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-13 Thread Rasmus Lerdorf
No real reason to start the session in index.php. You are not registering any session vars, nor are you accessing any. index.php ?php session_start(); ? form name=form1 method=post action=admin_select.php table border=0 cellspacing=0 cellpadding=0 tr bgcolor=#CFCFCF

[PHP] mailing list managers

2002-08-13 Thread Justin French
Hi all, Just a quick note to see if anyone has any experience with mailing list managers. I've currently got a DB of subscribers, and basic PHP scripts are not going to be a good long-term solution. I was hoping that maybe there's an opensource or commercial product out there that I can

[PHP] image creation class

2002-08-13 Thread Sascha Braun
Maybe there went something wrong with the attachment in my last mail. This is my second try bring the class for creating thumbs to you. ? //Images Wrapper for thumbs and other stuffs, require GDLib //Riccardo Pasquini, 04/04/2001, v0.1 [EMAIL PROTECTED] /* Finally the class review, 09/08/2002,

[PHP] xls or csv files

2002-08-13 Thread M.E. Suliman
Hi Once data is collected from a form is it possible for that to be emailed as an xls or csv. I have the form and email part but have no idea in getting the result into xls or csv. Any help would be appreciated. Thanks Mohamed -- PHP General Mailing List (http://www.php.net/) To

AW: AW: [PHP] Performance of ZLib

2002-08-13 Thread Sascha Braun
Thanks for the quick answer, but is tar scriptable via PHP? Schura -Ursprungliche Nachricht- Von: Gareth Ardron [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 13. August 2002 17:10 An: Sascha Braun Betreff: Re: AW: [PHP] Performance of ZLib At 16:46 13/08/2002 +0200, you wrote: Do you

Re: [PHP] PHP 4.2.2 and Apache 2

2002-08-13 Thread Rasmus Lerdorf
Which OS, which extensions and how much load have you put it under? There are known thread safety issues in various libraries that you can link PHP against. And some of them are subtle. Did you know, for example, that libpq (the PostgreSQL client library) is threadsafe except for the case

Re: [PHP] mailing list managers

2002-08-13 Thread Miles Thompson
Justin, Have a look at PostMyMail, although it's designed to work with PostNuke. Have no idea if it can run stanadalone. I also wrote a clunky one in Python - it grabbed the addresses from a database and sent each individually. Python has a very nice SMTP module. By clunky I mean it didn't

Re: [PHP] include require directive

2002-08-13 Thread Huy
Thanks, I thought I checked that already. Obviously, I use notepad in Win2000 to edit the files, and save them as Unicode file, which Notepad put some characters at the beginning of the file. Only when I use another editor was I able to see those strange characters. After deleting them, the

[PHP] DPHPEdit users - FORUM available

2002-08-13 Thread Davor Pleskina
Dear DPHPEdit users, You can now report bugs, request features or discuss functionality of DPHPEdit using a newly created forum. The forum is accessible through DPHPEdit Home Page - http://www.pleskina.com/dphped or directly: http://www.pleskina.com/dphped/forum_login.php Keep looking for new

Re: [PHP] PHP 4.2.2 and Apache 2

2002-08-13 Thread Aaron Gould
These are the command line parameters I used when compiling Apache on our development server: --prefix=/usr/local/apache --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr --with-mcrypt=../mcrypt-2.6.2 --with-imap --with-imap-ssl --enable-ftp --with-gettext --with-xml

[PHP] switch statement question

2002-08-13 Thread Alexander Ross
Say i have a variable $string_var = Once upon a time; is there a way to do this: Switch($string_var) { case(contains Once): doSomething(); break; case(contains the end.) doOtherThing(); break; case(contains time) doNothing(); break; default: echo ERROR } Thanks

[PHP] relocation

2002-08-13 Thread Christian Ista
Hello, Is there a possibility to call (jump not include) with some parameters (index.php?var1=var2=) a php page without click. For example : case todo: call here index.php?var1=var2= --- jump to this page break; bye Christian, -- PHP General Mailing List

RE: [PHP] switch statement question

2002-08-13 Thread Jay Blanchard
[snip] Say i have a variable $string_var = Once upon a time; is there a way to do this: Switch($string_var) { case(contains Once): doSomething(); break; case(contains the end.) doOtherThing(); break; case(contains time) doNothing(); break; default: echo ERROR }

[PHP] PHP-Ebay Interface

2002-08-13 Thread Adam Voigt
Anyone have any idea how to easily interface with the Ebay engine other then with the expensive developer subscription? Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] relocation

2002-08-13 Thread Justin French
header(Location: index.php?var1=var2=); make sure you send this before outputting anything to the browser. Justin French on 14/08/02 1:49 AM, Christian Ista ([EMAIL PROTECTED]) wrote: Hello, Is there a possibility to call (jump not include) with some parameters

RE: [PHP] relocation

2002-08-13 Thread Daniel Kushner
case todo: header('Location: index.php?var1=var2='); exit; case 'aaa': header('Location: index.php?var1=asddtvar2=ppapp'); exit; Regards, Daniel Kushner [EMAIL PROTECTED] __ Need hosting?

Re: [PHP] relocation

2002-08-13 Thread [-^-!-%-
Perhaps with a HEADER statement. i.e. headers(index.php?var=valuevar2=value2); =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Tue, 13 Aug 2002, Christian Ista wrote: Hello, Is there a

RE: [PHP] relocation

2002-08-13 Thread Richard Black
Or even header(Location: index.php?var=valuevar2=value2); And you would probably want to follow that with exit; Rather than break; HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504

[PHP] Passing array to function

2002-08-13 Thread Bill Hudspeth
I am trying to write a function that builds a multiple-choice drop down list. As such, I need to specify an array in the name attribute of the select tag. I am trying to pass a parameter to the function which gets used as this name attribute, but seem to be having problems with the square

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Robert Parker
On Tuesday 13 August 2002 10:57 am, you wrote: MD5 encryption of passwords is secure since you do not need to decrypt the password ever (in fact you can't). You just encrypt the password that the user entered and check if the MD5 of each password is the same, then the user most likely

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Adam Voigt
Makes sense, except if you use upper and lowercase characters, numbers, and symbols (as you should for secure passwords). I would think that with these kind of passwords, storing the sheer number of posibilites would get slightly large. And I mean even if it is easy to break, it's more secure

RE: [PHP] Passing array to function

2002-08-13 Thread Ford, Mike [LSS]
-Original Message- From: Bill Hudspeth [mailto:[EMAIL PROTECTED]] Sent: 13 August 2002 17:10 [] DESIRED FUNCTION VERSION $elementname=cgroup_1[]; $elementsarray=$chon_group_a; PrintOptionBox($elementname,$elementsarray); Well, looks ok-ish so far -- what's in the

Re: [PHP] switch statement question

2002-08-13 Thread DL Neil
Alternatively Alexander, take a look at the string functions eg strstr(), stristr(), and strpos() all of which can be used to make a condition within the case() criteria. Regards, =dn [snip] Say i have a variable $string_var = Once upon a time; is there a way to do this:

[PHP] requesting sites running OS X

2002-08-13 Thread Michael Geary
Hi All, I have been asked by a rep at a large software dev company about any websites live-to-the-world running OS X. We are, but we're not exactly huge (max hits/day = approx. 1000, mostly internal). So, what sites are you aware of? They don't even have to be running PHP. Please let me

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Robert Parker
On Tuesday 13 August 2002 12:20 pm, you wrote: Makes sense, except if you use upper and lowercase characters, numbers, and symbols (as you should for secure passwords). I would think that with these kind of passwords, storing the sheer number of posibilites would get slightly large. And I

Re: [PHP] PHP-Ebay Interface

2002-08-13 Thread Andrew Brampton
Well not a legal idea no :) Andrew - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 13, 2002 4:52 PM Subject: [PHP] PHP-Ebay Interface Anyone have any idea how to easily interface with the Ebay engine other then with the expensive

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Adam Voigt
If I could find the link I would send it, but I read about 6 months back on RSA Data Security's website that a study was being done by mathemetician's and at the time they were theorizing that they highly doubted any overlap in keysums but if such did exist they believed that the key you would

[PHP] MD5 and Password Security?

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 10:57 am, you wrote: - MD5 encryption of passwords is secure since you do not need to decrypt the - password ever (in fact you can't). You just encrypt the password that the - user entered and check if the MD5 of each password

[PHP] Re: radio value

2002-08-13 Thread Mike Mannakee
Your problem is a JavaScript one, not php. Your variable - 'selvalue' is only defined within the function. Define it globally outside the function. Trouble is it currently looks like the variable doesn't exist by the time the function exits. See if that works. Mike Adi [EMAIL PROTECTED]

[PHP] session.use_trans_sid question

2002-08-13 Thread Sean Brown
After reading other posts, I have found that there are two ways to disable use_trans_sid at runtime. I do NOT have the ability to change the php.ini file, so I am stuck with handling this at runtime. 1. in code: ini_set(session.use_trans_sid,0); 2. in an .htaccess file: IfModule mod_php4.c

Re: [PHP] requesting sites running OS X

2002-08-13 Thread Andrew Brampton
A good reference I can point you to is Netcraft.com, they record what OS/Webserver 1000s of sites are using, you can type in a website name and it will tell you all sorts of stats... Usally it will also tell you other similar sites running on the same OS and or Server... but for some reason it

Re: [PHP] session.use_trans_sid question

2002-08-13 Thread Rasmus Lerdorf
You cannot do it inside the script as the trans-sid stuff happens before your script is executed. The setting is changed, so ini_set() is doing its job, it's just that it sets it too late. In your .htacess file, just do it per-location: Location foo.php php_value session.use_trans_sid 0

[PHP] Re: Passing array to function

2002-08-13 Thread Mike Mannakee
You'll find the values accessible in $_POST as $_POST['cgroup_1']['0'], $_POST['cgroup_1']['1'], etc. $_POST itself is an array, and so is your variable. HTH Mike Bill Hudspeth [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to write a function

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 12:20 pm, you wrote: - Makes sense, except if you use upper and lowercase characters, - numbers, and symbols (as you should for secure passwords). I - would think that with these kind of passwords, storing the sheer - number of

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Adam Voigt
True, and there's always the MCRYPT library. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-13 at 12:48, John S. Huggins wrote: On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 12:20 pm, you wrote: - Makes sense, except if you use upper and lowercase characters, -

RE: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Richard Black
Doesn't md5 generate a 128 bit binary number??? That means there are 3.4028236692093846346337460743177e+38 possible combinations which can be generated. So surely the odds of 2 strings producing the same md5 code are 1 in 3.4028236692093846346337460743177e+38??? Having said that, I guess

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread John S. Huggins
On Wed, 14 Aug 2002, Robert Parker wrote: -On Tuesday 13 August 2002 12:20 pm, you wrote: - Makes sense, except if you use upper and lowercase characters, - numbers, and symbols (as you should for secure passwords). I - would think that with these kind of passwords, storing the sheer - number of

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Analysis Solutions
On Wed, Aug 14, 2002 at 02:20:07AM -0400, Robert Parker wrote: I don't remember where I read this but it only takes the crackers about 1 - 2 seconds to crack your average MD5 encrypted password. This is quite logical because all they had to do is make a database of all of the MD5 sums of all

  1   2   3   >