Re: [PHP] E-Commerce

2004-02-13 Thread Richard Baskett
on 2/12/04 20:43, Jimmy at [EMAIL PROTECTED] wrote: Hi all. Is PHP a suitable language for building an online shop? Where would I go to find out more info on this? Thanks in advance! The best ecommerce shop I have found that runs in PHP and MySQL would be eShox.. a very very very well done

RE: [PHP] Call to a member function on a non-object

2004-02-13 Thread Angelo Zanetti
Hi guys could the fatal error be caused because of something to do with cache? I am running the scripts on my pc and not a server ie:(localhost). thanx -Original Message- From: adwinwijaya [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:35 PM To: Angelo Zanetti Cc: [EMAIL

RE: [PHP] Call to a member function on a non-object SOLVED

2004-02-13 Thread Angelo Zanetti
-Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 10:23 AM To: adwinwijaya Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Call to a member function on a non-object Hi guys could the fatal error be caused because of something to do with cache? I

Re: [PHP] E-Commerce

2004-02-13 Thread Jason Wong
On Friday 13 February 2004 15:45, Radwan Aladdin wrote: No offence intended but ... Do you mean by this I can open a company like PaySystems or 2CheckOut! ... if you're having to ask, then I doubt it. Building a payment gateway is no small undertaking. And frankly it requires far

Re: [PHP] Mp3 with php?

2004-02-13 Thread Sven
Chris W. Parker schrieb: carlos castillo mailto:[EMAIL PROTECTED] on Thursday, February 12, 2004 3:53 PM said: does anyone know how to reproduce a mp3 file with php? What do you mean reproduce? Copy? Create from scratch? Represent visually? In any case.. I'd say PHP cannot do anything but

[PHP] Two easy questions I think..

2004-02-13 Thread Radwan Aladdin
Hi.. 1- In my mySQL DB there is a field named Whole.. there are many rows.. and every one has the value for the field Whole. What I want is to add all these values in all rows for the field Whole then show it on the screen.. I mean by add : 1 + 2 + 3 = 6... 2- I have another filed there

RE: [PHP] Two easy questions I think..

2004-02-13 Thread Vincent Jansen
Sum() and auto_increment Why not read the mysql manual? -Original Message- From: Radwan Aladdin [mailto:[EMAIL PROTECTED] Sent: vrijdag 13 februari 2004 11:14 To: [EMAIL PROTECTED] Subject: [PHP] Two easy questions I think.. Hi.. 1- In my mySQL DB there is a field named Whole.. there

[PHP] mt_strand

2004-02-13 Thread Angela K Hilton
Hi All I could do with some pointers in using mt_strand. I understand that because my server has PHP4.2.0 random number generators need to be seeded using mt_strand or mt_rand. I have the following code [created with the help of this list]: ?php $imgdir = /images/randomimages/; if

RE: [PHP] mt_strand

2004-02-13 Thread Angela K Hilton
Hamid ?php include(/images/randomimages/$image); ? works fine - all the code works OK - apart from the seed issue. A *** Angela K Hilton Web E-Learning Officer ISD, UMIST Tel: 0161 306 3109 *** -Original Message- From:

Re: [PHP] mt_strand

2004-02-13 Thread Jason Wong
On Friday 13 February 2004 18:37, Angela K Hilton wrote: I could do with some pointers in using mt_strand. You do mean mt_srand() ? [snip] mt_srand(make_seed()); Just do the above *once*, somewhere near the top of your code (anywhere before you use mt_rand()). Then just use mt_rand()

[PHP] ODBC with SQL Server

2004-02-13 Thread Juan Torres
Hello, I have a connectoin ODBC with a SQL Server database. A table has a field of type 'nvarchar'. This field contains japanese characters. How can I read these japanese characteres? When I read (with: select name from data) only read '?' character. Thaks very much. Juan Torres. -- PHP

Re: [PHP] mt_strand

2004-02-13 Thread Richard Davey
Hello Angela, Friday, February 13, 2004, 10:37:47 AM, you wrote: AKH However - I'm not 100% sure how to incorporate it into my code - I have AKH tried a few things but each time I break the code. Your make_seed() function isn't going to work in this instance because the important parts of it

Re[2]: [PHP] E-Commerce

2004-02-13 Thread Richard Davey
Hello John, Friday, February 13, 2004, 7:09:47 AM, you wrote: JN First off, it won't install or run if you have register_globals off. Wow, I had no idea - I've known about OScommerce for a while, but didn't realise it needed you to turn on register_globals - that is, quite frankly, shocking.

[PHP] syntax help

2004-02-13 Thread bob pilly
Hi all I have a problem that is probably just a lack of php syntax knowledge on my part and hopefully someone can help me out. I have an array and i want to query a database for each value in that array. I then want to store that result as a new variable called $array[value]total. see code

Re: [PHP] syntax help

2004-02-13 Thread Richard Davey
Hello bob, Friday, February 13, 2004, 12:10:06 PM, you wrote: bp $array=array(Flyer,Email,Phone); bp $array_len=count($array); bp for($i=0;$i$array_len;$i++){ bp $query=select count(score) from test_table bp where source = '$array[$i]'; bp $result=mssql_query($query,$numero); bp

[PHP] Referring to Parent Folders

2004-02-13 Thread Vinny
I don't know if this is a PHP config problem, or an Apache 1.3/PHP 4 problem, or what. When I include a script, say 2 folders up in the structure, I'm having to move up to it instead of skipping to root and moving down to it. Allow me to clarify, let's say my tree structure looks like so

Re: [PHP] Browser Detection another page

2004-02-13 Thread memoimyself
Hello Joel, Before you read my comments below, let me say that I'm not trying to prove you *wrong* or even express disagreement with the points you made; I'm just interested in your reasons. On 12 Feb 2004 at 20:11, joel boonstra wrote: Hopefully you're aware that $HTTP_USER_AGENT is an

Re: [PHP] Referring to Parent Folders

2004-02-13 Thread Richard Davey
Hello Vinny, Tuesday, February 10, 2004, 6:18:09 AM, you wrote: V [doc root] V -[php] V -- script.php V -- [some folder] V --- [another folder] V current.php V So my question is, is this simply a PHP config problem? Nope. Nothing to do with

Re[2]: [PHP] Browser Detection another page

2004-02-13 Thread Richard Davey
Hello, Friday, February 13, 2004, 12:29:07 PM, you wrote: mycb Sure, but why would a user want to fake their browser signature? They might do it without even knowing. Opera will identify itself as IE6 for example if you select that in the Preferences. Other browsers/packages can do it as

[PHP] Re: Mp3 with php?

2004-02-13 Thread memoimyself
Hello Carlos, On 12 Feb 2004 at 18:52, carlos castillo wrote: does anyone know how to reproduce a mp3 file with php? If my Spanish serves me right, what you want to do is play an MP3 file. Well, that's something that would happen on the user's computer and would depend on the presence of a

[PHP] E-Commerce II

2004-02-13 Thread Jimmy
Wow, thanks for the help guys. Appreciate it. Here's 2 other Q that popped into my head while researching... 1. I looked at Yahoo! and bCentral, they both charge monthly fees for using their E-Commerce Tools. Why? I thought it should be a one time thing? Or are they not providing code, just

RE: [PHP] E-Commerce II

2004-02-13 Thread Adrian Teasdale
Wow, thanks for the help guys. Appreciate it. Here's 2 other Q that popped into my head while researching... 1. I looked at Yahoo! and bCentral, they both charge monthly fees for using their E-Commerce Tools. Why? I thought it should be a one time thing? Or are they not providing code,

[PHP] Re: Mp3 with php?

2004-02-13 Thread zerof
There is one possiblitity, using ming extension. http://ming.sourceforge.net/ -- zerof Carlos Castillo [EMAIL PROTECTED] escreveu na mensagemdoes anyone know how to reproduce a mp3 file with php? -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Browser Detection another page

2004-02-13 Thread joel boonstra
[ straying OT, so apologies in advance. ] [ also, quite long. double apologies. ] On Fri, Feb 13, 2004 at 10:29:07AM -0200, [EMAIL PROTECTED] wrote: Hopefully you're aware that $HTTP_USER_AGENT is an unreliable variable, in that it is sent by the client, and can contain virtually anything.

Re: [PHP] Referring to Parent Folders

2004-02-13 Thread Paul Furman
Richard Davey wrote: Why not set-up a variable in a common include file (something like $basedir = /usr/home/vinny/public_html/php) and then you can just do this: include $basedir/script.php; Here's what I use: -- HOME: --

[PHP] Re: E-Commerce II

2004-02-13 Thread Paul Furman
Jimmy wrote: ...they both charge monthly fees for using their E-Commerce Tools. Why? I thought it should be a one time thing? Or are they not providing code, just letting us use the code via Explorer and Frontpage? 2. If I were to look for a website hoster, any recommendations? Many open source

[PHP] New Line code question \r\n etc.

2004-02-13 Thread Al
I've got a php application running on a Unix system and need some help with the new line code. The application reads and saves text in a file from a browser textarea. Also, the text file is occassionally opened and edited via ftp and a regular plain text editor. It appears the new line code

[PHP] PHP and Kerberos5 Single Sign-on

2004-02-13 Thread Ricky Boone
I'm trying to figure out a solution to a problem that my manager has brought to my attention, and that is how to we provide single sign-on (SSO) for our Intranet applications without being forced to use IIS. We are using Active Directory services for LDAP and Kerberos authentication, but are

[PHP] imagecreate undefined...?

2004-02-13 Thread Eric
I've got this fairly simply script: ?php // create a 100*30 image $im = imagecreate( 100, 100 ); // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // write the string at the top left imagestring($im, 5,

Re: [PHP] imagecreate undefined...?

2004-02-13 Thread Richard Davey
Hello Eric, Friday, February 13, 2004, 4:00:02 PM, you wrote: E Fatal error: Call to undefined function: imagecreate() in [file name] on line 3 E I am running under MacOSX 10.3.2 and PHP 4.3.2. Sounds very much like you have PHP without the image library compiled into it. I don't know where to

Re: [PHP] New Line code question \r\n etc.

2004-02-13 Thread BAO RuiXian
Al wrote: [snip...] I'd like to have my code clean up the newline code every pass and standardize it. What new line should I use, \n Unix, or what? Yes, \n is the line separator for Unix. Best Bao Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Uploading, and excuting.

2004-02-13 Thread Chris Sandy
In the last week or 2, ive been reading a lot about servers been getting abused. Scripts uploaded to /tmp I've noticed someone trying to do this on my server so I checked all logs. Nothing found. Suexec didn't pick anything up so im guessing it could be from a php script. Im in the process now

[PHP] mycrypt 3des (php vs .net)

2004-02-13 Thread craig
Hi all, I am truly hoping that someone can help with this. I am making the ecommerce site for a product that I had nothing to do with the development of. =) The product is making a licence file using the .net 3des, but I am not able to get the same output using the mcrypt 3des. this is the

[PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread Jas
I am not sure if it will help of if you have already tried this but try all of the cipher modes available for the tripledes cipher (eg. cfb, ecb, etc.). There may be a difference in the way .net and mcrypt produces the cipher text but if that were the case then it wouldn't be a true tripledes

RE: [PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread craig
I am not sure if it will help of if you have already tried this but try all of the cipher modes available for the tripledes cipher (eg. cfb, ecb, etc.). There may be a difference in the way .net and mcrypt produces the cipher text but if that were the case then it wouldn't be a true

Re: [PHP] Re: date() funtion language

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ohhh thanks hehe Don Read wrote: On 12-Feb-2004 André Cerqueira wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i had problems with locale i think its safer to make a dayname and monthname array, and use getdate(), than build the string yourself

[PHP] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Joshua Beall
Hi All, I originally posted this on 2004-02-09, to alt.comp.lang.php, alt.php, and comp.lang.php, with the followup-to header set to comp.lang.php. Nobody had any thoughts, so I thought I would post here, just in case. I want to turn off magic quotes. I realize in retrospect that using a

Re: [PHP] Re: date() funtion language

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hmz... i just tryed that... didnt work tryed other locale strings, didnt work... do i need something else to make it work? running php4.3.4rc3 on windows Don Read wrote: On 12-Feb-2004 André Cerqueira wrote: -BEGIN PGP SIGNED MESSAGE- Hash:

Re: [PHP] $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] is still set

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 11:38, Joshua Beall wrote: I want to turn off magic quotes. I realize in retrospect that using a .htaccess file to turn magic quotes would probably be better than this code, and I am going to switch to that solution, but I am still trying to figure out what is causing my

[PHP] Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set

2004-02-13 Thread Joshua Beall
Adam Bregenzer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Having a function to undo magic quotes can be very useful if you distribute your application. Here is what I use, just call disable_magic_quotes(). It should not do any damage if magic_quotes is already disabled.

Re: [PHP] Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 12:14, Joshua Beall wrote: However, I am still interested in knowing if my code is broken in any way. It seems to work fine for me, but as per my original post, I did get this one odd behavior, with HTTP_RAW_POST_DATA being set, but _POST being an empty array. Any

[PHP] Constant PHP_OS and Mac Server

2004-02-13 Thread Gerard Samuel
I dont have a Mac handy to get the value of the constant PHP_OS. If anyone has access to a Mac, please reply to me with the output of var_dump( PHP_OS ); Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread Jas
Craig, If that doesn't work I am almost certain there might be a discrepency in how the .net mcrypt libraries actually employ the triple des cipher. On another note, I couldn't get the mcrypt_deinit function to work without error as well. One thing you could do is use the PHP unset() call to

Re: [PHP] PHP and Kerberos5 Single Sign-on

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 10:34, Ricky Boone wrote: I can get the Linux server to talk to Active Directory through LDAP and Kerberos, but to achieve SSO the only way to get it to work on Apache is with mod_auth_gss_krb5 (though I can't seem to get it to build for Apache2), and I couldn't find

[PHP] Re: Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA']isstill set

2004-02-13 Thread Joshua Beall
Adam Bregenzer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Honestly, I didn't see anything glaringly wrong so I deftly skirted your problem by posting code that I find works. :) Hmm, I would probably have done the same :-) One part that may be an issue is you are using each() on

[PHP] preg guru question

2004-02-13 Thread pete M
Im trying to scan a file and lift the image name from the img tag ie img src=THISBIT.ext where there could be ' or I messed around but am 2 embarassed to post code cos it dont work ;-( thanks in advance pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
I spoke with the good folks over at the FSF, and figured out how to do this. The PHP License itself does not restrict the use code under it. The problem was with the GPL, which restricted the use of code under the GPL being paired with code under certain types of licenses (specifically

[PHP] compile problem

2004-02-13 Thread Donpro
Hi, trying to compile PHP 4.3.4. on RedHat Linux 7.3 and getting the following error: checking for CURL support... yes checking for CURL in default path... found in /usr checking for cURL 7.9.8 or greater... configure: error: cURL version 7.9.8 or later is required to compile php with cURL

Re: [PHP] preg guru question

2004-02-13 Thread Jason Wong
On Saturday 14 February 2004 02:25, pete M wrote: Im trying to scan a file and lift the image name from the img tag ie img src=THISBIT.ext where there could be ' or I messed around but am 2 embarassed to post code cos it dont work ;-( It's always better to post something no matter how

Re: [PHP] Re: PHP License question

2004-02-13 Thread Gerard Samuel
On Friday 13 February 2004 01:27 pm, Ben Ramsey wrote: snip In addition, as a special exception, Ben Ramsey gives permission to link the code of this program with those files in the PEAR library that are licensed under the PHP License (or with modified versions of those files that use the

Re: [PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
Yup. I believe that's what you have to do in order to satisfy the restrictions in the GPL. Gerard Samuel wrote: So to clarify. If I have a piece of code that utilises PEAR's Tar class (which uses a PHP License). In order for me to distribute my piece of code (under the GPL) along with the Tar

Re: [PHP] preg guru question

2004-02-13 Thread joel boonstra
On Sat, Feb 14, 2004 at 03:05:40AM +0800, Jason Wong wrote: $doo[1] = 'img src=dah.jpg'; $doo[2] = img src='doo.jpg'; foreach ($doo as $dah) { if (preg_match('/img src=[|\'](.*)\.(.*)[|\']/i', $dah, $matches)) { print_r($matches); } } Note that characters within square brackets

[PHP] Another preg question

2004-02-13 Thread Al
I'm trying to clean up newline code received from a browser textarea. First, I'm normalizing the newline codes to Unix with: $text= preg_replace(/(\r\n|\r)/, \n, $text); //this seems to work OK Next, I want to remove excessive CR/LF, [i.e. more than 2] $text=

Re: [PHP] preg guru question

2004-02-13 Thread joel boonstra
On Fri, Feb 13, 2004 at 02:19:11PM -0500, joel boonstra wrote: snip if (preg_match('/img src=[\'](.*?)\.(.*?)[\']/ig', $dah, $matches)) { print_r($matches); } Doh! The '/ig' should just be '/i'. joel -- [ joel boonstra | gospelcom.net ] -- PHP General Mailing List

Re: [PHP] Another preg question

2004-02-13 Thread Matt Matijevich
snip Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= preg_replace(/\n\n+/, \n\n, $text); // remove excess This doesn't seem to do anything. /snip not 100% sure this is right but give it a try $text = preg_replace(/\n\n+|\n\r[\n\r]+|\r\r+/, \n\n,

Re: [PHP] imagecreate undefined...?

2004-02-13 Thread Brian V Bonini
On Fri, 2004-02-13 at 11:00, Eric wrote: However, when I run it, I get an error: Fatal error: Call to undefined function: imagecreate() in [file name] on line 3 Sound like your version was complied without GD support. http://www.php.net/manual/en/ref.image.php -- BrianGnuPG - KeyID:

RE: [PHP] imagecreate undefined...?

2004-02-13 Thread Vail, Warren
Have you tried dynamically loading the GD functions; http://us2.php.net/manual/en/function.dl.php if (!extension_loaded('php_gd')) { if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) { dl('php_gd.dll'); } else { dl('gd.so'); } } not sure all the names above are correct and

Re: [PHP] Browser Detection another page

2004-02-13 Thread Stuart
[EMAIL PROTECTED] wrote: Before you read my comments below, let me say that I'm not trying to prove you *wrong* or even express disagreement with the points you made; I'm just interested in your reasons. An interesting topic, but the OP was checking if the client was a PDA. Maybe it's just me,

Re: [PHP] Browser Detection another page

2004-02-13 Thread joel boonstra
On Fri, Feb 13, 2004 at 08:01:00PM +, Stuart wrote: [EMAIL PROTECTED] wrote: Before you read my comments below, let me say that I'm not trying to prove you *wrong* or even express disagreement with the points you made; I'm just interested in your reasons. An interesting topic, but the

RE: [PHP] [Q]PHP not taking input values from forms

2004-02-13 Thread Dan Aloma
when i run that, it doesn't show return anything. I really don't understand what's going on with php. I know it's working fine, it's just not returning anything. Even scripts that I KNOW for a fact should be working (i.e. they work for everyone else), don't work for me. Any other ideas? I

RE: [PHP] compile problem

2004-02-13 Thread Sam Masiello
The --with-curl directive can also take a directory (--with-curl=[DIR}). Try passing in the directory where cURL is installed to. (I am not sure where this is since you didn't mention whether cURL is installed on your system via RPM or if you did it from source). Good luck! --Sam Donpro

[PHP] What PHP function can detect session being expired??

2004-02-13 Thread Scott Fletcher
Hi! When I set the session.cache_expire to 60 minutes then on the webpage, how do I get PHP to tell me that session had expired via PHP function or something? Thanks, Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4.3.4 ftp_rawlist null output

2004-02-13 Thread Federico Petronio
Hi... I search about this and found different answers but not a clear one. Somebody talk about a PHP bug, other that it's solved in 4.3.4. I installer PHP 4.3.4 (without ftp-support) and Apache 2.0.48 on Solaris 8, the /tmp dir permission are 777. Time after that I compilled ftp.so module and

[PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Matt Hedges
Hello, I'm working on a webpage at http://hedges.org/busolemiss/template/index.html I need for a table cell to fill in the remaining space between some rows above and a row below, no matter what the window size. I thought this was possible with a height=*, but it doesn't work. If you look at

[PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Michael T. Peterson
I have written a very straightforward user login script. Once the user successfully logs in, I would like my PHP script to take him directly to the home page. I know this sounds simple, but the only solution I've found is a function called do_html_url() from Welling and Thompson's book (see

RE: [PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Chris W. Parker
Matt Hedges mailto:[EMAIL PROTECTED] on Friday, February 13, 2004 1:00 PM said: I need for a table cell to fill in the remaining space between some rows above and a row below, no matter what the window size. I thought this was possible with a height=*, but it doesn't work. you should

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Alex Hogan
Try..., if($login == successful){ $url = yourin.php; } else{ $url = tryagain.php: } header(Location: $url); alex -Original Message- From: Michael T. Peterson [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 3:03 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Chris W. Parker
Michael T. Peterson mailto:[EMAIL PROTECTED] on Friday, February 13, 2004 1:03 PM said: I have written a very straightforward user login script. Once the user successfully logs in, I would like my PHP script to take him directly to the home page. [snip] Can I avoid that intermediate

Re: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Matt Matijevich
snip Can I avoid that intermediate step, somehow? When my script logs in the user, how to I write the code that dispatches directly to the home page? /snip Have you tried a redirect? http://www.php.net/header ?php header(Location: http://www.example.com/;); /* Redirect browser */ /* Make

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Chris W. Parker
Alex Hogan mailto:[EMAIL PROTECTED] on Friday, February 13, 2004 1:10 PM said: if($login == successful){ $url = yourin.php; } else{ $url = tryagain.php: } header(Location: $url); don't forget the rest of the url and don't forget to exit like matt said... i suggest

[PHP] Re: syntax help

2004-02-13 Thread John Kaspar
If you want to actually want the variables $flyertotal, $emailtotal, and $phonetotal, use the line: ${$array[0].total} = $row[0]; But as you defined $array, that will actually create the variables $Flyertotal, $Emailtotal, and $Phonetotal (note the caps). On 2/13/2004 6:10 AM, Bob pilly

[PHP] Linking to files in a mysql db

2004-02-13 Thread David E. Newberger
Hello all, I'm sorry to be asking such a simple question but I'm kind of new at this. how can I link to a file that is referenced in a mysql database. Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hard links

2004-02-13 Thread Ryan A
Hey, I was just going through the ioncube manual (thinking of making something like that, but much cheaper so everyone can afford itmaybe $20?) and came accross this: 3.5.1 Copying with Hard Links [--use-hard-links] The Encoder will normally perform a file copy into the target for non-encoded

Re: [PHP] preg guru question

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 13:25, pete M wrote: Im trying to scan a file and lift the image name from the img tag ie img src=THISBIT.ext where there could be ' or I messed around but am 2 embarassed to post code cos it dont work ;-( Always post code, it can help us understand what you are

RE: [PHP] [Q]PHP not taking input values from forms

2004-02-13 Thread Vail, Warren
I'd try to insert a simple echo statement, and figure out why it's not returning anything. try a file named phpinfo.php snip-- ?php phpinfo(); ? snip--- if your web server implementation is correct that should work. good luck, Warren

Re: [PHP] Hard links

2004-02-13 Thread BAO RuiXian
Ryan A wrote: [snip...] the source and target files are on the same filesystem. My (simple) question is: What is hard links? never really heard of it and googles no help either. Am I missing something? A link is called hard link when its system-file-identifier (SFID) is added to the current

[PHP] Re: HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Paul Furman
table tr td style=border:1px solid black; valign=top topbrtopbrtop /td td style=border:1px solid black; rowspan=2 textbrtextbrtextbrtextbrtextbrtextbrtextbr /td /tr tr td style=border:1px solid black; valign=bottom bot /td /tr /table Matt Hedges

[PHP] logo

2004-02-13 Thread rostik
begin 666 php5.jpg M_]C_X `02D9)[EMAIL PROTECTED]@$`2 !([EMAIL PROTECTED]@[EMAIL PROTECTED],` M```!``$```$:[EMAIL PROTECTED];``4!:@$H``,!``,```$Q M``(4@$R``(4AH=I``0!G ```,@ [EMAIL PROTECTED]AO=]S:]P(#N, `R,# T.C R.C$S(#(R.C4Q M.C [EMAIL

Re: [PHP] Another preg question

2004-02-13 Thread Al
Didn't work. I'm beginning to think the problem is more involved. I am going to break out just the essentials of the code that is involved and debug just it. Thanks Matt Matijevich wrote: snip Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= preg_replace(/\n\n+/,

[PHP] Re: compile problem

2004-02-13 Thread Scott Fletcher
Try specifying the file path where cURL reside on.. Like this -- --with-curl=/usr//*** for example. Scott F. Donpro [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, trying to compile PHP 4.3.4. on RedHat Linux 7.3 and getting the following error: checking for CURL support...

RE: [PHP] logo

2004-02-13 Thread Chris W. Parker
rostik mailto:[EMAIL PROTECTED] on Friday, February 13, 2004 12:53 PM said: please don't send attachments to the list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cli input and screen question(s)

2004-02-13 Thread Matthias Nothhaft
Hi all of you, does someone know how to observe the keyboard input e.g. in a while loop so that I can do other stuff between two keypresses!? And is it possible to make a cli script responsable for special keys like cursor, function (F1, F2...) or Control/Alt-[somekey], PageUp/Down, Enter,

[PHP] Re: cli input and screen question(s)

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://br.php.net/manual/en/intro-whatcando.php PHP is probably not the very best language to write windowing applications, but if you know PHP very well, and would like to use some advanced PHP features in your client-side applications you can also

Re: [PHP] cli input and screen question(s)

2004-02-13 Thread Richard Davey
Hello Matthias, Friday, February 13, 2004, 11:25:41 PM, you wrote: MN does someone know how to observe the keyboard input MN e.g. in a while loop so that I can do other stuff MN between two keypresses!? MN And is it possible to make a cli script responsable MN for special keys like cursor,

[PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 did you post the same message 7 times? try: ? $subject = 'img src=THIS12BIT.ext'; $pattern = '/img[\s]+?src=[\'](.+?)[\'].*?/i'; $matchFound = preg_match_all ($pattern, $subject, $matches, PREG_SET_ORDER); print_r($matches); //$matches[$i][1] is what

RE: [PHP] cli input and screen question(s)

2004-02-13 Thread Chris W. Parker
Matthias Nothhaft mailto:[EMAIL PROTECTED] on Friday, February 13, 2004 3:26 PM said: The other problem is: I would like to draw a screen like midnight commander does. Is there a way to get that work with PHP ? midnight commander? never heard of it. but you might want to look into

Re: [PHP] cli input and screen question(s)

2004-02-13 Thread Adam Bregenzer
On Fri, 2004-02-13 at 18:25, Matthias Nothhaft wrote: The other problem is: I would like to draw a screen like midnight commander does. Is there a way to get that work with PHP ? Ahh, sounds like a Slackware fan. :) You want to look at ncurses[1] in PHP. This lets you draw on a screen. It

RE: [PHP] Fedora FC1 + PHP 4.3.4 + phpMyAdmin 2.5.6 rc1 - Problems Resolving Included Files

2004-02-13 Thread Chris W. Parker
Radi Shourbaji mailto:[EMAIL PROTECTED] on Friday, February 13, 2004 4:05 PM said: Hello All! I'm struggling to get phpMyAdmin working correctly on a new installation of Fedora FC1. What exactly are you having problems with? I would appreciate it if someone could walk me through the

Re: [PHP] Hard links

2004-02-13 Thread Marek Kilimajer
BAO RuiXian wrote: Ryan A wrote: [snip...] the source and target files are on the same filesystem. My (simple) question is: What is hard links? never really heard of it and googles no help either. Am I missing something? A link is called hard link when its system-file-identifier (SFID) is

Re: [PHP] What PHP function can detect session being expired??

2004-02-13 Thread Marek Kilimajer
Scott Fletcher wrote: Hi! When I set the session.cache_expire to 60 minutes then on the webpage, how do I get PHP to tell me that session had expired via PHP function or something? Thanks, Scott F. None, but you can take care of the cleanout yourself. Than you have complete control over the

Re: [PHP] What PHP function can detect session being expired??

2004-02-13 Thread Richard Davey
Hello Scott, Friday, February 13, 2004, 8:43:59 PM, you wrote: SF When I set the session.cache_expire to 60 minutes then on the webpage, SF how do I get PHP to tell me that session had expired via PHP function or SF something? Check for the existence of the session - if it's not there, it's

Re: [PHP] Linking to files in a mysql db

2004-02-13 Thread Richard Davey
Hello David, Friday, February 13, 2004, 9:25:30 PM, you wrote: DEN how can I link to a file that is referenced in a mysql database. Depends what you mean by referenced in MySQL. If you have a URL that links to a file in your SQL table, then just turn it into an href. If the file is stored

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Phillip Jackson
if your do_login script doesn't require any cookies or session information you can just redirect right after auth: ?php //do_login.php $url = http://www.somewebsite.com;; //do stuff if($loggedin == true){ header(Location: . $url); } else{ //possible postback with get var error i.e:

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Michael T. Peterson
Thanks for the quick response, everyone, but I was hoping for something other than redirect()/header(). As I understand them, these services require the complete URL and I'm simply dispatching to another page within my web site (in fact, within the same directory) i.e., I'm looking to use a

Re: [PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Richard Davey
Hello Michael, Saturday, February 14, 2004, 3:20:48 AM, you wrote: MTP Thanks for the quick response, everyone, but I was hoping for something MTP other than redirect()/header(). As I understand them, these services Why? it's a transparent operation and the site visitor will never even see it

[PHP] Re: preg guru question

2004-02-13 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 oops... sorry strange bug happened on my newsreader... 'joel boonstra' regex seems to be the better one hehe all others forgot that if u start with ', u must end with ' hehe (same thing with :p) i dont know why i used square brakets for \s... kinda

Re: [PHP] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-13 Thread Jason Wong
On Saturday 14 February 2004 05:44, Scott Fletcher wrote: I mean, I sometime found a few POST data had incorrectly went over to the GET data. I don't know it's a PHP problem but more of a web browser problem. If something like that really is happening then it seems like a pretty serious bug.

[PHP] Session, loging users in.

2004-02-13 Thread Philip J. Newman
Whats the best information to add to a session to say a user is logged in? I currently have $siteUserLogIn=true; anything else that I could add to beef up security? --- Philip J. Newman Master Developer PhilipNZ.com [NZ] Ltd. [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Re: preg guru question

2004-02-13 Thread Adam Bregenzer
On Sat, 2004-02-14 at 00:24, André Cerqueira wrote: strange bug happened on my newsreader... 'joel boonstra' regex seems to be the better one hehe all others forgot that if u start with ', u must end with ' hehe (same thing with :p) As far as I could tell the regexp I posted was the only

Re: [PHP] Session, loging users in.

2004-02-13 Thread Adam Bregenzer
On Sat, 2004-02-14 at 13:48, Philip J. Newman wrote: Whats the best information to add to a session to say a user is logged in? I currently have $siteUserLogIn=true; anything else that I could add to beef up security? For storing user status use whatever fits your application best. I save

  1   2   >