AW: [PHP] wysiwyg editor

2004-03-10 Thread Shahed, Raja
To Roman If you are on Windows try Dreamweaver. Easy and comfortable.It's a hair saving tool for HTML. even let you edit js and php in a very bequem Mode . Or (on Linux) emacs but configure it for HTML and PHP if it is not already configured or SCREEM , this is also a good tool for html.

[PHP] arrays, loops, vars and props

2004-03-10 Thread Jason Davidson
Hey, would anyone know offhand, if its faster to create a temp array, fill it via loop, and then set a class property to that array, or to simply fill the class property via loop.. to clearify. would the following example be faster or slower had i simply done $this-myArray[$i] = $i; class

[PHP] PHP, ODBC and Pervasive SQL

2004-03-10 Thread William Nettmann
I am trying to connect from PHP to Pervasive SQL using ODBC, and I am experiencing difficulty. My PHP looks like this: $dsn = GruffTrading; // Datasource $dsu = ; // User $dsp = ; // Password if(!$odbc = odbc_connect($dsn,$dsu,$dsp)) die(Unable to connect to Data Source $dsnbr.odbc_error().:

[PHP] wysiwyg editor

2004-03-10 Thread Outbound
Hello, do you have any recommendation about what wysiwyg html(javascript) editor to use in php projects ? People usually don't like textareas and want to increate usability :-/ Best regards, Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] nested UL tree from hierarchical db

2004-03-10 Thread Justin French
Hi all, I'm playing around with Modified Preorder Tree Traversal as discussed in an article on sitepoint http://www.sitepoint.com/article/hierarchical-data-database/, which includes this function: ?php function display_tree($root) {    // retrieve the left and right value of the $root node

RE: [PHP] gd for windows not working

2004-03-10 Thread Joe Patiani
I`ve tried use php without php.ini , but why the php still running without any error. It magic, isn`t it. I don`t know idea why it happen Please tell which is not right. -- joe patiani Geophysic and Meteorology Department Institut Teknologi Bandung Labtex XI Jl. Ganesha 10 Bandung 40132

Re: [PHP] gd for windows not working

2004-03-10 Thread Joe Patiani
Yes it true, now in running my php without php.ini, but why it still working without error. It strange for me, are you too. -- joe patiani Geophysic and Meteorology Department Institut Teknologi Bandung Labtex XI Jl. Ganesha 10 Bandung 40132 Indonesia -- PHP General Mailing List

[PHP] Re: wysiwyg editor

2004-03-10 Thread Michael Nolan
Outbound wrote: Hello, do you have any recommendation about what wysiwyg html(javascript) editor to use in php projects ? People usually don't like textareas and want to increate usability :-/ Best regards, Roman HTMLArea. Version 2 supports IE5.5+ V2:

Re: [PHP] gd for windows not working

2004-03-10 Thread Jason Wong
On Thursday 11 March 2004 07:24, Joe Patiani wrote: I`ve tried use php without php.ini , but why the php still running without any error. It magic, isn`t it. I don`t know idea why it happen Please tell which is not right. Yes php can run without php.ini, nothing magic about it, it just uses

[PHP] ob_ output buffering ...

2004-03-10 Thread Till Krüss
Hi there! I want to use the output buffering to replace one important string before the output starts. How can i do this? rgds, Till -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Information about security

2004-03-10 Thread Andre
Hello I need some information about security in php. I want to create a backoffice extremely safe for user authentication? What you think about using .htaccess for authentication, and if it is possible to authenticate a user and then logout. And I would also like to know if you have other

RE: [PHP] Information about security

2004-03-10 Thread Vincent DUPONT
Have a look at PEAR::Auth on http://pear.php.net Vincent -Original Message- From: Andre [mailto:[EMAIL PROTECTED] Sent: mercredi 10 mars 2004 11:35 To: [EMAIL PROTECTED] Subject: [PHP] Information about security Hello I need some information about security in php. I want to create a

[PHP] Re: Scripts for customer - service provider web available?

2004-03-10 Thread DAvid Jackson
Denis L. Menezes wrote: Hello friends. I am in a hurry to make a website where suppliers can advertise their products and services and customers can place their requirements so the requirements can be matched with the service providers. Also vistors should be able to seek suppliers and customers.

[PHP] strip down Warnings

2004-03-10 Thread dmesg
Hi there, i'm just starting with php. How can i tell fsockopen() to skip to echo this warnings? I get all of these warnings and would like to strip them down: Warning: fsockopen(): unable to connect to

[PHP] Are $_POST and $_GET interchangable?

2004-03-10 Thread DAvid Jackson
I understand the difference between how they process from data. Most application seem to reply on $_GET which display the session/from/cookie values in the URL windows. What I'm not clear on are there times when you have to either $_POST or $_GET? TX, david -- PHP General Mailing List

[PHP] How to make sure a redirect works

2004-03-10 Thread Henry Grech-Cini
Hi All, I want to randomly select a desitniation page and use cookies to ensure that refreshes and return visits on the same machine always return to that desination (assuming the cookie is intact). Imagine that we have an array of URL's $url=array(1=dest1.html, dest2.html, dest3.html); // I'm

[PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Henry Grech-Cini
Hi You can use both $_GET and $_POST at the same time. As an example imagine that you had a script that generated a HTML form for collecting data. And image that that script generated different forms on the basis of a parameter passed in the URL (i.e. a $_GET value). Of the top of my head like

Re: [PHP] strip down Warnings

2004-03-10 Thread Miguel J. Jimnez
Use '@' before any function to avoid echoing warnings (JUST warnings) -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) [EMAIL PROTECTED] TLFNO. 955036800 ext. 111 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] ob_ output buffering ...

2004-03-10 Thread Jay Blanchard
[snip] I want to use the output buffering to replace one important string before the output starts. How can i do this? [/snip] Wouldn't you rather use str_replace()? http://www.php.net/str_replace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Warning: Cannot modify header information - headers already sent by (output sta

2004-03-10 Thread Henry Grech-Cini
Hi The problem is that the header requires that no output be generated by your script before it is invoked. It makes this clear in the error message when it indicates that on line 6 you produced output! Try this instead (although the code seems a little confused). ?php session_start();

[PHP] AI:Categorizer

2004-03-10 Thread Adam i Agnieszka Gasiorowski FNORD
Is there avaiable something alike a port of PERL AI:Categorizer? -- Seks, seksi, seksolatki... news:pl.soc.seks.moderowana https://hyperreal.info/pomoc/ { 1488 } WiNoNa = ) ( Szatan, Szatan...http://666-666.0-700.pl foReVeR( * ) Poznaj jej zwiewne ksztaty... http://www.opera.com

Re: [PHP] gd for windows not working

2004-03-10 Thread Firman Wandayandi
Hi Joe! Don't be surprise or strange, 'cause default value of display_errors is Off, so nothing errors will display. This directive related to security consideration, to display it you must set it to On on php.ini. display_errors = On Anyway, I'm Indonesian. :) Good luck, Firman -

Re: [PHP] wysiwyg editor

2004-03-10 Thread Richard Davey
Hello Outbound, Wednesday, March 10, 2004, 8:16:23 AM, you wrote: O do you have any recommendation about what wysiwyg html(javascript) O editor to use in php projects ? People usually don't like textareas O and want to increate usability :-/ EditWorks Professional - www.sitecubed.com isn't too

Re: [PHP] Are $_POST and $_GET interchangable?

2004-03-10 Thread Richard Davey
Hello DAvid, Wednesday, March 10, 2004, 11:08:01 AM, you wrote: DJ I understand the difference between how they process from data. DJ Most application seem to reply on $_GET which display the DJ session/from/cookie values in the URL windows. Just to re-cap where they come from: It depends on

RE: [PHP] Warning: Cannot modify header information - headers already sent by (o

2004-03-10 Thread Mike Mapsnac
Thank for your help .. One more question: I include header to the acount.php page. And it gives the same error, but in this situation I don't have any outputs. Also, I start session in header, not in the account. ?php //Account.php //session_start(); include_once(lib/lib_main.php);

Re: [PHP] gd for windows not working

2004-03-10 Thread Firman Wandayandi
Yes I know, that you doesn't use any php.ini. I think you don't understand what I said. PHP always run, with or without php.ini, sure phpinfo() too. But if nothing php.ini can found by PHP, PHP will be use default configuration value that's built-in/defined in PHP self. If you still found the

Re: [PHP] strip down Warnings

2004-03-10 Thread trlists
On 10 Mar 2004 dmesg wrote: How can i tell fsockopen() to skip to echo this warnings? Here's a repeat of something I just posted the other day on this ... Here's an approach I have used to avoid any error messages at all -- presumably you could also set a flag in the error handler to indicate

Re: [PHP] Return value efficiency question

2004-03-10 Thread trlists
On 10 Mar 2004 Robert Cummings wrote: Overhead is minimal since PHP doesn't actually copy the contents of the container until an attempt to modify it is made. At which time the contents are only actually copied if the internal reference count is greater than 0. Generally this means it won't

Re: [PHP] How to make sure a redirect works

2004-03-10 Thread trlists
On 10 Mar 2004 Henry Grech-Cini wrote: My question is are there problems with: ?php header(Location: .$url[$index]); ? As long as no other headers have been sent that should work fine. Location: is the standard method for redirection -- I'm not aware of any circumstances in which it

[PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Five
David Jackson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I understand the difference between how they process from data. Most application seem to reply on $_GET which display the session/from/cookie values in the URL windows. What I'm not clear on are there times when you have

Re: [PHP] Return value efficiency question

2004-03-10 Thread Burhan Khalid
Kelly Hallman wrote: Consider this method: function xyz() { return $this-data = unserialize($this-serial); } Maybe I'm just being stupid, but wouldn't that simply return true if the assignment was successful, and false otherwise? [ trimmed ] -- PHP General Mailing List

Re: [PHP] How to make sure a redirect works

2004-03-10 Thread Burhan Khalid
Henry Grech-Cini wrote: Hi All, I want to randomly select a desitniation page and use cookies to ensure that refreshes and return visits on the same machine always return to that desination (assuming the cookie is intact). Imagine that we have an array of URL's $url=array(1=dest1.html,

RE: [PHP] Return value efficiency question

2004-03-10 Thread Ford, Mike [LSS]
On 10 March 2004 13:48, Burhan Khalid wrote: Kelly Hallman wrote: Consider this method: function xyz() { return $this-data = unserialize($this-serial); } Maybe I'm just being stupid, but wouldn't that simply return true if the assignment was successful, and false

RE: [PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Jay Blanchard
[snip] for $_GET[], I found indirect references (documentation of other subjects that use $_GET[] and $_POST[] ) but no documentation focusing directly on either. Is there on line documentation specifically dedicated to these two phenomena? [/snip] This is more of a general web programming

Re: [PHP] Return value efficiency question

2004-03-10 Thread messju mohr
On Wed, Mar 10, 2004 at 04:48:06PM +0300, Burhan Khalid wrote: Kelly Hallman wrote: Consider this method: function xyz() { return $this-data = unserialize($this-serial); } Maybe I'm just being stupid, but wouldn't that simply return true if the assignment was successful,

RE: [PHP] Re: Are $_POST and $_GET interchangable? MORE

2004-03-10 Thread Jay Blanchard
[snip] stuff [/snip] From http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 17.13.1 Form submission method The method attribute of the FORM element specifies the HTTP method used to send the form to the processing agent. This attribute may take two values: get: With the HTTP get

[PHP] what does this mean?

2004-03-10 Thread Harry Wiens
$this-styles['shadow'] = (boolean)$bool; what does (boolean)$bool mean? mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what does this mean?

2004-03-10 Thread Raditha Dissanayake
The () operator means 'cast into' so (boolean)$bool means cast this into a booolean. Harry Wiens wrote: $this-styles['shadow'] = (boolean)$bool; what does (boolean)$bool mean? mfg. harry wiens -- Raditha Dissanayake.

Re: [PHP] what does this mean?

2004-03-10 Thread Richard Davey
Hello Harry, Wednesday, March 10, 2004, 12:55:44 PM, you wrote: $this-styles['shadow'] = (boolean)$bool; HW what does (boolean)$bool mean? It's casting the value ($bool) to a boolean (i.e. TRUE or FALSE). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP

Re: [PHP] what does this mean?

2004-03-10 Thread Miguel J. Jimnez
That's a boolean casting; used for forcing a variable to become boolean... Hope it helps... Harry Wiens wrote: $this-styles['shadow'] = (boolean)$bool; what does (boolean)$bool mean? mfg. harry wiens -- Miguel J. Jiménez ISOTROL, S.A.

[PHP] Passing array from class to class produces more than one result...

2004-03-10 Thread Jonathan Villa
I'm writing a DBI class with the following function function Select($sql) { $this-setResultID(@mysql_query($sql,$this-getDBConn())); if ($this-getResultID() == false) Error::fatalError(__FILE__.' ('.__LINE__.') : Unable to run query :

Re: [PHP] Control Structure Syntax Question

2004-03-10 Thread Michal Migurski
$x ? xxx : xxx But it makes your code less readable IMHO and offers no tangible benefit whatsoever. It offers the tangible benefit of evaluating to something: return (isset($foo) ? $foo : $bar); $query = select * from foo .(isset($bar) ? where bar = ${bar} :

RE: [PHP] Warning: Cannot modify header information - headers already sent by (o

2004-03-10 Thread Chris W. Parker
Mike Mapsnac mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 4:31 AM said: Thank for your help .. no problem. One more question: I include header to the acount.php page. And it gives the same error, but in this situation I don't have any outputs. yes you are. here is why: --

Re: [PHP] Return value efficiency question

2004-03-10 Thread Robert Cummings
On Wed, 2004-03-10 at 08:30, [EMAIL PROTECTED] wrote: On 10 Mar 2004 Robert Cummings wrote: Overhead is minimal since PHP doesn't actually copy the contents of the container until an attempt to modify it is made. At which time the contents are only actually copied if the internal

[PHP] magic_quotes_sybase - Windows MSSQL

2004-03-10 Thread Jeremy
My ISP has the following settings in their php.ini file: magic_quotes_gpc = ON magic_quotes_sybase = OFF I am using a Windows Server and a SQL Server database. I need to set magic_quotes_sybase to ON so that quotes will be escaped with another quote instead of a slash. However, I do not have

RE: [PHP] How to make sure a redirect works

2004-03-10 Thread Vincent Jansen
If you output a location header then I don't know what the browser will do with text sent after that. Hopefully nothing! I experienced some strange behaviour(=no redirect at all!!) with a script that send data after the location header. Best to do this header(Location: http://somesite.nl;);

RE: [PHP] wysiwyg editor

2004-03-10 Thread Vincent Jansen
I use http://www.fredck.com/FCKeditor/ Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Five
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] for $_GET[], I found indirect references (documentation of other subjects that use $_GET[] and $_POST[] ) but no documentation focusing directly on either. Is there on line documentation specifically dedicated to

RE: [PHP] small business inventory management package

2004-03-10 Thread Ralph
OSSUITE: http://sourceforge.net/projects/ossuite/ or just browse through sourceforge projects: http://sourceforge.net/softwaremap/trove_list.php?form_cat=129discrim=183 -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 1:38 AM To:

[PHP] new to php question

2004-03-10 Thread Luke Brindley
I'm new to php but want to use it for a music club's website I'm working on. Specifically, I want to create an online form that the booking agent can fill out with information like Date, Time, Cover Charge, Band Name, Description, etc and have this data populate the calendar page in

[PHP] Letters and Numbers limitation

2004-03-10 Thread Mike Mapsnac
Form takes parameter username, so I want to accept username taht includes only numbers and letters. How can I check if variable contains only letters and numbers? _ FREE pop-up blocking with the new MSN Toolbar – get it now!

Re: [PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Kelly Hallman
Mar 10 at 9:45am, Five wrote: If I have some snap and I want to see some other employee's info I can then type it into the URL http://www.foo.com/employee.php?eid=bstreisand The rules for usage come down to this - A little common sense goes a long way. There are really no specific rules.

Re: [PHP] Letters and Numbers limitation

2004-03-10 Thread Larry E . Ullman
Form takes parameter username, so I want to accept username taht includes only numbers and letters. How can I check if variable contains only letters and numbers? Use regular expressions. See the PHP manual (for PCRE or POSIX) for more. You'll also find a number of tutorials online about

RE: [PHP] new to php question

2004-03-10 Thread Chris W. Parker
Luke Brindley mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 10:37 AM said: Specifically, I want to create an online form that the booking agent can fill out with information like Date, Time, Cover Charge, Band Name, Description, etc and have this data populate the calendar page in

[PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's get_browser function which needs a file called browscap.ini on the server. It *seems* that there is no such file available for Linux (I have checked the manual and the link that it mentions). Can anyone point me to a source

RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Chris W. Parker
Shaunak Kashyap mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 11:21 AM said: I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's get_browser function which needs a file called browscap.ini on the server. It *seems* that there is no such file available for Linux

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Chris W. Parker
Jason Davidson mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 12:25 AM said: would the following example be faster or slower had i simply done $this-myArray[$i] = $i; class MyClass { var $myArray = array(); function MyClass() { $myTempArray = array();

[PHP] error_log set but still writing to syslog and the apache error_log

2004-03-10 Thread Jason Lehman
I have set error_log to /var/logs/php_error.log and no matter what it keeps writing to syslog. I have restarted the server and it shows up in the phpinfo(); correctly but it won't write to the it keeps writing to syslog. I have changed the owner to apache.apache and I have kept it to

[PHP] Re: Passing array from class to class produces more than one result...

2004-03-10 Thread Luis Mirabal
mmmh... i think its not coded the right way, first of all, you shouldn't put this: $this-setArray(@mysql_fetch_array($this-getResultID())); in the Select method, you should do it in your FetchArray method, every time it gets called, and return the value directly or false if there are no more

Re: [PHP] arrays, loops, vars and props

2004-03-10 Thread Luis Mirabal
i would do it this way function MyClass() { $this-myArray = range(0, 99); } luis. Chris W. Parker [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Jason Davidson mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 12:25 AM said: would the following example be faster

Re: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread James Kaufman
On Wed, Mar 10, 2004 at 02:21:19PM -0500, Shaunak Kashyap wrote: I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's get_browser function which needs a file called browscap.ini on the server. It *seems* that there is no such file available for Linux (I have checked the

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Michal Migurski
here's how i would do it (coding styles aside): function MyClass() { $limit = 100; $i = -1; while(++$i $limit) { $this-myArray[] = $i; } } Don't forget poor old range: $this-myArray = range(0, 99);

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Chris W. Parker
Luis Mirabal mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 12:30 PM said: i would do it this way function MyClass() { $this-myArray = range(0, 99); } guys (luis), guys (mike), let's not try to one-up each other... ... ... but i would take it a step further. :P function

[PHP] Re: what does this mean?

2004-03-10 Thread Luis Mirabal
the casting is as follows, any value distinct from zero, null or empty string is converted to true, else the it is converted to false Harry Wiens [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] $this-styles['shadow'] = (boolean)$bool;

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Jason Davidson
Im fully aware of diffrent ways of doing it, my question is, in the 2 ways i mentioned, which is more efficient. Ill take the question to the internals list. Thanks for your responses. Jason Chris W. Parker [EMAIL PROTECTED] wrote: Luis Mirabal mailto:[EMAIL PROTECTED] on Wednesday,

[PHP] perl, cgi and php

2004-03-10 Thread Edward Peloke
Hello, First let me say, I know very little about perl and cgi. I have a friend who is moving his site to a new hosting company. One of his php pages has the following line of code: ?php virtual(./timeline/ganttChart.cgi?user={$gallery-session-username}); ? but when the page is displayed all

Re: [PHP] perl, cgi and php

2004-03-10 Thread joel boonstra
On Wed, Mar 10, 2004 at 04:07:28PM -0500, Edward Peloke wrote: First let me say, I know very little about perl and cgi. I have a friend who is moving his site to a new hosting company. One of his php pages has the following line of code: ?php

[PHP] If Using PHP CLI to Query Oracle8I DB, is Version Number Critical?

2004-03-10 Thread Martin McCormick
We use PHP 4.3.4 (cli) to query a Microsoft SQL database server with no problem. We are now going to attempt the same sort of thing, only with a Pinnacle server running an Oracle8I data base. The php installation is on a FreeBSD UNIX platform and the Pinnacle server is on a

[PHP] PHP on Novell server

2004-03-10 Thread Tim Thorburn
Hi, I'm putting together a proposal to design a website that is to be hosted on a Novell Enterprise 5.1 webserver - I'm told its an off-shoot of the Netscape Enterprise server. I've spoken with the network admin, and we're playing some phone tag right now, so I thought I'd ask here - is it

RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
Thanks for the prompt reply. I downloaded the file from www.GaryKeith.com and set up the php.ini entry to point to it. Then I called get_browser() and it returned nothing. Once again, my configuration is as under: OS: Linux Red Hat Enterprise WS PHP: 4.2.3 Web server: Apache 1.3.29 Have you

[PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Hi , What is the equavilant in PHP to creating a recordset in ASP using a query? This is what I do in PHP: .. dim Type Type = CStr(Request.QueryString(action)) (getting parameter from URL) Dim cnn ' ADO connection Dim rst ' ADO recordset Dim strDBPath ' path to

[PHP] Re: ASP to PHP language problems

2004-03-10 Thread Ligaya Turmelle
I don't know ASP but I think this is what you want: $sql = SELECT * FROM table WHERE Type = \ type \ order by style;; $resultID = mysql_query($sql, DBlink); // send the query and returns a pointer to the results while ($row = mysql_fetch_assoc($resultID)) // while there are results give

[PHP] Re: ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
This is what I get when I try to create the recordset Notice: Use of undefined constant DBlink - assumed 'DBlink' in D:\Development\Completed\Sealhouse\phpSealTest\ProductSpecs.php on line 24 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Chris W. Parker
Alistair Hayward mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 2:46 PM said: This is what I get when I try to create the recordset Notice: Use of undefined constant DBlink - assumed 'DBlink' in D:\Development\Completed\Sealhouse\phpSealTest\ProductSpecs.php on line 24 well

Re: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Thanks Chris, Believe me, I have been doing research non-stop for a few days now and this is my last resort. The problem is the language. I can't find what I'm looking for on the net because I don't know what it's called. I have worked out how to create a connection to a mySQL server and

Re: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
This is what I have: ?php $connection = mysql_connect(localhost,root,batman); if (!$connection) { echo Couldn't make a connection!; exit; } $db = mysql_select_db(sealhouse, $connection); if (!$db) { echo Couldn't select database!;

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
Not trying to sound rude or anything, but have you looked up the mysql functions at http://php.net/mysql in your research? I would start with mysql_connect(), mysql_query(), and mysql_fetch_array()/mysql_result(). There are lots of user notes on each page as well which should be of

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Wednesday, March 10, 2004, 10:26:03 PM, you wrote: AH dim Type AH Type = CStr(Request.QueryString(action)) (getting parameter from URL) unset($type); $type = $_GET['action']; (Please note - you don't HAVE to unset each variable, but if you are working in a Register Globals ON

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Richard: Thank you so much! Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 10:26:03 PM, you wrote: AH dim Type AH Type = CStr(Request.QueryString(action)) (getting parameter from URL) unset($type); $type = $_GET['action']; (Please note - you don't HAVE to unset each variable,

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
Since I am assuming Type is a text field, you will want to enclose it in single quotes. Also, because I am anal retentive, I like to also use the addslashes() function on any input coming in on the GET string or via a POST. Also, since all variables are preceded by a $ character, your call to

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Richard Davey wrote: A few ways to do this: $total_records = mysql_num_rows($result); for ($i=0; $i $total_records; $i++) { $data = mysql_fetch_assoc($result); print_r($data); } $data will now be an array holding the first set of information. The print_r line just displays it so you can

Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH I get this error: mysql_num_rows(): supplied argument is not a valid AH MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Maybe post that part of

[PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
I was given a database that has uniques IDs such as: AL1 AL2 AR1 AR2 MI1 etc... The first two letters are based on the state they live in, then it would need to look at the next 5 characters to determine the next ID. My problem is how do I recreate this in PHP to make sure

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Chris W. Parker
J J mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 3:46 PM said: Any ideas? Thank you in advance! does it all have to be in the same field? can you not just combine two fields? one field would be called 'id' and it would be auto-incrementing. second field would be 'state' and it

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
I'd like to keep it in one field if possible since that's how their database is now and data will be going back and forth. Plus there should be allowed two of the same numbers, so like: AL3 KY3 So any state with more than one record can be sequential and not jump around like KY3,

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Chris W. Parker
J J mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 4:03 PM said: I'd like to keep it in one field if possible since that's how their database is now and data will be going back and forth. [snip] So any state with more than one record can be sequential and not jump around like

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
Will it be able to figure out what the last number is if it's a character type and the number is something like 3? So it'll add one to make it 4 and not something like 10003. ?? --- Chris W. Parker [EMAIL PROTECTED] wrote: yeah that makes sense. hmm.. well i'll give you my idea..

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Chris W. Parker
J J mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 4:22 PM said: Will it be able to figure out what the last number is if it's a character type and the number is something like 3? So it'll add one to make it 4 and not something like 10003. php knows. you'll just have to

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Raditha Dissanayake
Hi. There is an ADO simulator for PHP (i think it's called ADODB PHP but i can't remember the link). There is also a asp to php converter called (can you guess? ) asp2php. Alistair Hayward wrote: Hi , What is the equavilant in PHP to creating a recordset in ASP using a query? This is what I

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Miles Thompson
At 04:10 PM 3/10/2004 -0800, Chris W. Parker wrote: J J mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 4:03 PM said: I'd like to keep it in one field if possible since that's how their database is now and data will be going back and forth. [snip] So any state with more than one

[PHP] How to mesure response time of php pages

2004-03-10 Thread Merlin
Hi there, can anybody recommend tools to messure page loading time of php pages. I am working on a new site and it apears to me that the old one loads much faster. Are there any tools around to break this down to hard numbers? thanx for any hint, merlin -- PHP General Mailing List

RE: [PHP] How to mesure response time of php pages

2004-03-10 Thread Chris W. Parker
Merlin mailto:[EMAIL PROTECTED] on Wednesday, March 10, 2004 5:05 PM said: can anybody recommend tools to messure page loading time of php pages. I am working on a new site and it apears to me that the old one loads much faster. Are there any tools around to break this down to hard

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH I get this error: mysql_num_rows(): supplied argument is not a valid AH MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Maybe

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Sorry, was the query! Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH I get this error: mysql_num_rows(): supplied argument is not a valid AH MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over

RE: [PHP] How to mesure response time of php pages

2004-03-10 Thread Jason Sheets
You can also use something like Turck MMCache to accelerate the scripts. There is a class at http://pear.php.net for benchmarking PHP scripts and you can use a web client that times how long it takes to download a page. I would look at template caching and Turck MMCache to increase performance.

[PHP] proxy of sorts

2004-03-10 Thread erythros
two files proxy.php and image.php proxy downloads the website and image downloads the pictures proxy.php-- ?php /\ * Check to see if a web address is present...* * iproxy is where the imagaes

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Rodrigo Castro
On Wednesday 10 March 2004 18:54, Raditha Dissanayake wrote: Hi. There is an ADO simulator for PHP (i think it's called ADODB PHP but i can't remember the link). There is also a asp to php converter called (can you guess? ) asp2php. http://php.weblogs.com/ And Pear::DB must work too :P

Re: [PHP] Re: Are $_POST and $_GET interchangable? MORE

2004-03-10 Thread Five
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] stuff [/snip] From http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 17.13.1 Form submission method The method attribute of the FORM element specifies the HTTP method used to send the form to the

Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Thursday, March 11, 2004, 1:25:47 AM, you wrote: AH ?php AH unset($type); AH $type = $_GET['type']; AH $link = mysql_connect('localhost', 'user', 'password'); AH if (!$link) { AH echo Couldn't make a connection!; AH exit; AH } AH $db =

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
Yeah thanks for the feedback, I'm already including a primary key auto_increment field in place to tie the tables together with an ID I *know* will be unique. This other ID scheme is just to work within their existing system that uses this. I'm just trying to mirror/maintain that scheme for

  1   2   >