Re: [PHP][PEAR] PEAR::DB_Common::nextId()

2004-01-15 Thread Rory McKinley
On 14 Jan 2004 at 18:12, Alessandro Vitale wrote: I would like to get the last insert id... anyone has some experience in using the PEAR::DB_Common::nextId() ? any suggestion would be very much appreciated. alessandro -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
On 14 Jan 2004 at 21:16, Freedomware wrote: Suppose you design a standard banner for the top of your web pages and use an include to insert it into every page on your site, like this: ?php include (../../../../includes/header.php); ? But you later decide you'd like to change just one

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Freedomware
(Oops - I replied by e-mail; guess I should have posted my response to the list.) --- Rory McKinley [EMAIL PROTECTED] wrote: A possible option could be something like this {calling_template.php} ?php /*State name does not have to be set statically, can be set from SQL query etc*/ I

[PHP] Very Simple one for u all :-)

2004-01-15 Thread Dave Carrera
Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this If(($var == val) || ($var2 == val2)){ Blah blah } I think this is a if var == val AND var2 == val2 then onwards but

Re: [PHP] Very Simple one for u all :-)

2004-01-15 Thread Nitin Mehta
i dont c any shortcomings in the syntax, may b i'm sleepy myself but isn't it working... - Original Message - From: Dave Carrera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 12:53 PM Subject: [PHP] Very Simple one for u all :-) Hi List, My brain

[PHP] RE: Very Simple one for u all :-)

2004-01-15 Thread Dave Carrera
I told you it was simple and I sort of answered it myself ;-) If(($var == val) OR ($var2 == val2)){ Blah blah } Sorry for the time wasting: Note to self: Wake up before trying to change the world :-) Dave C -Original Message- From: Dave Carrera [mailto:[EMAIL PROTECTED] Sent: 15

Re: [PHP] Very Simple one for u all :-)

2004-01-15 Thread Louie Miranda
like this? if ($value == $value_fetch) { do something } elseif ($value == $value_fetch { do something on this matter } else { error } -- - Louie Miranda http://www.axishift.com - Original Message - From: Dave Carrera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 15,

Re: [PHP] Very Simple one for u all :-)

2004-01-15 Thread Marek Kilimajer
http://sk2.php.net/manual/en/language.operators.logical.php either one of OR or || would do Dave Carrera wrote: Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
On 14 Jan 2004 at 23:16, David Blomstrom wrote: --- Rory McKinley [EMAIL PROTECTED] wrote: A possible option could be something like this {calling_template.php} ?php /*State name does not have to be set statically, can be set from SQL query etc*/ I think I

Re: [PHP] SOLVED= is ' or different in MS-Word then ascII?

2004-01-15 Thread Dagfinn Reiersøl
Roger Spears wrote: Hello Everybody, I have found a solution and/or the root of the problem. I googled on the topic of MS-Word + smart quotes. That lead me to this site: http://www.rpgtimes.net/rpgtimes/guide.php?guide=1 It seems that the default for Word is to have smart quotes to on. When

Re: [PHP][PEAR] PEAR::DB_Common::nextId()

2004-01-15 Thread Dagfinn Reiersøl
Alessandro Vitale wrote: I would like to get the last insert id... anyone has some experience in using the PEAR::DB_Common::nextId() ? Yes. You have a PEAR DB object $db, and you do: $id = $db-nextID('Documents'); $db-query(INSERT INTO Documents (id,title,text) VALUES ($id,'Title','Text'));

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Freedomware
Rory McKinley wrote: I hope this has clarified matters somewhat and not made things worse. Absolutely; the only thing that has made matters worse so far is the book Teach Yourself PHP, MySQL and Apache, which had me thinking making PHP includes was going to be a minor wrestling match. In fact,

[PHP] R: [PHP][PEAR] PEAR::DB_Common::nextId()

2004-01-15 Thread Alessandro Vitale
hi, thanks to Rory for his suggestion. sure mysql_insert_id() could help. but I was looking for some trick for accessing the result of that function without having to deal to mysql_connect() again. and i found it: PEAR::DB::getOnce(SELECT LAST_INSERT_ID()); doesn't work perfectly but is ok.

[PHP] PHP Collaboration

2004-01-15 Thread Cesar Aracena
Hi all, Does anyone knows of any nice PHP/MySQL program (free of course) that could help me do a more efficient collaboration between me and my programming partners? I've tried like 8 of them but the nice ones are pricely. I need to upload/download files, keep track of proyects and users and

RE: [PHP] PHP Collaboration

2004-01-15 Thread Humberto Silva
Tried Phpcollab ? http://www.php-collab.com/ Humberto Silva World Editing Portugal -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 15 de Janeiro de 2004 10:19 To: [EMAIL PROTECTED] Subject: [PHP] PHP Collaboration Hi all, Does anyone knows

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Rory McKinley
On 15 Jan 2004 at 0:21, Freedomware wrote: Rory McKinley wrote: I hope this has clarified matters somewhat and not made things worse. Absolutely; the only thing that has made matters worse so far is the book Teach Yourself PHP, MySQL and Apache, which had me thinking making PHP

Re: [PHP] PHP Includes versus sloppy Dreamweaver code and split elements

2004-01-15 Thread Marek Kilimajer
Freedomware wrote: My first question is really trivial, but I noticed that Dreamweaver likes to display my PHP includes code like this... ?php include (../../../../includes/state/themes.php); ? When I do a search and replace function, it often jumps onto another element's line,

[PHP] create_function() and anonymous methods

2004-01-15 Thread Marco
Hi all, Is it possible to use create_function() to define anonymous methods (like in Java) ? I mean something like: class Listener { function listen () { return 'I am an abstract method'; } } $listener = new Listener(); $listener-listen = create_function ( '', 'return I am an anonymous

[PHP] UTF-8 and HTTP headers

2004-01-15 Thread Ji Nmec
Hello, I have problem with encoding UTF-8 and PHP scripts. Scripts send information about encoding and this disallow send HTTP headers. Is possibility to solve this problem? Jiri Nemec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] newbie: hmtl form to select items from mysql db

2004-01-15 Thread Danny Anderson
Hola, PHP folk! I am slowly getting a handle on what php/mysql can do. I have a mysql database that I can display in a web browswer with php. That part is working just fine, but it was the easiest part, of course. My goal is to create an order form sort of thing were a certain quantity of

[PHP] Printing on remote windows printers

2004-01-15 Thread A . Garelli
Can i print on remote windows systems using php printing functions? How can i do ? Thank you Ing. Alberto Garelli - Sales Executive System Design Cosmic S.p.A. - Filiale Nord-Ovest (WEB site: www.cosmic.it) Via Vittorio Amedeo II n. 11 - 10121 - Torino Corso Venezia n. 16 - 20121 - Milano Tel.

Re: [PHP] Printing on remote windows printers

2004-01-15 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] Can i print on remote windows systems using php printing functions? How can i do ? No. Use a client side solution. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing PHP on IIS6 Windows 2003

2004-01-15 Thread Tareq Yaghmour
Hi, I'm suffering from installing PHP on IIS 6.0, Windows 2003 Web Edition Server. Any how-to ? or anyone how can write the instructions how to do it exactly ? Your help is much much appreciated. Best Regards, Tareq Yaghmour

[PHP] Re: Installing PHP on IIS6 Windows 2003

2004-01-15 Thread Ben Ramsey
I'm suffering from installing PHP on IIS 6.0, Windows 2003 Web Edition Server. Any how-to ? or anyone how can write the instructions how to do it exactly ? I found a helpful guide to installing PHP on IIS 6.0 (Win2003). Browse to http://www.php.net/manual/en/installation.php . Look in the

[PHP] PHP Calendar.

2004-01-15 Thread Carles Xavier Munyoz Bald
Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED] http://www.unlimitedmail.net/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: create_function() and anonymous methods

2004-01-15 Thread Ben Ramsey
Is it possible to use create_function() to define anonymous methods (like in Java) ? I'm not exactly sure what an anonymous method is, but I do know that PHP 5.0 Beta 3 offers a new object model that includes abstract classes and methods, which may be something you will want to take a look at.

Re: [PHP] PHP Calendar.

2004-01-15 Thread Nathan Taylor
No, but HotScripts.com and PHPClasses.org () will have classes to do them. I'm a fan of BosDates (can be found on HotScripts.com), but I think it might cost something to get it. Cheers, Nathan Taylor - Original Message - From: Carles Xavier Munyoz Baldó To: [EMAIL PROTECTED]

Re: [PHP] nested tags

2004-01-15 Thread David T-G
Gregor -- ...and then Gregor Jaksa said... % % HTML tags. Yes, you can nest HTML tags. The example below needs tr and td elements to contain the second table, but in general it's fine. % I can have something like % table % first % table % second table % /table % table % /table %

[PHP] regexp with mysql

2004-01-15 Thread tony
i hope someone can help it should be easy but i still don't get it. i have a field which has numbers seperated via a comma for example 1,2,3,12,14,23,51 now if i was to do a search for a the rows that has '2' in it i do SELECT * FROM table WHERE ids REGEXP 2 will it show fields that has 12 22

[PHP] Re: PHP Calendar.

2004-01-15 Thread nabil
catch the out put of Linux exec('cal'); and for the year exec('cal 2004'); regards Carles Xavier Munyoz Baldó [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? Greetings.

[PHP] New List Memegber Question

2004-01-15 Thread Alex Hogan
Hi All, I am on a 2K Server with SQL Server 2K and will have a lot of questions on PHP during development. Is this the right list? alex hogan ** The contents of this e-mail and any files transmitted with it

Re: [PHP] New List Memegber Question

2004-01-15 Thread Richard Davey
Hello Alex, Thursday, January 15, 2004, 3:00:37 PM, you wrote: AH I am on a 2K Server with SQL Server 2K and will have a lot of questions on AH PHP during development. AH Is this the right list? Yes if they are PHP related, SQL specific ones probably ought to go to the PHP-DB list instead,

Re: [PHP] R: [PHP][PEAR] PEAR::DB_Common::nextId()

2004-01-15 Thread David T-G
Alessandro -- ...and then Alessandro Vitale said... % % hi, Hi! % % thanks to Rory for his suggestion. % sure mysql_insert_id() could help. but I was looking for some trick for % accessing the result of that function without having to deal to % mysql_connect() again. But how will you query

[PHP] Re: PHP Calendar.

2004-01-15 Thread nabil
?php passthru('/usr/bin/cal') or die('error'); ? Carles Xavier Munyoz Baldó [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? Greetings. --- Carles Xavier Munyoz Baldó

[PHP] Junk Mail from this List?

2004-01-15 Thread Ben Ramsey
I'm using Mozilla Thunderbird 0.7 to view and post to this news group, so I don't know if that has anything to do with this, but, after just posting a few messages to the list, I've received a bunch of what I consider spam to my e-mail address. The spam doesn't consist of advertisements but

RE: [PHP] New List Memegber Question

2004-01-15 Thread Alex Hogan
Hi Richard, Thanks for the welcome. They will be PHP related I assure you. I'm a newbe alex -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 9:03 AM To: Alex Hogan Cc: PHP General list Subject: Re: [PHP] New List Memegber

Re: [PHP] Junk Mail from this List?

2004-01-15 Thread Richard Davey
Hello Ben, Thursday, January 15, 2004, 3:06:38 PM, you wrote: BR Has anyone else experienced a similar problem, and is there a way to BR stop this other than marking these as spam in Thunderbird? Welcome to the list! You'll get alsorts like this.. often I get those highly annoying Please

[PHP] Dynamic Forms

2004-01-15 Thread Robert Temple
Can anyone suggest a PHP solution to creating a form that gets built after a client enters a variable? For example: an automobile insurance form that first asks how many cars you have, and then creates a form with fields for car 1, car 2, etc. I have found JavaScript code that will do this,

Re: [PHP] Junk Mail from this List?

2004-01-15 Thread CPT John W. Holmes
From: Ben Ramsey [EMAIL PROTECTED] I'm using Mozilla Thunderbird 0.7 to view and post to this news group, so I don't know if that has anything to do with this, but, after just posting a few messages to the list, I've received a bunch of what I consider spam to my e-mail address. Common

Re: [PHP] Dynamic Forms

2004-01-15 Thread Matt Matijevich
[snip] Can anyone suggest a PHP solution to creating a form that gets built after a client enters a variable? [/snip] php runs on your server so to build the forms based on a user entered form field, the form has to be submitted, so you would have to use javascript to automatically submit the

Re: [PHP] regexp with mysql

2004-01-15 Thread Lowell Allen
i hope someone can help it should be easy but i still don't get it. i have a field which has numbers seperated via a comma for example 1,2,3,12,14,23,51 now if i was to do a search for a the rows that has '2' in it i do SELECT * FROM table WHERE ids REGEXP 2 will it show fields that

Re: [PHP] PHP Calendar.

2004-01-15 Thread Lowell Allen
Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? You should write one. Here's mine, which I'm sure could be improved: HTH -- Lowell Allen function display_calendar($mon, $year) { // find current date and day of the month

Re: [PHP] PHP Calendar.

2004-01-15 Thread Brian V Bonini
On Thu, 2004-01-15 at 09:27, Carles Xavier Munyoz Baldó wrote: Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? I've seen many classes floating around that do this. Google should turn up something. -- BrianGnuPG -

Re: [PHP] Dynamic Forms

2004-01-15 Thread Jas
Matt Matijevich wrote: [snip] Can anyone suggest a PHP solution to creating a form that gets built after a client enters a variable? [/snip] php runs on your server so to build the forms based on a user entered form field, the form has to be submitted, so you would have to use javascript to

[PHP] Multiple Queries

2004-01-15 Thread Arthur Pelkey
I am new this. I have a page that has multiple queries on it, I want to do doing the following: Query a mysql db multiple times in the same page, but i must be missing something, I keep getting these AFTER the first queryis successful: Warning: mysql_fetch_array(): supplied argument is not a

Re: [PHP] regexp with mysql

2004-01-15 Thread Toby Irmer
i guess SELECT * FROM `table` WHERE ids REGEXP ',2,|^2,|,2$' should do it... hth toby - Original Message - From: Lowell Allen [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 4:39 PM Subject: Re: [PHP] regexp with mysql i hope someone can help it

Re: [PHP] PHP Calendar.

2004-01-15 Thread Carles Xavier Munyoz Bald
El Jueves, 15 de Enero de 2004 16:42, Brian V Bonini escribió: On Thu, 2004-01-15 at 09:27, Carles Xavier Munyoz Baldó wrote: Hi, Is there any PHP function or set of PHP files that allows me to print the current month in calendar format ? I've seen many classes floating around that do

RE: [PHP] Multiple Queries

2004-01-15 Thread Arthur Pelkey
$result = mysql_query(SELECT * FROM classes3 WHERE c_d_sun='1' AND c_s_sun_1_hr='5'); while($row = @ mysql_fetch_array($result)) { if($row[c_s_sun_1_hr] != 5) { echo n/a; } else { echo $row[c_s_sun_1_hr]:$row[c_s_sun_1_min]$row[c_s_sun_1_dn]br;

RE: Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-15 Thread Mike R
Since the link goes directly to the picture, how do I apply the header first? Should I apply it in the html page the link is on? :) Thanks! -Mike Hello Mike, Tuesday, January 13, 2004, 5:31:47 PM, you wrote: MR That's what I kind of thought, but this is a case where the browser is

Re: Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-15 Thread Toby Irmer
file: show.php ? header(Content-type: image/jpeg); readfile(/path/to/file/.$_GET[filename]); ? in your files: img src=show.php?filename=myfile.jpg ... or something like that ;) hth toby - Original Message - From: Mike R [EMAIL PROTECTED] To: Richard Davey [EMAIL PROTECTED] Cc:

Re: [PHP] Multiple Queries

2004-01-15 Thread CPT John W. Holmes
From: Arthur Pelkey [EMAIL PROTECTED] I have a page that has multiple queries on it, I want to do doing the following: Query a mysql db multiple times in the same page, but i must be missing something, I keep getting these AFTER the first queryis successful: Warning: mysql_fetch_array():

Re: [PHP] regexp with mysql

2004-01-15 Thread CPT John W. Holmes
How about: SELECT * FROM table WHERE FIND_IN_SET(2,column); where column is your table column containing the comma separated list. ---John Holmes... - Original Message - From: Toby Irmer [EMAIL PROTECTED] To: Lowell Allen [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Thursday,

Re: Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-15 Thread CPT John W. Holmes
From: Toby Irmer [EMAIL PROTECTED] file: show.php ? header(Content-type: image/jpeg); readfile(/path/to/file/.$_GET[filename]); ? in your files: img src=show.php?filename=myfile.jpg ... or something like that ;) Are you trying to get him to compromise his server? I'm sure that's

Re: Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-15 Thread Toby Irmer
that was explaining the prinicple. of course you wouldn't do it like this, but pass an id to identify. you could also send an encryption key... - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Toby Irmer [EMAIL PROTECTED]; Mike R [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

Re: [PHP] PHP Calendar.

2004-01-15 Thread Jason Wong
On Thursday 15 January 2004 23:49, Carles Xavier Munyoz Baldó wrote: I've seen many classes floating around that do this. Google should turn up something. Yes, but Google can not return me the users experience whith this classes for this reason I ask here ;-) The only user experience that

Re: [PHP] Dynamic Forms

2004-01-15 Thread Justin French
On Friday, January 16, 2004, at 02:15 AM, Robert Temple wrote: Can anyone suggest a PHP solution to creating a form that gets built after a client enters a variable? For example: an automobile insurance form that first asks how many cars you have, and then creates a form with fields for car

Re: [PHP] UTF-8 and HTTP headers

2004-01-15 Thread Jason Wong
On Thursday 15 January 2004 19:52, Ji Nmec wrote: I have problem with encoding UTF-8 and PHP scripts. Scripts send information about encoding and this disallow send HTTP headers. Is possibility to solve this problem? If I understand your problem correctly, the solution is to arrange your code

Re: [PHP] UTF-8 and HTTP headers

2004-01-15 Thread memoimyself
Hello Jiri, I'm not sure I understand your problem (I had some trouble with your English), but have you tried PHP's utf8_encode() and utf8_decode() functions? Check out the PHP manual in your native language for more information on these functions. Cheers, Erik On 15 Jan 2004 at 12:52, Ji

[PHP] Multiple drop downs

2004-01-15 Thread Alex Hogan
Hi All, I am converting a page from asp that is using several drop down lists. Each list contains part of the product list based on the product type. At the moment it is making a connection to the db and populating a list using the product type, closing the connection, then re-opening for

[PHP] dynamic list/menu in php

2004-01-15 Thread E. Ricardo Santos
I have a php page to update records of a table. There are two fields that are used to relate to other tables reason why they are like list/menu. The problem is that these select must show the list to me of elements of the table that contains the data but the selected value must update the

[PHP] Re: dynamic list/menu in php

2004-01-15 Thread Justin Patrin
I didn't really understand most of what you said (your English is really confusing), but you might want to check out DB_DataObject_FormBuilder. It will create forms for editing of DB records with select boxes for foreign keys. There are also lots of new options in the newest CVS version which

[PHP] php dinamic list/menu

2004-01-15 Thread E. Ricardo Santos
I have a php page to update records of a table. There are two fields that are used to relate to other tables reason why they are like list/menu. The problem is that these select must show the list to me of elements of the table that contains the data but the selected value must update the

[PHP] Re: dynamic list/menu in php

2004-01-15 Thread E. Ricardo Santos
thanks you very much -- - Are you still wasting your time with spam?... There is a solution! Protected by GIANT Company's Spam Inspector The most powerful anti-spam software available. http://mail.spaminspector.com Justin

[PHP] i can't show two dinamic lit/menu

2004-01-15 Thread E. Ricardo Santos
i can't show two dinamic list/menu per page. the server say: too many server behaviors -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL Question

2004-01-15 Thread John Taylor-Johnston
Sorry, don't want to be off-topic, but have found something curious about MySQL 4.0.16-standard. It does not seem to prioritise properly. Searching for 'English Canada' (as opposed to +English +Canada) gives me all instances of both words but does not prioritize the display order for 'English

[PHP] best paractice example page creation php / mysql

2004-01-15 Thread Jon Bennett
Hi, One of the sections in the site I'm developing is a training section. Within this section there are sub sections which each need the option of having multiple examples added. Each example will be made up of 2 sections a UL list and a 2 column table with a title and intro as well. The way

[PHP] addslashes

2004-01-15 Thread João Cândido de Souza Neto
Hello to all. I'm using str_replace(\r\n,\\r\\n,addslashes($campo)) to add \ in mysql data to send to javascript variable. Running in my machine with win xp + iis it's all ok, but in server with linux + apache, the javascript variable no have \ causing error in my script. Anybody know how do i

Re: [PHP] best paractice example page creation php / mysql

2004-01-15 Thread Richard Davey
Hello Jon, Thursday, January 15, 2004, 6:23:51 PM, you wrote: JB The way I was thinking of doing this was to have 3 tables: JB training_subsections JB training_list_items JB training_table_items JB My problem is, is it a 'reccomended' way of doing things to query the JB db multiple times for

Re: Re[4]: [PHP] Re: jpeg Uploader issue

2004-01-15 Thread CPT John W. Holmes
From: Toby Irmer [EMAIL PROTECTED] that was explaining the prinicple. of course you wouldn't do it like this, but pass an id to identify. you could also send an encryption key... Ok. I'm sure the original poster is grateful. Hopefully, if anyone actually searches those things called the

Re: [PHP] MySQL Question

2004-01-15 Thread CPT John W. Holmes
From: John Taylor-Johnston [EMAIL PROTECTED] Sorry, don't want to be off-topic, but have found something curious about MySQL 4.0.16-standard. It does not seem to prioritise properly. Searching for 'English Canada' (as opposed to +English +Canada) gives me all instances of both words but does

[PHP] addslashes

2004-01-15 Thread João Cândido de Souza Neto
Hello to all. I'm using str_replace(\r\n,\\r\\n,addslashes($campo)) to add \ in mysql data to send to javascript variable. Running in my machine with win xp + iis it's all ok, but in server with linux + apache, the javascript variable no have \ causing error in my script. Anybody know how do i

Re: [PHP] UTF-8 and HTTP headers

2004-01-15 Thread Chris Shiflett
--- Jiøí Nìmec [EMAIL PROTECTED] wrote: I have problem with encoding UTF-8 and PHP scripts. Scripts send information about encoding and this disallow send HTTP headers. Is possibility to solve this problem? I don't understand your question, but maybe this will help. HTTP is encoded with

Re: [PHP] addslashes

2004-01-15 Thread Marek Kilimajer
Send us the resulting javascript code. João Cândido de Souza Neto wrote: Hello to all. I'm using str_replace(\r\n,\\r\\n,addslashes($campo)) to add \ in mysql data to send to javascript variable. Running in my machine with win xp + iis it's all ok, but in server with linux + apache, the

[PHP] Re: addslashes

2004-01-15 Thread Justin Patrin
JoãO CâNdido De Souza Neto wrote: Hello to all. I'm using str_replace(\r\n,\\r\\n,addslashes($campo)) to add \ in mysql data to send to javascript variable. Running in my machine with win xp + iis it's all ok, but in server with linux + apache, the javascript variable no have \ causing error in

Re: [PHP] best paractice example page creation php / mysql

2004-01-15 Thread Jon Bennett
Ahh, i was originally thinking of having a examples table, but when writing the post I decided it might not be nessecary :-) ok, that bit I understand fine, it's getting the data into the DB first that's bugging me, would something like this be ok ? function addNews($aArgs, $aListItems,

[PHP] Random(?) blank pages when using sessions

2004-01-15 Thread Matt Grimm
I'm using non-cookie-based sessions for authentication on a page. The session is set like so, which works (these values, along with the SID, are always retrievable): $_SESSION['user'] = $_POST['UserName']; $_SESSION['time'] = time(); My problem is when I get to the protected site area, in which

[PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Harry.de
Does anybody now, what this error message mean? I can see no mistace in my code: $mode = FTP_BINARY; $picuploadname = $picupload[$i]; $piclocalname = ../pictures/.$piclocal[$i]; ftp_put($conn_ftp,$picuploadname ,$piclocalname ,$mode); The connection is correct and the files are putted but there

RE: [PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Jay Blanchard
[snip] $mode = FTP_BINARY; $picuploadname = $picupload[$i]; $piclocalname = ../pictures/.$piclocal[$i]; ftp_put($conn_ftp,$picuploadname ,$piclocalname ,$mode); [/snip] You cannot put FTP_BINARY into a variable, it then becomes a string instead of a function directive. Cahnge to this and see if

[PHP] Locking and unlocking records

2004-01-15 Thread Lowell Allen
I need to implement database record locking and unlocking. I want to prevent multiple users of a content management system from editing the same record simultaneously, which can result in one user's edits being overwritten. I can use PHP to lock a record when it's opened, and unlock it when it's

Re: [PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Luke
That shouldnt matter, because FTP_BINARY is a constant, and therfore has a numeric, or string value. The only way FTP_BINARY would become a physical string is if there was quotes around it. As for the problem, are you sure you have the right connection open, because the error (STOR not

[PHP] PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
I'm having a blast with PHP includes and echo functions; I never dreamed they could be so simple and effective. But I have a couple questions relating to head sections and search engines. Consider the following html code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

[PHP] Building Graphs

2004-01-15 Thread Williams, Olwen - SAL
I was looking into using a graphing object to make graphs from some intranet data, but the libraries I'm looking at are all filled with plain colours and I'd like to use a pattern. I can't find a way to use a pattern fill in the image functions. can anyone tell me if there is a way to use a

[PHP] Re: Multiple drop downs

2004-01-15 Thread Luke
Well could you do something like this: Connect to the database retreive the entire table into an array, run through the array for each product category (while $i $category count) and put a nested loop inside to create each dropdown list (or select (in htm)) this then removes the need to

Re: [PHP] PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread CPT John W. Holmes
From: Freedomware [EMAIL PROTECTED] I discovered that includes will apparently work just about anywhere, but echo functions apparently don't work with the title tag and meta tags; at least, I can't see the word Alaska in those locations when I click View Source in my browser. Look back over

RE: [PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Jay Blanchard
[snip] That shouldnt matter, because FTP_BINARY is a constant, and therfore has a numeric, or string value. The only way FTP_BINARY would become a physical string is if there was quotes around it. As for the problem, are you sure you have the right connection open, because the error (STOR not

[PHP] Converting a TIFF image to PDF

2004-01-15 Thread Todd Cary
I am looking for an example of converting a TIFF image file to a PDF file that can be viewed by the user. It would be helpful if ths can be done on the fly using the PdfLib functions. Does anyone have some sample code for doing this in PHP? Todd -- PHP General Mailing List

RE: [PHP] PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Arthur Pelkey
You are defining the vars after the header/title has already been processed, put it before the head.php, and it should work -Original Message- From: Freedomware [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Includes and Echoes

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Luke
hi Very simple problems, good to see ur getting the hang of it :) the first is, you have defined your variables after you include the page, so that the echo is outputting a blank variable... so instead of: ?php include (../../../../includes/state/head.php); ? meta name=mssmarttagspreventparsing

Re: [PHP] Where is the mistace? Warning: ftp_put(): 'STOR ' not understood.

2004-01-15 Thread Luke
hmm, well that sure is strange. cuz here http://au3.php.net/ftp_put someone got it working...ahh i see, they used FTP_ASCII, so its the default anyways...hmmm might be a bug, because FTP_BINARY is just a constant, so it has a numerical value, (eg 2003 (i dont think thats it)) but in theory

[PHP] PDFlib error 2516

2004-01-15 Thread Mark Wouters
Hello! Tried out this simple script from a tutorial on creating PDF with PHP: ?php $pdf = PDF_new(); PDF_open_file($pdf, testpdf.pdf); PDF_set_info($pdf, Author, Someone); PDF_set_info($pdf, Title, PDF creation with PHP); PDF_set_info($pdf, Creator, Someone); PDF_set_info($pdf,

Re: [PHP] Converting a TIFF image to PDF

2004-01-15 Thread Jason Wong
On Friday 16 January 2004 05:06, Todd Cary wrote: I am looking for an example of converting a TIFF image file to a PDF file that can be viewed by the user. It would be helpful if ths can be done on the fly using the PdfLib functions. Does anyone have some sample code for doing this in PHP?

[PHP] Imap function problems

2004-01-15 Thread Daryl Meese
Hello All, I am having some strange problems -- code I tested a while back has broken and I'm not sure why. I am receiving an email with an attachment (testing.doc). when I get the message I call imap_fetchstructure then check the length of the parts array, which is one. It used to always be

Re: [PHP] best paractice example page creation php / mysql

2004-01-15 Thread Luke
Yeah, its fine, as long as your while loop ends just after a quick glance, it looks like an infinite loop, you might try instead of while (count($aListItems)){ try while (isset($aListItems[$i])){ or while ($i count($aListItems)){ -- Luke Jon Bennett [EMAIL PROTECTED] wrote in message

Re: [PHP] Imap function problems

2004-01-15 Thread Jason Wong
On Friday 16 January 2004 05:19, Daryl Meese wrote: I am having some strange problems -- code I tested a while back has broken and I'm not sure why. I am receiving an email with an attachment (testing.doc). when I get the message I call imap_fetchstructure then check the length of the parts

[PHP] Variables

2004-01-15 Thread Alex Hogan
How do you insert a php variable into a javascript function? For instance; function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } alex hogan ** The contents of this e-mail and any files transmitted

[PHP] MMCache.....zend or PHP extention?

2004-01-15 Thread Ryan A
Hi all, I have just kind of installed MMCachenow as what do i add it in my php.ini file? as a zend extention or a PHP one? which one is better...couldnt find any details on the websitewhats the diff anyway? If anyone here is active on the MMCache project...think about adding a FAQ on the

RE: [PHP] Imap function problems

2004-01-15 Thread Daryl Meese
The contents of the mail file are located below -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 3:42 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Imap function problems On Friday 16 January 2004 05:19, Daryl Meese wrote: I am having some

[PHP] How can I read 8 bytes from a binary file and cast it as a double?

2004-01-15 Thread SVERRE WISLØFF
How can I read 8 bytes from a binary file and cast it as a double? sw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I read 8 bytes from a binary file and cast it as a double?

2004-01-15 Thread Marek Kilimajer
http://www.php.net/unpack SVERRE WISLØFF wrote: How can I read 8 bytes from a binary file and cast it as a double? sw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
i just changed the opening and closing tags a little (you didnt need so many) but the main change is, now the variables come before the included file, so that the include file can access those variables too. Holy cow, this gets simpler all the time. Pretty soon, there'll be nothing left on my

  1   2   >