[PHP] Re: Problem with include PHP 4.3.0 (Fixed)

2003-02-07 Thread Jean-Pierre Gallou
I wrote : I have problems with relative paths and 4.3.0. Include() do not seem to work the same way in 4.3.0 and 4.2.1. This is mostly due to a characteristic of Solaris and a minor change in the way PHP handles includes (I guess): 1) Before parsing a script, PHP sets the directory of this

[PHP] session lost after window close

2003-02-07 Thread Libor Bubik
I have problem with session in MS IE. When I open new window from main window and then I close this window, in parent window are lost all session variables. Libor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Different dates with lmost same script

2003-02-07 Thread Miguel Brás
Hi, I have 2 pages that shows a table contents On one, it shows the title and date with the following script ** ? // includes include(../regulations/conf.php); include(../regulations/functions.php); // abre ligação à base de dados $connection =

[PHP] Re: problems with ==?

2003-02-07 Thread Seraphim
Peter Gumbrell wrote: In the following code $view = $HTTP_GET_VARS[view]; print $view; if ($view == vendor) { code here } print $view produces 'vendor' but the if statement in the next section isn't being triggered. Can anyone see what is wrong here? I have tried double quotes, single

RE: [PHP] empty variables from a form

2003-02-07 Thread Ford, Mike [LSS]
- Original Message - From: Erich Beyrent [EMAIL PROTECTED] To: Sunfire [EMAIL PROTECTED] hi.. how would you test for an empty (unused) variable from a form.. i have a phone number split into 3 different vairiables and want to test to see if they were used in the

[PHP] Dynamic input fields in Form

2003-02-07 Thread fkeessen
Hi, Does anyone have a working example or a hint in the right direction for the following; I have a form where the user selects for example; how many cars you have: 4. Then it most dynamicly create 4 input fields (with different names) in the form where they can fill in the car brand and also

[PHP] dynamic form input fields

2003-02-07 Thread fkeessen
Hi, Does anyone have a working example or a hint in the right direction for the following; I have a form where the user selects for example; how many cars you have: 4. Then it most dynamicly create 4 input fields (with different names) in the form where they can fill in the car brand and

RE: [PHP] Dynamic input fields in Form

2003-02-07 Thread Jon Haworth
Hi Frank, I have a form where the user selects for example; how many cars you have: 4. Then it most dynamicly create 4 input fields [...] Using only PHP, you'll have to make this a two-step process where page 1 collects the number of cars and posts to page 2, which generates the form

[PHP] Re: Powerpoint presentations?!?

2003-02-07 Thread Philippe Saladin
I've been asked to write code that will dynamically generate Microsoft Powerpoint presentations. It has to assemble collections of pages, and possibly substitute a word or phrase here and there (mailmerge style). There doesn't seem to be a published document describing Powerpoint file

[PHP] looking for php mailing-list in chinese language

2003-02-07 Thread yang
I'm sorry for my english if you know mailing-list about php in Chinese language, please let me know! thanks! Yang Zhaori

RE: [PHP] empty and isset

2003-02-07 Thread Ford, Mike [LSS]
-Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: 06 February 2003 21:27 actually so does empty end up testing true on an empty var... thats because empty thinks or string(0) is actually a string just blank... a trick to do with empty is use !empty which will

[PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Brian V Bonini
Any thoughts as to why this snippet: 25: if ($attach != none) 26: { 27:$file = fopen($attach, r); 28:$contents = fread($file, $attach_size); 29:$encoded_attach = chunk_split(base64_encode($contents)); 30:fclose($file); would produce these errors: Warning: fread(): supplied

[PHP] Re: 4.0.6 to 4.3.0

2003-02-07 Thread nicos
Yes, see http://www.php.net/manual/en/language.variables.predefined.php You should use $attach = $_GET['attach']; before if it's comming from an URI or $_POST or $_SESSION or $_COOKIE... -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. Brian V

[PHP] Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread SED
Hi, Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? Is it a bug? Or? My ISP config: System Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 Build Date Jan 24 2003 19:35:29 Configure Command './configure'

[PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread nicos
You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd --with-jpeg-dir=DIR. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. Sed [EMAIL PROTECTED] a écrit dans le message de news: 000901c2ceb3$90746450$[EMAIL PROTECTED] Hi, Why is

[PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread nicos
Typos: You need to install jpeg-6b ftp://ftp.uu.net/graphics/jpeg/ and then add --with-jpeg-dir=DIR on your configure line. Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. - Original Message - From: [EMAIL PROTECTED] Newsgroups:

RE: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread SED
So, why is this function not included in GD like imagecreatefrompng()? Can this be just bad configuration at my Administrator behalf? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 7. febrúar 2003 14:15 To: [EMAIL PROTECTED] Subject: [PHP] Re: Why is function

Re: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread nicos
It is not included because your didn't installed jpeg lib. GD needs an external lib to work with jpeg, so yes it's an administrator's work. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. Sed [EMAIL PROTECTED] a écrit dans le message de news:

php-general Digest 7 Feb 2003 14:23:58 -0000 Issue 1869

2003-02-07 Thread php-general-digest-help
php-general Digest 7 Feb 2003 14:23:58 - Issue 1869 Topics (messages 134702 through 134724): problems with ==? 134702 by: Peter Gumbrell 134703 by: Martin Towell 134710 by: Seraphim Re: WYSIWYG Content Management system? 134704 by: . Nilaab 134705

RE: [PHP] WYSIWYG Content Management system?

2003-02-07 Thread Hardik Doshi
Hey Thanks for your nice advice. I will definately think about it. Hardik --- @ Nilaab [EMAIL PROTECTED] wrote: Why don't you two gather up a few more developers, decide on what is needed and what the goals are, then assign parts to build for the new CMS. Once finished, you can maybe

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
Any thoughts as to why this snippet: 25: if ($attach != none) 26: { 27:$file = fopen($attach, r); 28:$contents = fread($file, $attach_size); 29:$encoded_attach = chunk_split(base64_encode($contents)); 30:fclose($file); would produce these errors: Warning: fread():

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Brian V Bonini
On Fri, 2003-02-07 at 09:44, Rich Gray wrote: Any thoughts as to why this snippet: 25: if ($attach != none) 26: { 27:$file = fopen($attach, r); 28:$contents = fread($file, $attach_size); 29:$encoded_attach = chunk_split(base64_encode($contents)); 30:

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
[snip] After upgrading from 4.0.6 to 4.3.0 Most probably because with 4.3.0 register_globals is set to OFF by default - where does $attach get set? Nope, I do have register_globals on in php.ini Its being set in another file like this: form enctype=multipart/form-data

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Brian V Bonini
On Fri, 2003-02-07 at 10:13, Rich Gray wrote: Hi Brian Why are you using $_GET[] when your form is submitting via the 'post' method? My bust, just a typo. It's actually: if ($attach != none) that is beign used anyway. Secondly for file uploads why are you not using the $_FILES[]

[PHP] 3 tier web development

2003-02-07 Thread Hardik Doshi
Hi Everyone, I am curious to know how one can develop 3-tier web based applications using PHP, MySQL. Here Database should be changed in future using database abstraction layer. Can anybody tell me in detail that how can i build 3 tier flexible web application? More questions on this thread: 1.

[PHP] WYSIWIG CMS Part1

2003-02-07 Thread Sascha Braun
Ok, overspoken. I'm going to write my basic CMS Concept here, and let us see what happens then. My Multilanguage Frontend Engine has even finished, but still needs a nice Admin Frontend to do the translation of the Frontend. Ok, lets start. Later I will tell some about the things which I could

[PHP] WYSIWYG CMS Part2

2003-02-07 Thread Sascha Braun
Parts which should be entered in the Site, but which are not written down yet: 1. Newsletter / Mailinglist Funktionality The Newsletter should be part of the Article Management and work in the same way as writing a new article. Mailinglist is what ever it is. Maybe a Majodomo implementation or

[PHP] Catching Oracle Errors

2003-02-07 Thread fdo cruz
I'm working with Oracle 8.1.5 and my connection is working fine as well as my SQL parsing but I want that when there's an error, show and friendly message to the user and not an Oracle error. How can I catch the error and display it ?? Thanks, Fernando Cruz

Re: [PHP] 3 tier web development

2003-02-07 Thread Hardik Doshi
Ok so for seperating interface and PHP code, smarty templace engine is the best right? What about database abstraction layer? thanks for your information. I really appreciate that. Hardik --- John Wells [EMAIL PROTECTED] wrote: Hardik Doshi said: 1. How one can seperate HTML and PHP (or

RE: [PHP] 3 tier web development

2003-02-07 Thread Daniel Masson
Hardik: Maybe this can help: Im currently using PHP using MCV (Model Control View) Methology, Model is about libraries and classes like the business rules of your application, Control has to do with the como control sentences you must use like IF, WHILE,FOREACH, ... , and View is the look and

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
Secondly for file uploads why are you not using the $_FILES[] superglobal array? I did not write the app, just trying to figure out why it stopped working after upgrading PHP. You think that's the problem? Well try ... if (is_uploaded_file($_FILES['attach']['tmp_name'])) { //

RE: RE: [PHP] WYSIWYG Content Management system?

2003-02-07 Thread Hardik Doshi
Hi Sascha, Really Nice. I like your thoughts about CMS. Today i am looking in PHP Nuke CMS and i found it has really nice functionalities. I don't know much about PHP nuke CMS. That's what you are looking for? Give some thoughts on PHP Nuke project. thanks and all the best for your ideas Hardik

RE: [PHP] 3 tier web development

2003-02-07 Thread Hardik Doshi
Hi Daniel, Thanks for your comments. What is the difference between PHP nuke and Smarty engine? Can we use PEAR or ADODB as database abstraction layer? Which one is the best on everyone's experience? thanks Hardik --- Daniel Masson [EMAIL PROTECTED] wrote: Hardik: Maybe this can help:

[PHP] is_numeric fails and don't know why

2003-02-07 Thread fmendezpalma
Hi, I'm trying to read a file that contains a group of numbers, each of them in one line of the file. I need to verify that the file is valid, so i read line by line and test if the line is numeric: ... $line = fgets ($FileDesc); $line = trim ($line); if (!is_numeric ($line)) return 0;

RE: [PHP] 3 tier web development

2003-02-07 Thread Chris Shiflett
--- Hardik Doshi [EMAIL PROTECTED] wrote: What is the difference between PHP nuke and Smarty engine? A better question would be what is the similarity. Smarty is a template engine. PHP Nuke is an application written in PHP. Chris -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: 3 tier web development

2003-02-07 Thread David Eisenhart
You may be interested in the article: Using PHP to Develop Three-Tier Architecture Applications (http://www.zend.com/zend/tut/tutsweatpart1.php) David Eisenhart. Hardik Doshi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Everyone, I am curious to know how

RE: [PHP] 3 tier web development

2003-02-07 Thread Daniel Masson
Hardik: PHP nuke is 100% CMS, snarty offers the posibility to integrate SMART templates to you php application, smarty templates can do lots of tasks that you used to perform on your php scripts ... there are tutorials on zend.com .. and im sure that if you learn how to use it ... youll be very

[PHP] regex

2003-02-07 Thread Marian Feiler
Hello there, i have to check if there's a dot in a string, and i need nothing but the regex pattern for this... tryed a lot, but the dot itself means to matches all. can u help ? regards marian feiler -- Internetservice Marketing Agentur isurfin.net Marian Feiler Altenessener Str. 99

RE: [PHP] 3 tier web development

2003-02-07 Thread Daniel Masson
About the database sigue .. i dont use ADOD or PEAR .. I use this: //Class to handle ALL operations an ANY database Class data_base ( //Predetermined value of attributes, you can safely override this when //do many instances of this class $dbtype = mssql; $duser =

Re: [PHP] WYSIWYG CMS Part2

2003-02-07 Thread Sascha Braun
Now it is fixed, and the language translation does work now the right way. Its not much to see, but there is something to see. So dont expect to much. In http://bmc.customer.speedlink.de/freecon/admin/admin_from.php is a small script which alows you to to enter a new language, but yet there is no

Re: [PHP] regex

2003-02-07 Thread Chris Hayes
i have to check if there's a dot in a string, and i need nothing but the regex pattern for this... tryed a lot, but the dot itself means to matches all. you can read a little and not very clear introduction here: http://nl.php.net/manual/nl/pcre.pattern.modifiers.php and

[PHP] Re: regex

2003-02-07 Thread Paul Chvostek
On Fri, Feb 07, 2003 at 05:29:49PM +0100, Marian Feiler wrote: i have to check if there's a dot in a string, and i need nothing but the regex pattern for this... tryed a lot, but the dot itself means to matches all. You can escape the dot either by putting a backslash in front of it or

[PHP] update to table errors/strange things happen

2003-02-07 Thread Sunfire
i have a combo box on a web page that gets all the companies names from a mysql table and puts them in the combobox.. when someone picks a name and hits an edit button it takes them to a form where all the values in the table fields for that record are shown as default values for the form fields.

[PHP] issues with ksort()

2003-02-07 Thread Shawn McKenzie
What else does ksort() do to the array??? Does it matter that my keys look like this: '[some-text]'??? This works great: foreach($myarray as $key = $val) { echo $key = $val; } This gives me a Warning: Invalid argument supplied for foreach(): $sortedarray = ksort($myarray);

[PHP] substr() help

2003-02-07 Thread Paul Reilly
working on a peice of code that should be pretty easy, but for some reason I am not getting any results. I want the first 10 characters of each line from the file I am reading and am using this code: $temp = str_replace(\n, , fgets($fp, 4096)); $line = substr ($temp, 0,

[PHP] Re: issues with ksort()

2003-02-07 Thread Paul Chvostek
On Fri, Feb 07, 2003 at 11:09:10AM -0600, Shawn McKenzie wrote: What else does ksort() do to the array??? Does it matter that my keys look like this: '[some-text]'??? This works great: foreach($myarray as $key = $val) { echo $key = $val; } This gives me a Warning: Invalid argument

[PHP] mysql auto increment question

2003-02-07 Thread Van Andel, Robbert
I have an application that updates two MySQL database tables. One table has an auto_increment id field. I need to use this id to link to an entry in the other table. Is there an easy way to find out what the auto_incremented number is so I can use it to update the other table? Robbert van

RE: [PHP] substr() help

2003-02-07 Thread Van Andel, Robbert
Try this $temp = fgets($fp,4096); $line = substr($temp,0,10); Robbert van Andel -Original Message- From: Paul Reilly [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 9:06 AM To: [EMAIL PROTECTED] Subject: [PHP] substr() help working on a peice of code that should be

RE: [PHP] mysql auto increment question

2003-02-07 Thread Jon Haworth
Hi Robbert, Is there an easy way to find out what the auto_incremented number is so I can use it to update the other table? Sure, have a look at mysql_insert_id: http://php.net/mysql_insert_id Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] GD Chinese support - php4.3

2003-02-07 Thread Eddy-Das
any one know how display Chinese Characters (tradition or simplified) in GD.? is that something deal with multibyte functions...? i have installed the bundled GD and Libjpeg they all worked perfectly with english words but when i generate a Chinese character, it just display two symbols i've

Re: [PHP] update to table errors/strange things happen

2003-02-07 Thread Sunfire
//connect to server and database ?php include(conf.inc);//config file for db, username... mysql_connect($host, $mysqluser, $mysqlpwd)||die(cant find $host or username/pwd wrong); mysql_select_db($db)||die($db doesnt exist or has a problem...); //following code goes for each combobox to use //if

RE: [PHP] mysql auto increment question

2003-02-07 Thread Van Andel, Robbert
Thanks, I knew there was a function like this, but couldn't for the life of me remember what it was or find it. Robbert van Andel -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 9:28 AM To: Van Andel, Robbert; [EMAIL PROTECTED] Subject:

[PHP] Re: issues with ksort()

2003-02-07 Thread Shawn McKenzie
Ah Thanks! -Shawn - Original Message - From: Paul Chvostek [EMAIL PROTECTED] To: Shawn McKenzie [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 11:18 AM Subject: Re: issues with ksort() On Fri, Feb 07, 2003 at 11:09:10AM -0600, Shawn McKenzie wrote: What

Re: [PHP] Max Limit of post variables

2003-02-07 Thread R B
I was making an aplication few months ago, and i had your same problems. I think that crash because the php file send to the client its to large, and the client machine dont have the necesary memory to suport that in the navigator. So i chanche my grid to one row of controls, and i put all the

[PHP] Escaping Chars

2003-02-07 Thread Rob Walls
I need to get a password value from a form, store it in a database and then later be able to compare a login password to the one stored in the db. This works great unless the password contains the '\' char. magic_quotes_gpc is ON and magic_quotes_runtime is OFF. As a klude, I tried just removing

Re: [PHP] Dynamic input fields in Form

2003-02-07 Thread Frank Keessen
Hi, Thanks for the answer; but there is nobody who can show me an example in code??? Regards, Frank - Original Message - From: Jon Haworth [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 07, 2003 1:45 PM Subject: RE: [PHP] Dynamic input fields in Form

[PHP] Uploading an image to a db

2003-02-07 Thread Barajas, Arturo
Greetings, people. I have the following code to upload an image to a db: if (isset($imgLogo) $imgLogo != none) $data = addslashes(fread(fopen($imgLogo, r), filesize($imgLogo))); else $data = ; Then I just INSERT INTO table (image) VALUES $data but I think that the string that

Re: [PHP] GD Chinese support - php4.3

2003-02-07 Thread Tom Rogers
Hi, Saturday, February 8, 2003, 3:30:11 AM, you wrote: ED any one know how display Chinese Characters (tradition or simplified) in ED GD.? ED is that something deal with multibyte functions...? ED i have installed the bundled GD and Libjpeg ED they all worked perfectly with english words ED

[PHP] Strings and regular expression?

2003-02-07 Thread Radu Manole
Hi guys, I have 2 strings $a1=1,8,98,244,9,243,2,6,36,3,111,; $a2=8,98,244,9,243,2,1,6,36,3,111,; How can I exactly match 1, in both strings using one regular expression? (first 1 is the first element and second time in a random position)? Thanks, Radu -- PHP General Mailing List

Re: [PHP] Dynamic input fields in Form

2003-02-07 Thread Kevin Stone
Based on your description it could litterally be coded one of a hundred different ways. The way I would code a small problem like this is in a monolithic logical construct such as the if/else statement below. This allows you to be a little bit more careless how you construct the page. Another

[PHP] Column count doesn't match value count at row 1?

2003-02-07 Thread Jeremy Bowen
Hey, I can't seem to figure this out. I am modifying some else's script I added some rows to the myself database and no I get this error when I try to add information to the database. I am searching the docs but I can't seem to find the answer. Thanks, Jeremy -- PHP General Mailing List

[PHP] Virtual Directory Support

2003-02-07 Thread Rw
On my phpinfo() it shows Virtual Directory Support to be DISABLED .. does anyone know what the switch setting is called in the php.ini file to ENABLE this setting? Thanks!

Re: [PHP] Column count doesn't match value count at row 1?

2003-02-07 Thread Matt
- Original Message - From: Jeremy Bowen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 1:30 PM Subject: [PHP] Column count doesn't match value count at row 1? That means the the number of columns in the fields clause doesn't match the number in the values. For

[PHP] Avoiding several windows with the same session

2003-02-07 Thread Roman Sanchez
I place session_start(); if (!session_is_registered('somevar')) { header('location: login.php'); exit(); } at the top of all my pages to prevent people to view pages before they log in. However, once thay have logged in succesfully, they can ctrl-U in IE to open a new window. This new

Re: [PHP] Column count doesn't match value count at row 1?

2003-02-07 Thread Chris Shiflett
--- Jeremy Bowen [EMAIL PROTECTED] wrote: I am modifying some else's script I added some rows to the myself database and no I get this error when I try to add information to the database. Most likely, the SQL statement in question is something like this: insert into foo values ('bar', 'php',

[PHP] Problems in uploading files due to upload_max_filesize

2003-02-07 Thread Geckodeep
I have a problem with transfer of Image files to the server. I've checked with the aid of phpinfo on my service provider's server and this is what I found upload_max_filesize 200K. My page needs to upload 9 images simultaneously each one of them having the size between 45 kb to 50kb, Can any

Fw: [PHP] Avoiding several windows with the same session

2003-02-07 Thread Kevin Stone
That's interesting.. the session id should be different for each instance of the browser. The only exception I can think of is the MacOS since it runs multiple windows within the same instance of the application. This assumption is untested of course. Maybe it would help for you to explain why

[PHP] PhpBB2 Error

2003-02-07 Thread Pushpinder Singh Garcha
Hello All, I have been runing PHP BB2 successfully on my site for a couple of months . Recently I got this error. phpBB : Critical Error Could not connect to the database Can someone tell what this means..?? Many Thanks --Pushpinder Singh Garcha _ Web

Re: [PHP] PhpBB2 Error

2003-02-07 Thread 1LT John W. Holmes
I have been runing PHP BB2 successfully on my site for a couple of months . Recently I got this error. phpBB : Critical Error Could not connect to the database Can someone tell what this means..?? It means phpBB cannot connect to the database. ---John Holmes... PS: You'll want to check

Re: [PHP] Avoiding several windows with the same session

2003-02-07 Thread 1LT John W. Holmes
I place session_start(); if (!session_is_registered('somevar')) { header('location: login.php'); exit(); } at the top of all my pages to prevent people to view pages before they log in. However, once thay have logged in succesfully, they can ctrl-U in IE to open a

RE: [PHP] Avoiding several windows with the same session

2003-02-07 Thread Dennis Cole Jr
If you are using cookies the new window will pick it up. Have the original page change a variable to say that it has loaded then when the new window loads have it check that variable first. -Original Message- From: Roman Sanchez [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003

Re: [PHP] Avoiding several windows with the same session

2003-02-07 Thread 1LT John W. Holmes
If you are using cookies the new window will pick it up. Have the original page change a variable to say that it has loaded then when the new window loads have it check that variable first. How do you tell a new window from a new request though? You can't. The cookies are all there, the

Re: [PHP] Dynamic input fields in Form

2003-02-07 Thread 1LT John W. Holmes
Thanks for the answer; but there is nobody who can show me an example in code??? You mean do the work for you? Do you want the PHP or Javascript solution? Only one can be posted on this list... The PHP one is simple. Assuming $_POST['num'] is the number from your drop down...

[PHP] Re: Protecting include files

2003-02-07 Thread Daniel Page
If someone wants to call your .inc file like http://www.my.site/lib.inc they will see the code, as it is a text file. OK, we all know that. As the .inc file is in reality a renamed php script, containing variables, functions, etc, if you call it .php instead of .inc, it will be parsed by PHP,

Re: [PHP] Strings and regular expression?

2003-02-07 Thread 1LT John W. Holmes
$a1=1,8,98,244,9,243,2,6,36,3,111,; $a2=8,98,244,9,243,2,1,6,36,3,111,; How can I exactly match 1, in both strings using one regular expression? (first 1 is the first element and second time in a random position)? if(preg_match('/(^|,)1(,|$)/',$str)) { echo one is found; } ---John

[PHP] Multi-User phpMyAdmin

2003-02-07 Thread Stephen
Can anyone tell me a tutorial on how to setup a multi-user phpmyadmin installation? I would like to just have one central copy, then have other users able to access their corresponding database in phpMyAdmin. How can I do this? Thanks,Stephen Cratonhttp://www.melchior.us "What's the point

Re: [PHP] 3 tier web development

2003-02-07 Thread 1LT John W. Holmes
//Class to handle ALL operations an ANY database You may want to change that... it only does 2 operations and it only does them for two databases... ---John Holmes... - Original Message - From: Daniel Masson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 11:28

[PHP] Re: How to insert time and date into mysql?

2003-02-07 Thread Daniel Page
The easiest way is to create a timestamp field (see manual depending on how you want to store the date, as you can go from to ddmmhhmmss...), and when you create your DB update query, use now(). for example, update a field with a new email address, and the user's current ip with the time

[PHP] Multi-User phpMyAdmin

2003-02-07 Thread Stephen
Can anyone tell me a tutorial on how to setup a multi-user phpmyadmin installation? I would like to just have one central copy, then have other users able to access their corresponding database in phpMyAdmin. How can I do this? Thanks, Stephen Craton http://www.melchior.us What's the point in

Re: [PHP] is_numeric fails and don't know why

2003-02-07 Thread 1LT John W. Holmes
Well, since is_numeric('.101972E+00') works on it's own, there must be something else coming with it from the file that makes it fail. Try to trim() each number before you test it. Maybe that'll help. ---John Holmes... - Original Message - From: fmendezpalma [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Re: Protecting include files

2003-02-07 Thread Chris Shiflett
--- Daniel Page [EMAIL PROTECTED] wrote: If someone wants to call your .inc file like http://www.my.site/lib.inc they will see the code, as it is a text file. OK, we all know that. No, we don't, because that is not entirely correct. There are many cases where your Web server will not serve

[PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Daniel Page
Hi All, Imagine I have a giant database table tracking email addresses (I don't but it is the first example that jumps to mind after my recent antispam campaign!). If i do a select * from mailaddresses; I will get all of the table. If i do a select * from mailaddresses where id 10; I will get

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Rankin, Randy
select * from mailaddresses where id 10 LIMIT 10; -Original Message- From: Daniel Page [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:53 PM To: [EMAIL PROTECTED] Subject: [PHP] Limit the amount of returns in a MySQL query Hi All, Imagine I have a giant database table

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Chad Day
if (!isset($startlimit)) { $startlimit = 0; } $endlimit = $startlimit + 10; $yourquery = your query data LIMIT $startlimit, $endlimit that should give you enough insight on how to work it. Chad -Original Message- From: Daniel Page [mailto:[EMAIL PROTECTED]] Sent: Friday,

Re: [PHP] Multi-User phpMyAdmin

2003-02-07 Thread 1LT John W. Holmes
IIRC, when you use the 'cookie' or 'http' method of authentication, it'll validate everything against the actual mysql.user database and only let them access what they have permissions to. In other words, you set up your users and permissions in MySQL. When they log into PHPMyAdmin, they're

[PHP] ImageJPEG?

2003-02-07 Thread John Wards
Quickie I want to save a modified jpeg to a file. I can out put it by doing this: Header(Content-type: image/jpeg); imagejpeg($image_thum); imagedestroy($image_thum); I want to save it to this location: /images/1000/ with its original filename but with a t_ attached to the begining. I

[PHP] Problems with sessions

2003-02-07 Thread John Almberg
I've got an odd problem . . . I've got a PHP site (PHP 4.2.2, Apache 1.3.26, Linux box) that uses sessions to track a user_id for each user. I use the user_id to grant various rights. This works like a dream 95% of the time. But every once in awhile, the session information gets lost. It's so

RE: [PHP] 3 tier web development

2003-02-07 Thread Daniel Masson
Mr. Holmes Im assuming that you can add all the other database operations and the other dbtypes ... that was just the short version. Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co

Re: [PHP] PhpBB2 Error

2003-02-07 Thread Delta_5
Pushpinder Singh Garcha wrote: Hello All, I have been runing PHP BB2 successfully on my site for a couple of months . Recently I got this error. phpBB : Critical Error Could not connect to the database Can someone tell what this means..?? Many Thanks --Pushpinder Singh Garcha

[PHP] mail() vs sockets

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as

Re: [PHP] ImageJPEG?

2003-02-07 Thread John Wards
On Friday 07 Feb 2003 9:26 pm, you wrote: Other than that you're code looks good to me. Arrrgh! Bl*0dy cacheing in my ftp programgr Cheers for looking though! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Chris Shiflett
--- Chad Day [EMAIL PROTECTED] wrote: if (!isset($startlimit)) { $startlimit = 0; } $endlimit = $startlimit + 10; $yourquery = your query data LIMIT $startlimit, $endlimit that should give you enough insight on how to work it. Nice example. As an interesting tidbit, the LIMIT

[PHP] odbc_prepare

2003-02-07 Thread Jeff Hatcher
I am using MSSQL. I need to speed up a page. I have 3 count queries and one data query that gets loop through by the # of items * # of weeks that I need to return. Basically 460 as a general idea. I thought about using the prepare statement, something I have notice in pear. But its not support

[PHP] more efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as

Re: [PHP] Strings and regular expression?

2003-02-07 Thread Kevin Waterson
This one time, at band camp, 1LT John W. Holmes [EMAIL PROTECTED] wrote: $a1=1,8,98,244,9,243,2,6,36,3,111,; $a2=8,98,244,9,243,2,1,6,36,3,111,; How can I exactly match 1, in both strings using one regular expression? (first 1 is the first element and second time in a random

[PHP] more efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as

[PHP] Efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as

Re: [PHP] Re: Protecting include files

2003-02-07 Thread Daniel Page
I have used a few different Web hosting companies, and I have never seen a case where my home directory was my document root. I have always had a directory like public_html/ or www/ that was my personal document root, so as long as I don't place files in there, they are not accessible via

[PHP] delete query doesnt work

2003-02-07 Thread Sunfire
i have a delete query: mysql_query(delete from members where company='$delete'); it doesnt work should i change it to : mysql_query(delete from members where company like '$delete');?? the first one worked in mysql client but it doesnt work in php script for some reason... also having problems

Re: [PHP] Strings and regular expression?

2003-02-07 Thread 1LT John W. Holmes
$a1=1,8,98,244,9,243,2,6,36,3,111,; $a2=8,98,244,9,243,2,1,6,36,3,111,; How can I exactly match 1, in both strings using one regular expression? (first 1 is the first element and second time in a random position)? if(preg_match('/(^|,)1(,|$)/',$str)) { echo one is found; }

  1   2   >