[PHP] mysql problem

2002-10-03 Thread BB
I seem to have a php-mysql problem on my new Sun Qube3 (RH Linux). php works fine, mysql works fine, apache works fine, only the combination of the three seems troublesome. php does not recognize commands like mysql_connect() when trying to start phpMyAdmin I get: cannot load MySQL extension In

[PHP] socket_read

2002-09-04 Thread BB
I'm having a problem with socket read, it's only reading one character. This may not sound so bad, but when you think that while it's reading all those one characters, it cannot read anyone else's (it blocks). Can anyone explain, or have a better way of doing this? Code below: ?php

[PHP] Dos Paths

2002-07-10 Thread BB
I've got an application that requires dos folder names (8.3 standard) as input. I also have PHP, which quite happily can cope with both. Can someone help me write a function to translate full paths to dos paths Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Dos Paths

2002-07-10 Thread BB
It doesn't matter how fast it does it. It matters what language it does it. C and C++ are a big no no as our company doesn't have a compiler (winblows). Thanks for the pointer David Otton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 10 Jul 2002

[PHP] Re: Dos Paths

2002-07-10 Thread BB
Thanks to all, I actually found a work around with the program I am using and I'm much happier! Thanks for all your input, it'll be useful if i ever need to convert long names to 8.3 :oP --BB Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] Converting PCX to ...

2002-07-09 Thread BB
Thanks, installed and working Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 8 Jul 2002, BB wrote: I'm writing a reporting system and I have a problem. I need to insert PCXs into a PDF (using PDFLib), but it doesn't suppor

Re: [PHP] Converting PCX to ...

2002-07-09 Thread BB
don't get any errors. Nothing Someone please help, note: the location of the images cannot be changed Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 8 Jul 2002, BB wrote: I'm writing a reporting system and I have a problem.

Re: [PHP] Converting PCX to ...

2002-07-09 Thread BB
batch files rock! :o) Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... im having problem getting this converter to work, im running the following code: exec(cmd /c f:; cd \Products\legacyipc\ipc_dev\Chapter 21; convert test.pcx PDF_Cache\test.gif);

[PHP] Re: Converting PCX to ...

2002-07-09 Thread BB
I got a problem with that! I've written a batch file that sits in the same dir as the PHP script and when I exec it, it doesn't work! I've thouroghly thrashed the batch file for errors and it came up ok every time. if I echo the exec it only returns the first line of the batch file. Anyone?

[PHP] Re: Executing Script through image

2002-07-09 Thread BB
$filename = your/file.gif; header(Content-Type: image/gif); header(Content-length:.filesize($filename)); $fn=fopen($filename,rb); while(!feof($fn)) { echo fread($fn, 4096); } in fopen( , ); the b denotes to read as binary and is only nessecary on a windows system Jj Harrison [EMAIL PROTECTED]

[PHP] Converting PCX to ...

2002-07-08 Thread BB
and run in PHP script), because the images will have additions and modifications on a regular basis; and they come as PCXs. Anyone? --BB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Session variables

2002-07-08 Thread BB
and to bring it up another level: OPTION value=please select?=((empty($day)) ? ' selected' : ''); ? OPTION value=monday?=(($day == 'monday') ? ' selected' : '');? :oP Michal Dvoracek [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... SELECT name=day OPTION

[PHP] strip_tags

2002-07-01 Thread BB
I'm having a problem using strip_tags. When I try and run a table through strip_tags with the following vars, it looses everything after the first cell with content in, i.e: nothing after the first cell is returned, not even a /td can anyone help? is this a PHP bug? -- PHP General Mailing

Re: [PHP] strip_tags

2002-07-01 Thread BB
]">news:[EMAIL PROTECTED]... On Mon, Jul 01, 2002 at 12:35:53PM +0100, BB wrote: I'm having a problem using strip_tags. Sounds like you're using it wrong. Re-read http://www.php.net/manual/en/function.strip-tags.php. Then fix your code accordingly. If that doesn't work, post a

Re: [PHP] strip_tags

2002-07-01 Thread BB
s:[EMAIL PROTECTED]... On Mon, Jul 01, 2002 at 04:09:04PM +0100, BB wrote: Dude, c'mon! I asked for a _sample_ for a reason. First, I didn't want to have to wade through a ton of HTML. Second, it'd help you isolate the problem so you could formulate an accurate question and/or figure out the

[PHP] HTML formatting

2002-06-28 Thread BB
I have assembled a rich text html editor for the web and the code returned can be quite horrid. When pasteing from word (as our client wants to), the code returned looks something like this: TABLE style=BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM:

[PHP] Re: HTML formatting

2002-06-28 Thread BB
THANKS!!! great help! :oP Liljim [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Actually, I just threw in this amendment: function CleanUpHtml($var) { $var = preg_replace(!t(a|r|d)(.*?)style=\.*?\(.*?)!is, t$1$2$3, $var); $var =

[PHP] Re: Fork Or Cron?

2002-06-27 Thread BB
what would the adult/child be doing? Apokalyptik [EMAIL PROTECTED] wrote in message 1025128477.26152.23.camel@BlackHole">news:1025128477.26152.23.camel@BlackHole... I'm the author of a little used, little cared about ftp indexing script (http://www.apokalyptik.com/ftp/) and i'm working on -

[PHP] MySQL Problem with PHP

2002-06-26 Thread BB
I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box I have a piece of SQL INSERT INTO `contracts` (`key`, `content`) VALUES (1,'blah blah blah character 39 is a single speach mark '+CHAR(39)+' blah blah blah') Instead of inserting: 'blah blah blah character 39 is a single

[PHP] Re: MySQL Problem with PHP

2002-06-26 Thread BB
I just preg_replace(/\'/,\',$text) and all was good :o) David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box I have a

Re: [PHP] MySQL Problem with PHP

2002-06-26 Thread BB
I understand about the concat function, but that doesn't really fit into my scheme of things I run all text for the web through a function SafeSQL so that values from the web don't make SQL error or potential hacks occur. All SafeSQL was doing (for mssql, access and just about any other db) was

[PHP] Re: [PHP-DEV] singleton feature

2002-06-25 Thread BB
I would like to know too, Purushotham Komaravolu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Singleton means only one instance.. i.e. instance of a class per webserver... all application scripts should talk only to that same instance irrespective of the

[PHP] Re: getting the value of a javascript variable

2002-06-24 Thread BB
http://www.mattkruse.com/javascript/dynamicoptionlist/source.html hope this helps Otteneder Hermann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi everybody, i have a short problem: i have two drop down menues in a form. the content of the second dropdown

[PHP] Re: URGENT!!! File Uplaod

2002-06-24 Thread BB
http://www.php.net/manual/en/function.is-uploaded-file.php César aracena [EMAIL PROTECTED] wrote in message 000901c21b5a$e1aea180$cdc405c8@gateway">news:000901c21b5a$e1aea180$cdc405c8@gateway... Hi all. Sorry for this, but a couple of hours ago (imagine. Monday at 3 in the morning) one of my

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread BB
$var = preg_replace(/\n*/,\n,$var); Jason Caldwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there an elegant way to remove excess blank lines from my form data? For example; if someone enters the following text and then press' the Submit button:

[PHP] Re: === and @

2002-06-24 Thread BB
== compares 2 variables regardless of type (1 == 1) === compares 2 variables with type in mind (1 !== 1) @ supresses errors in functions Phil Schwarzmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What exactly happens when you put three equal-signs together

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread BB
replace that with $var = preg_replace(/\n+/,\n,$var); Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $var = preg_replace(/\n*/,\n,$var); Jason Caldwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is ther

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread BB
$var = preg_replace(/[\r\n]+/,\n,$var); Jason Caldwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... neither worked. any other suggestions? Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... replace

Re: [PHP] URGENT!!! File Uplaod

2002-06-24 Thread BB
It does depend on the usage, but general files are better John Holmes [EMAIL PROTECTED] wrote in message 000a01c21b69$74acc170$b402a8c0@mango">news:000a01c21b69$74acc170$b402a8c0@mango... You're completely right - as usual - now for the file handling... what's better? Storing it to the DB

[PHP] Re: php JavaScript

2002-06-24 Thread BB
Javascript is client side and is not parsed by the server at all If you are generating javascript with PHP, and it is in an external file, it still needs a .php extension Can you be more specific to the problem, paste some code? Luis Miguel N. Tavora [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: PHP and COM

2002-06-24 Thread BB
$DBCon = new COM(ADODB.Connection); $DBCon-Open('PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=your.mdb'); Function CloseSQL() { global $DBCon; $DBCon-Close(); $DBCon = ; } Function ExecSQL($SQL) { global $DBCon; $rs = @$DBCon-Execute($SQL); if (!$rs) {

Re: [PHP] Small CGI Serve

2002-06-19 Thread BB
Because that's how they get there! Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hail, BB: On Tue, Jun 18, 2002 at 12:37:29PM +0100, BB wrote: Having finally found out how to pass the Environment vars onto PHP, I am stumpted

[PHP] Re: parse text

2002-06-19 Thread BB
At a guess, without trying it out $fp = fopen(your file) or echo Cant open your file; $tmp = fread($fp,1024); preg_match(/(.{8}).(.{5})/,$tmp,$matches); then $matches[1] will have the first part and $matches[2] will have the second note: $matches[0] = whole preg'd text Sonjaya [EMAIL

[PHP] Re: Forum with php

2002-06-19 Thread BB
PHPBB Use google to search :o) Martin Thoma [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! I saw a lot of forums (or boards) which looks almost the same and they are done in php. Is there a free forum-software in php? Martin -- PHP General

[PHP] Small CGI Serve

2002-06-18 Thread BB
I am trying to write a small CGI webserver. Having finally found out how to pass the Environment vars onto PHP, I am stumpted to find that PHP wasn't reading them and putting them in their place (GET vars). I tried changing the exe from the php-cli to just php. This now brings up a security

[PHP] Re: Sessions : see also Tracking file downloads

2002-06-18 Thread BB
This really is like life, PHP Sessions aren't particularly secure, just make a form to post PHPSESSID of a true session to one of ya pages and you can steal a session! Its possible to check IPs and so on, PHP's sessions use text files (by default), and pre-populate $_SESSION/$HTTP_SESSION_VARS.

[PHP] Re: phpmyadmin - moving data from one database to another

2002-06-18 Thread BB
dump all the data to csv and read it in the other end! Phil Schwarzmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The lazy and worthless a-holes at www.infinitehost.com (my host server) are forcing me to move all my MySQL data from one server to another