[PHP] Error in host server data stream

2002-12-05 Thread Daniel
my php code is working on one machine and not on another. I am now getting the error Warning: SQL error: [unixODBC][IBM][iSeries Access ODBC Driver]Error in host server data stream., SQL state S1000 in SQLExecDirect working machine: unixodbc 2.2.2-2 php-odbc4.1.2-7.2.4 non working:unixodbc

[PHP] HELP with ODBC Connection

2002-12-06 Thread Daniel
Please help. I have a basic scipt: $connection_id=odbc_connect("$DSN","$user","$pass"); $sql="select * from whatever"; $stmt=odbc_prepare($connection_id,$sql); $result=odbc_execute($connection_id,$stmt); this script used to work on RH-7.3 with php-4.1.2 the script will not work anymore when i ins

RE: [PHP] php5 cvs

2003-01-12 Thread daniel
right ok , but obviously it wouldnt have an effect anyway prior to php5 thanks anyway. >= Original Message From "Sean Malloy" <[EMAIL PROTECTED]> = >No the documentaton you are talking about, was that prior to ZE2 people were >using underscores to denote private functions/variables. With Z

RE: [PHP] Video clip

2003-03-08 Thread daniel
definbately OT dude , use the windows media player object embed code >= Original Message From Anthony Rodriguez <[EMAIL PROTECTED]> = >Hi! > >In PHP, does anyone know how I would display a video clip (.avi?) on a >specific spot on a Web page? > >Thanks! > >Tony > > > >-- >PHP General Mailin

RE: [PHP] Re: Php +Xml?

2003-03-08 Thread daniel
wot exactly does the xml parse do over sablot ? and what benfit do u get xml'ing an entire site , where some processes which come easy to do in php are insanely tedious to replicate in xsl :| >= Original Message From "James" <[EMAIL PROTECTED]> = >There is nothing to install. > >By defau

RE: [PHP] Re: Php +Xml?

2003-03-08 Thread daniel
what is domxml ? is it similar to sablot ? >= Original Message From "Alexandru COSTIN" <[EMAIL PROTECTED]> = >Hello, > >> Hello people, >> >> I want to start using Xml with php. How do I install xml on Apache with >Php? >> I am running redhat 7.2,Apache 1.3.12 and php latest version. >

[PHP] PHP5 + PHP4

2003-03-08 Thread daniel
i forgot who asked but just to show u PHP4.3.1 : http://electroteque.dyndns.org:1023/phpinfo.php PHP5: http://electroteque.dyndns.org:1025/phpinfo.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Array - Newbie question

2003-03-08 Thread daniel
would this work ? $EricCodesArray[2][2] ? >= Original Message From [EMAIL PROTECTED] = >New at this, somewhat: > >#http://www.php.net/manual/en/ref.array.php >$EricCodesArray = array ( >"CO" => "Description", "Input Name", "Select Name", "Option Name", "Option Selected", >"AN" => "

RE: [PHP] Array - Newbie question

2003-03-08 Thread daniel
sorry yeh its not a numbered key as like the next posts $EricCodesArray[TI][2] >= Original Message From [EMAIL PROTECTED] = >echo $EricCodesArray[2][2]; > >No. > > >> would this work ? >> $EricCodesArray[2][2] ? >> > #http://www.php.net/manual/en/ref.array.php >> $EricCodesArray = array ( >

RE: [PHP] More array syntax

2003-03-08 Thread daniel
here is a tricky question , as i've probably said work is still using php3 and mysql 3.22 which has no random select function , and the only way i can randomise results is place them into an array and use shuffle , although shuffle will not randomise on a two dimensional array , how can i get th

[PHP] RE: tricky exec problem

2003-03-10 Thread daniel
hi guys i am having a problem getting certain command line output bak to php i am using the time binary to show the ammount of time it takes for the php script to be compiled using the command line php although i am not getting any output exec("/usr/bin/time php -q /www/sbsmain/worldarts/index.p

[PHP] trikky string limit question

2003-03-13 Thread daniel
hi there , i am trying to show news content , the page may get pretty huge if they all show on the same page , i have been considering a caption of 255 chars max , i would like to know if i could prob limit the front to 255 chars and if its between a word somehow show it till the last . probably

RE: [PHP] Enabling GD library

2003-03-13 Thread daniel
here is my configure line http://electroteque.dyndns.org:1023/phpinfo.php sorry i cannot find the classic gd install tutorial it helped alot >= Original Message From "Sebastian" <[EMAIL PROTECTED]> = >Hello all. > >I have php version 4.3.1, on linux. I want to enable GD library, my guess

RE: [PHP] trikky string limit question

2003-03-13 Thread daniel
return $content; } } explodes and splits were not getting the "." properly >= Original Message From daniel <[EMAIL PROTECTED]> = >hi there , i am trying to show news content , the page may get pretty huge if >they all show on the same page , i have been c

[PHP] preg_replace question,

2003-03-13 Thread daniel
yes another one sorry, i'm trying to find the most efficient way to do a replactment over this eregi_replace("\[f$key\f\]","$value",format_content($content));, would preg_replace be quicker and how could i go about it ? i'd need to replace [f1247f] with its replacement value better still maybe

RE: [PHP] preg_replace question,

2003-03-13 Thread daniel
the current function been put in place replaces [f1253f] with a file, for inside cms content , where 1253 is the key or the id of the filename in the database , therefore to denote its an ftool they added f's around the keys , so maybe i could get away with [1253], what else i'm asking if preg_r

RE: [PHP] building a large-scale application using oop

2003-03-16 Thread daniel
have a look at my class , i had to do it from scratch as pear db + mdb have too much weight and needed a faster app, being that its going to be on a mysql database only, i send my login variables to a connect function, and those login variables i store in a file outside the web directory http://el

RE: [PHP] List tables

2003-03-16 Thread daniel
use mysql_list_tables ? >= Original Message From "shaun" <[EMAIL PROTECTED]> = >Hi, > >i would like to list all of the tables and field names in my database > >e.g. > >table 1 > field 1 > field 2 > field 3 >table 2 > field 1 > field 2 > field 3 >table 3 > field 1 > field 2 > field

[PHP] RE: ignore html

2003-03-16 Thread daniel
hi guys trikky question , i would like to ignore html in content that i am replacing news lines with page breaks , how is it possible ? at the moment and new line like so \r\n in content will be replaced with a but happens to work on say tables tags within the content aswell and need to ignore

Re: [PHP] Re: php - printer button

2003-07-01 Thread daniel
lol we we just discussing this at work the printer functions are only for windoze , there is jscript window.print() to bring up the printer dialog , a project i just did implemented htmldoc which outputted the formatted content to pdf which was a more well formed format for printing rather than fr

Re: [PHP] PHP to Excel Export

2003-07-03 Thread daniel
excel has a char limit of 255 , if you can find a work around for it please do let me know , also , check out the bifwriter , i think the pear packages just outputs csv right ? > Hi Group, > > I am working on an app the creates an Excel file. Right now I am using > the PEAR package Spreadsheet_Exc

[PHP] fwrite not working in php3

2003-07-16 Thread daniel
hi there i have a little problem writing files on a php3 server this code worked yesterday but isnt $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a'); $buffer = "test"; echo fwrite($handle,$buffer,4000); fclose($handle); i get a filesize of 0 and nothing writes to it what

Re: [PHP] pdf information..

2003-07-16 Thread daniel
hmtldoc rulez , i have tried fpdf and is tedious u have to draw the tables >> What's the problem with paying for something if > > nothing.. nothings wrong, but if the free GNU software can do it also, > i switch to free software. > > Like php is :) At first not that mature but look at it now.. > >

Re: [PHP] fwrite not working in php3

2003-07-16 Thread daniel
sorry guys the server was full again , doesnt return any error at all funny hey > On Thursday 17 July 2003 09:46, [EMAIL PROTECTED] wrote: >> hi there i have a little problem writing files on a php3 server this >> code worked yesterday but isnt >> >> $handle = >> fopen("/www_tools/apache/htdocs/ph

[PHP] radio button arrays and php3

2003-07-22 Thread daniel
hi there i dont know if this happens in php4 but say i have a list of radio buttons in an array like it only returns the one selected into the array, so instead of having 2 keys i only get the one , the empty one doesnt seem to get submitted , how can i make both turn up in the array ? -- PH

Re: [PHP] radio button arrays and php3

2003-07-22 Thread daniel
umm yes i had to use select menus instead > * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): >> hi there i dont know if this happens in php4 but say i have a list of >> radio buttons in an array like >> >> >> >> it only returns the one selected into the array, so instead of having >> 2 keys i

[PHP] splitting content into pages

2003-07-30 Thread daniel
hi there , i have an issue trying to split content into pages , we have a popup with content and a background image with a set height , when there is more content the background repeats , theoretically i'd want to split the content into pages after a given length or line length or where it meets th

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
ok let me explain , its straight up text content from the database , say its scrolls for ages , i need to split it into pages , so i get the length of the string up to the last paragraph which fits i need to split it there any idea ? > [EMAIL PROTECTED] >on Wednesday

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
maybe somehow with a substr function that gets the position of the last paragraph ?? > ok let me explain , its straight up text content from the database , > say its scrolls for ages , i need to split it into pages , so i get the > length of the string up to the last paragraph which fits i need to

Re: [PHP] splitting content into pages

2003-07-30 Thread daniel
this isnt a client side issue it'll defeat the purpose if i dont repeat the background image and then let the text flow over it , its supposed to look like a notepage for a blogger > Is there a reason this can't be solved with a CSS background-repeat: > repeat-y; ? Or is download time of individua

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
ok i have an idea , i have a solution which may work i dont know just yet , ok say the strlen of the entire content is 1675 , the strlen of the content up to the last paragraph is 1300 , how can i substr this to get the next block of text from 1300 and also increment if there is more pages ?? > Eva

Re: [PHP] splitting content into pages

2003-07-30 Thread daniel
your example doesnt work , and the whole purpose of this is because the background image wraps if there is too much text , i'm also trying to figure out of leaving it this way and add a few page breaks at the certain length so the text doesnt go over the dark edge as u cant see it any ideas ? > Exc

[PHP] splitting content from database into pages again

2003-07-31 Thread daniel
hi guys regarding my question yesterday here is exactly what i want to do http://www.evilwalrus.com/articles.php?aid=42 this is obvioiusly splitting the content up when pull from the database here is an example but is uses text files http://www.evilwalrus.com/viewcode.php?codeEx=522 is there a

Re: [PHP] splitting content from database into pages again

2003-07-31 Thread daniel
ok this seemed to work using the text paging example replace the file line with this $afile = explode("\r\n", $string); > hi guys regarding my question yesterday here is exactly what i want to > do > > http://www.evilwalrus.com/articles.php?aid=42 > > this is obvioiusly splitting the content up whe

Re: [PHP] splitting content from database into pages again

2003-07-31 Thread daniel
function page_content($content,$limit = 10,$page) { $limit=20; $afile = explode("\r\n", $content); $maxline = count($afile); // count existing lines $max = $maxline - 1; $page ? $page = $page : $page = 1; $s=$page+$limit; for ($i=$p

[PHP] splitting content into pages

2003-08-03 Thread daniel
thanks to the poster on the substr page i made a modification to it so it now splits the content into pages lemme know anyone if this is useful usage: page_content($content,15,$_GET['page']); function page_content($content,$limit,$page) { $array = explode("\r\n", $content);

Re: [PHP] PHP Fusebox

2003-08-05 Thread daniel
i have used this before , its a wierd system and you have to echo the html absolutely painful > I am trying to standardize my development process and have been looking > at the different frameworks out there. > > One of the philosophies I like is that of Fusebox, although originally > developed fo

Re: [PHP] PHP Fusebox

2003-08-05 Thread daniel
really tedious logic >Hello, >You could also take a look at Krysalis Foundation - > http://www.interakt.ro/products/Krysalis/ > >It implements the MVC approach by defining a sitemap with the >request > serving rules, and by separating the model from the view using XML > trees as th

Re: [PHP] Display Records in Multiple Pages help please !

2003-08-07 Thread daniel
100k = 100k records = 200 meg hehe > a sample from my db class, i had to store the total in a session as > calling the total on every page on a large database was painful doing > count(*) or even SQL_CALC_FOUND_ROWS, on a small database u just cant > tell but on a database of 100k + it was painful

Re: [PHP] preventing output dump of passthru()

2003-08-08 Thread daniel
the whole idea of passthru is to output the stdout i'd use exec and the stdout is stored as an array > Hello, > > Trying to prevent the output dumping of passthru() and instead store > the output in a variable. > > I read an article that suggested this: > > ob_start(); > > passthru("command"); > >

[PHP] [Fwd: [ERR] Re: [PHP] Configuring PHP to use aspell]

2003-08-09 Thread daniel
how do we get this guy off the list Original Message Subject: [ERR] Re: [PHP] Configuring PHP to use aspell From: [EMAIL PROTECTED] Date: Sun, August 10, 2003 11:17 am To: [EMAIL PROTECTED] Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])

[PHP] hanmir.com

2003-08-09 Thread daniel
http://www.hanmir.com/ anyone know korean , we need to speak to the administrator of the server to turn this bloody annoying message off , i've never seen anything like this before how rude to send auto messages back -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Configuring PHP to use aspell

2003-08-10 Thread daniel
talking of aspell how could i intergrate this into a search engine, so i could correct typos in a search ? > I have the following set up... > > RH Linux version 7.3 > > PHP 4.3.2 > > Aspell installed on the server > > I have NEVER configured PHP and am looking for some assistance in > configuring P

Re: [PHP] PHP Fusebox

2003-08-10 Thread daniel
ok i have a standard of executing things i use a switch case to switch $_GET ['action'] , so i can have ?action=add_entry ?action=edit ?action=insert ? action=update ?action=delete etc .. this works well for a cms system > Hi Ralph! > > I suggest MVC. > > http://phrame.sourceforge.net/ > http://ww

Re: [PHP] Stop neurotic posting

2003-08-11 Thread daniel
> > Calling someone a twat is not going to persuade anybody to change > how you think a proper reply should be. > > If I dont understand someone's question, should I not let them know > that if that make themselves a little clearer a better answer may > be given instead of 12 people shooting in the

[PHP] dbx

2003-08-12 Thread daniel
hi there , i am interested to know more about dbx, especially the error handling $link = dbx_connect(DBX_MYSQL, "localhost", "db", "username", "password") or die ("Could not connect"); is there such an error feature where it can die to the screen with a custom error message instead of doing

[PHP] project management php system

2003-08-14 Thread daniel
Hi guys ok i am doing it now, but i'm not asking for you to code something for me, i'm looking for a classy project management system possibly in an open source format in PHP and Mysql. I was wondering who has implemented such a system they could recommend, i am investigation to look into customis

Re: [PHP] Stop neurotic posting

2003-08-14 Thread daniel
obviously our asp windoze counterparts look over us as inferior, but i dont see it that way, but how about java , looking into the future how inferior or superior comparing php and java ? > I tend to think that PHP will take over the world > Just my $0.02. > > > Robert Cummings wrote: > >>Hitl

Re: [PHP] Old version of PHP

2003-08-14 Thread daniel
actually u can explicitly turn on registered globals with a setting in a .htaccess file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] find string

2003-08-14 Thread daniel
what exactly is action ? i usually use a action setup like follows ?action=update switch ($_GET['action']) { case 'update': //do stuff here break; case 'insert': //do stuff here break; } very clean > Here's the problem I have: > I have $action which can be anyone of a1

Re: [PHP] Screen Resoultion

2003-08-14 Thread daniel
lol jscript dude , dont get the boyz and girlz started , it would be nice if php could do client stuff like asp > > Hello, > > Can anyone pls tell me is it possible to get the screen resoultion > using > php script ?? > > Regards, > Uma > > > -- > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] Re: Pls Help-Looking for PHP Product for Articles

2003-08-14 Thread daniel
select the article then get the comments joined to that article id ?? > Thanks Alexandru, > > I've been reading about KompleteLite, but it looks like you have to > install the Kyrsalis Enterprise server before being able to use > KompleteLite, and I don't think I'll be able to get that through our

Re: [PHP] Screen Resoultion

2003-08-14 Thread daniel
oh right sure thats easy done , i assumed u meant the variable itself document.formname.fieldname.value=somevar; > Use JS to set the value of a hidden form-field and then have it > immediately submit the form and it can be passed to php. Not > impossible. > > Greg > -- > phpDocumentor > http://w

Re: [PHP] Imagick

2003-08-14 Thread daniel
yeh i have found even if you give the path the jpeg-v6 it wont configure it the first time round takes about 5 goes ! > * Thus wrote Jacob Marble ([EMAIL PROTECTED]): >> Excuse me, I accidentally sent that last incomplete message. >> I have successfully compiled PHP 4.3.3RC3 with the --with-imagic

Re: [PHP] Object method overloading

2003-08-14 Thread daniel
What is the point of overloading an object again? > Hello, > > I realize this stuff isn't set in stone yet, but might I eventually > expect the following to make two assignments rather than one? > > > class overload_test > { >function __set($name, $value) { >echo "__set($name, $value)

Re: [PHP] Display Records in Multiple Pages help please !

2003-08-14 Thread daniel
a sample from my db class, i had to store the total in a session as calling the total on every page on a large database was painful doing count(*) or even SQL_CALC_FOUND_ROWS, on a small database u just cant tell but on a database of 100k + it was painful to load each page ;) function page_query($

Re: [PHP] Stop neurotic posting

2003-08-14 Thread daniel
what a silly elitist view you have > perhaps there should be two lists (novice and advanced), and the > advanced listed shouldn't > answer questions if it's considered trivial enough for the novice list > to answer. > > > > Curt Zirzow wrote: > >>* Thus wrote andu ([EMAIL PROTECTED]): >> >> >>>Thi

Re: [PHP] Screen Resoultion

2003-08-14 Thread daniel
umm sorry i wouldnt know i've never sold my soul to the devil > [EMAIL PROTECTED] wrote: > >>oh right sure thats easy done , i assumed u meant the variable itself >> >>document.formname.fieldname.value=somevar; >> > Well, ASP can't do any more in that area than PHP can, nor should it be > able to

Re: [PHP] what's going on with the hanmir.com guy?

2003-08-14 Thread daniel
sorry i just made the notice too i hope it works > On Tue, Aug 12, 2003 at 03:58:19PM -0700, Chris W. Parker wrote: >> >> I'm surprised the email address hasn't been taken off the list yet. >> [EMAIL PROTECTED] you are my arch-nemesis!! > > [EMAIL PROTECTED] is the place to kvetch about users > li

Re: [PHP] what's going on with the hanmir.com guy?

2003-08-14 Thread daniel
i didnt undertstand a word you said , is he off the list yet > On Tue, Aug 12, 2003 at 03:58:19PM -0700, Chris W. Parker wrote: >> >> I'm surprised the email address hasn't been taken off the list yet. >> [EMAIL PROTECTED] you are my arch-nemesis!! > > [EMAIL PROTECTED] is the place to kvetch abo

RE: [PHP] Screen Resoultion

2003-08-14 Thread daniel
how is it possible to send a jscript variable to php thats impossible > You can do so with JavaScript and have that pass the information onto > your PHP scripts to do whatever it is that you want. > > -M > > -Original Message- > From: Uma Shankari T. [mailto:[EMAIL PROTECTED] > Sent: Tuesd

Re: [PHP] mail with no sendmail on linux

2003-08-14 Thread daniel
i have a class that can sewnd through smtp , but i think there i a package setup in php classes there is also a pear class to do this > Is there a workaround for not having sendmail installed on my linux > machine and using instead my isp's mail server. I am practically behind > 2 firewalls so I d

Re: [PHP] Stop neurotic posting

2003-08-14 Thread daniel
> This is a very busy list, over 100 message in a quiet day and most > people are helpful and decent, don't mind reading and learning. > Unfortunately there are some who mostly post stuff like 'read the > manual' and other shit like that. Stuffing e-mailboxes with such > garbage day after day do

[PHP] Fatal error: [] operator not supported for strings

2003-08-18 Thread Daniel
hi, how do i solve this error? Fatal error: [] operator not supported for strings in /var/www/html/p.../magazin/cos.php on line 13 line 13 is this line: $_SESSION["id_produs"][]=$_POST["id_produs"]; no error when i run in local host , when i upload in server (with PHP 4.2.2) only got this error

Re: [PHP] Fatal error: [] operator not supported for strings

2003-08-19 Thread Daniel
I checked ant that is not the cause of this problem. Any other sugesstion? "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Daniel wrote: > > > hi, how do i solve this error? > > > > Fatal error: [] operator not supp

Re: [PHP] is the list getting virus spammed?

2003-08-19 Thread daniel
how are they ever getting through ? the funniest of all is the windows update spam virus shit, obviously targetting the ladite and the weak. > Steelhead wrote: > >> yup, I got 5 instances. I am being slammed by viral messages today, 7 >> from another client. > > >27 so far have been quarantin

Re: [PHP] Your details

2003-08-19 Thread daniel
i got it 10 times today > [EMAIL PROTECTED] wrote: > >> Please see the attached file for details. >> > > Did anyone's AV pick up a virus in this email? It went right through > mine but obviously doesn't belong on this list. I just got the latest > definitions from Norton, too... > > -- > ---John H

[PHP] virus on the list

2003-08-21 Thread daniel
what is happening why am i keep getting these from php ppl ? i have recieved them from rasmus and anyone with a php.net domain aswell as from ppl on the list is there a virus on the list server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] OT-Re: worm on th list

2003-08-21 Thread daniel
aparantly it was designed to slow the web down, and its proved that, but also aparantly it infects by not even opening an attatchment but it could possibly have vb script within a html email :\ > On Wed, Aug 20, 2003 at 11:11:43AM -0400, andu wrote: >> Is this worm/virus windows specific? >> >> >

Re: [PHP] OT-Re: worm on th list

2003-08-21 Thread daniel
yes my spamassasin does this it adds spam like {spam?} and viruses {virus?} how can i filter that though in outlook like the damn thing only filters emails. > Get your mail sysadmins to install spamassassin, which I believe is > OpenSourced PHP, and the filter your {SPAM} directly into the > garba

[PHP] RE: muliple form array values

2003-03-16 Thread daniel
hi guys i have multiple media to update in an entry for instance where 123 is the fileid of the media in the database , how could i possibly loop through the post vars of fileedit and get each entry to update ? so therefore i could have something like this , loop through and update id 123

RE: [PHP] Which is quicker, if-else statements

2003-03-18 Thread daniel
hmm now u are talkin about caching , our systems guy is planning on using squid as the caching system is this a good idea ? >= Original Message From Jason Sheets <[EMAIL PROTECTED]> = >As a note Turck mmcache does optimization and also caches the compiled >scripts into shared memory. Zend

RE: [PHP] session variables

2003-03-19 Thread daniel
u have to start the session first then check with $_SESSION['tu']; >= Original Message From Pag <[EMAIL PROTECTED]> = > HI, > > Am trying to give controlled access to who logs in to my site. Have a >quick doubt: > > I register a session var named $tu (value is taken from t

[PHP] dynamically splitting a paragraph for a preview of content

2003-03-19 Thread daniel
hi guys , i assumed i had this working but i stand corrected, it basically will get the first dot in content which should denote a end of paragraph and show that as a preview, although say i put g.w bush in it will split off there which i dont want , is there a way i can do this with a paragraph

[PHP] require_once for php3

2003-03-23 Thread daniel
hi there is a way to include files once in php3 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] flush not flushing?

2003-03-25 Thread daniel
hi , i have had similar issues its worked by doing a ob_flush before flush then u want a sleep statement so maybe try ob_flush(); flush(); sleep(2); ?? >= Original Message From Bryan Koschmann - GKT <[EMAIL PROTECTED]> = >Hello, > >I'm including a script I use to automatically e-mail ov

RE: [PHP] Re: Formatting code.

2003-03-25 Thread daniel
this code doc is excellent thanks , although some of it i agree on but i do differently , naming conventions etc .. i usually follow the PEAR standard although i dont do any pear code , its been the best thing ever to happen for php , as for a newbie when pear first came around it helped alot ,

RE: [PHP] formatting textarea input on output

2003-03-25 Thread daniel
/** * converts line break and spaces to page break * * @access public */ function nlbr($string) { return preg_replace("/(\r\n|\n|\r)/", "\n", $string); } here is one i use , what i'm still trying to work out , its a way

RE: [PHP] formatting textarea input on output

2003-03-25 Thread daniel
umm nl2br doesnt work most the time , "nl2br -- Inserts HTML line breaks before all newlines in a string " sorry to give a wrong example this is for splitting your content into paragraphs obviously where there is a break in the content like so efwojeiowerjwetwpjwewoj eioptejoiejiojtei it won

RE: [PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread daniel
would exif work ? or maybe the binary jhead would work, it gets information out fo jpeg files , but they maybe have to be generated only from digital cameras i dont know. >= Original Message From "Juan Antonio Ruiz Zwollo" <[EMAIL PROTECTED]> = >Hello: > >Is it possible with PHP to chec

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread daniel
possibly a permissions problem , dir needs to be 777 and owned by httpd >= Original Message From "Jennifer Goodie" <[EMAIL PROTECTED]> = >http://www.php.net/manual/en/features.file-upload.php > >From the page listed above: "Related Configurations Note: See also the >file_uploads, upload_ma

RE: [PHP] logging ip address when submitting a form

2003-03-27 Thread daniel
this is a major problem , $_SERVER['HTTP_X_FORWARDED_FOR'] should get the ip being the isp proxy , but some proxies including the stupid windoze one we have at work will hide the ips behind it, so its rendered useless >= Original Message From Justin French <[EMAIL PROTECTED]> = >$_SERVER

RE: [PHP] Re: Internet Explorer toolbar

2003-03-27 Thread daniel
yes simply buffer the exact javascript code and then echo it ie $buffer .= ''; sorry i forget the no toolbar part from the top of my head. >= Original Message From Leif K-Brooks <[EMAIL PROTECTED]> = >Correct, but he asked about doing it with PHP. > >Peter Houchin wrote: > >> yes there i

RE: [PHP] upload question

2003-03-29 Thread daniel
there is no indication what exactly you want to know , its too ambiguous , but all i can say this book sounds like a dud, terrible explanation on file uploads, check out this pear package, it helped a great deal ,although i had to mod it to also do a check for mimetypes , as say i allowed only t

[PHP] mysql_field_table problem

2003-03-29 Thread daniel
hi guys this seems to return on the first letter of the table name ?? return @mysql_field_table($this->result,0); what could bne the problem ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] webeditor

2003-03-29 Thread daniel
gt; I've not used it, and it requires IE - but the demo >> was impressive. >> Miles >> >> >> At 11:21 AM 3/28/2003 -0800, Daniel Guerrier wrote: >> >Does anyone know of an open source webeditor that I >> >can use to enter information into a text a

RE: [PHP] mysql_field_table problem

2003-03-29 Thread daniel
n when selected fields this worked though select * from films how can i make it work with a join ? >= Original Message From daniel <[EMAIL PROTECTED]> = >hi guys this seems to return on the first letter of the table name ?? return >@mysql_field_table($this->result,0); wh

RE: [PHP] Is there a PHP for Dummies?

2003-03-29 Thread daniel
i can honestly say when i was a newbie , browsing other peoples code , and also especially the pear packages helped me formulate my own style , in particular , the pear packages helped alot to understand the structure and how to build classes properly , and phpdocs helped to understand a standar

[PHP] excel 2 csv 2 mysql

2003-03-31 Thread daniel
hi guys i am trying to work out how to dynamically be able to upload an excel file , export it to csv to be able to import into mysql , is there any examples out there ? fopen gave me binary code :| -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

RE: [PHP] excel 2 csv 2 mysql

2003-03-31 Thread daniel
nior manager, online production >epilepsy foundation >http://jonroig.com > > >-Original Message- >From: daniel [mailto:[EMAIL PROTECTED] >Sent: Monday, March 31, 2003 7:48 PM >To: [EMAIL PROTECTED] >Subject: [PHP] excel 2 csv 2 mysql > > >hi guys i am trying

RE: [PHP] excel 2 csv 2 mysql

2003-03-31 Thread daniel
effective access to the server. > >Another option is dynamically adding at as an odbc datasource and querying >it. Again, this will only work on a windows server... > >It's all much easier if you can convince users to upload csv files. > > - jon > >- >jon

RE: [PHP] excel 2 csv 2 mysql

2003-03-31 Thread daniel
can load that into mysql using load data into :D, aparantly there are some bugs , gotta find them >= Original Message From daniel <[EMAIL PROTECTED]> = >ok guys are you ready , > >/www_tools/apache/catdoc/bin/xls2csv test.xls > test2.csv > >gave me this >

RE: [PHP] excel 2 csv 2 mysql

2003-03-31 Thread daniel
;"; $this->query("LOAD DATA INFILE '$filename' INTO TABLE $table FIELDS TERMINATED BY '$col_terminator' $option $cols"); if ($remove_files) unlink($filename); } its just a quicky, twiddling thumbs today i just had to find out how

RE: [PHP] getimagesize

2003-04-01 Thread daniel
wow wots this this is a first i never knew you could do that ? $imagewidth = getimagesize($_FILES['image']); = Original Message From "Sebastian" <[EMAIL PROTECTED]> = >little problem with getimagesize function. I have a form upload and want the >images resized only if greater than 1024,

RE: [PHP] getimagesize

2003-04-01 Thread daniel
T? yes it can be done :) > >http://www.w3.org/TR/REC-html32.html#rfc1867 > >cheers, >- Sebastian > >- Original Message - >From: "daniel" <[EMAIL PROTECTED]> > > >| wow wots this >| >| >| >| this is a first i never knew you could

RE: [PHP] Making it so the .php isn't needed

2003-04-02 Thread daniel
this is funny , you could have any extension u like say , i'm a synth freak , i luv the word "303" so on some of my musik pages i have pages called something.303 so AddType application/x-httpd-php .303 :D >= Original Message From "Sebastian" <[EMAIL PROTECTED]> = >Hello, > >read this: >

RE: [PHP] php 3 to 4.3

2003-04-03 Thread daniel
hey thats harsh , use $_POST['form_name'] , i am currently having to work with php3 even though i code for php4+ usually i hate 3 with a passion so limited. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php 3 to 4.3

2003-04-03 Thread daniel
if u need it to work for both versions use $HTTP_POST_VARS instead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] chill out

2003-04-03 Thread daniel
lol , hey boyz and galz lets be professional now, we cant show the windoze ppl we are such a loose bunch now can we ? heh :D >= Original Message From Kevin Waterson <[EMAIL PROTECTED]> = >This one time, at band camp, ><[EMAIL PROTECTED]> wrote: > >> We subscribe to a few email lists on va

RE: [PHP] Right Click

2003-04-05 Thread daniel
man chill out , message me off list and i can give you a jscript example , as the description says , "hypertext processor", i dont think jscript even html is OT ! >= Original Message From Leif K-Brooks <[EMAIL PROTECTED]> = >There NEEDS to be a manual page for this! PHP is SERVER-SIDE!

  1   2   3   4   5   6   7   8   9   10   >