Re: [PHP] CSS & tables

2009-05-16 Thread Bas Avezaat
on the net. Bas I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exer

[PHP] Can the PHP binaries be moved through different folders on Linux/OSX?

2008-06-14 Thread Bas
using the prefix like /home/user/temp/php, and later moving to another location, work correctly? If not, what problems can I expect? -- Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] null as function argumnent?

2004-12-08 Thread Bas Jobsen
Hi, I want to use a ?: statement. If not true de default function argument have to be used. How to do this What do i have to pass instead of null to get default print? Tnx, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Textfields dont fully populate

2003-11-22 Thread Bas
Just change your code to: $result = mysql_query("SELECT * FROM $tablename WHERE id= $id")or die("ther was an error tablename:= $tablename row id:= $id"); if ($myrow = mysql_fetch_array($result)) { echo "\n"; do { printf(" Artist Title Picture

[PHP] Re: Textfields dont fully populate

2003-11-22 Thread Bas
"Paul Ferrie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello again guys > >This week i have been on here and made a few posts regarding a small > admin site app > http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/myadmin.html > > Most of it is now working thank god, bu

Re: [PHP] Execute programs

2003-11-22 Thread Bas
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bas wrote: > > > How do i execute a program and leave it running and while it is running the > > php-script is still continued and outputs HTML when the other program is > > still

[PHP] Execute programs

2003-11-22 Thread Bas
How do i execute a program and leave it running and while it is running the php-script is still continued and outputs HTML when the other program is still running. I need that is works on windows. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] First test release of BTportal made!!!!

2003-11-09 Thread Bas
Possibillity to create articles(with using a password) Ability for every user to reply to articles Module based(PHP File Links included) And a install script. "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Whats it about? > Can you give me a list of features? > > Cheers, >

[PHP] First test release of BTportal made!!!!

2003-11-09 Thread Bas
It's avaiable on: http://members.home.nl/famde.jong/portalBT-0.0.1.zip If you have any comments, post a reply. If you find it is very easy, it is. That is why it is version 0.0.1 Okay, it is not that good, but please try it... There is even an install script in it!! -- PHP General Mailing Lis

[PHP] BTML 2.0 released!!!

2003-11-06 Thread Bas
['value'] . "" } } // echo ""; if (empty($templatefile)) { echo tpl2html($title, $images, $completetext); } else { echo tpl2html($title, $images, $completetext, $templatefile); } ?> --- simple.tpl --- <%title%> <%title%> <%text%> Images: <%images%> --- And test.btm --- Welcome to BTML page v1! Welcome to my BTML page!!! This is an experimentally version of HTML!!! Bye!!! Bye --- Hope that you like it and please tell me wat you think of it, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do i replace table names?

2003-11-03 Thread Bas
OKAY, I WANT TO REPLACE IN THE TABLENAME THE TEXT BAS_ WITH DUMMY_ SUCH LIKE THAT "CREATE TABLE BAS_DATA" BECOMES "CREATE TABLE DUMMY_DATA" I AM NOT THAT DUMB... I JUST WANT TO REPLACE 1 TABLE PREFIX BY ANOTHER!!! "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip

Re: [PHP] How do i replace table names?

2003-11-03 Thread Bas
TABLE hugo_table ( )"; And do the same for INSERT INTO... How do i do this? [/snip] Top of the morning to you Bas! I have a couple of questions for you. 1. Have you read any of the manual? 2. Are you subscribed to the MySQL list? All queries are run in the same way. If you have permiss

[PHP] How do i replace table names?

2003-11-03 Thread Bas
I want to replace something like this: $sql = "CREATE TABLE bas_table ( )"; With this: "CREATE TABLE hugo_table ( )"; And do the same for INSERT INTO... How do i do this? Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Files question

2003-10-30 Thread Bas
Now sorry... I already know to use fopen... I want a script that parses all lines from a file... Just like a loop that with every time it is executed, it echos a line from the file... (this is just a example... else i was using file_get_contents and nl2br...) "Jay Blanchard" <[EMAIL PROTECTED]> wro

[PHP] Files question

2003-10-30 Thread Bas
How can i read all files line by line? I am running windows. I know that there is then a \r\n but i don't know how to extract them... Can you help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How can i count time it taked to render the page?

2003-10-26 Thread Bas
Any help appreciated. Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Bas
A textarea. "Daniel Guerrier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When you make a file using data from what source? > --- Bas <[EMAIL PROTECTED]> wrote: > > Any help appreciated. > > > > Regards, > > > > Bas &g

[PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Bas
Any help appreciated. Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP scripts are not executed

2003-10-23 Thread Bas
name is no longer available". Check out this resource, if that does not > help, google for the error string. > > http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_20671124.html > > Bas wrote: > > > I have checked the error log and the only real error i can see is that &g

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
I have checked the error log and the only real error i can see is that C:\pub\favicon.ino does not exist... I have added this and now i need that you test again... Thanks, Bas "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sometimes the pages l

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
And, e-mail me the results(on [EMAIL PROTECTED]) Of the website... Likethe error and so "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On web, i mean from my pc and on pc i use both > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
Web address is: http://212.120.120.108:3/forumBT/ for phpBB (DUTCH!!!) If you need any translation, i will help you. "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On web, i mean from my pc and on pc i use both > "Marek Kilimajer" <

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
both)? > > From the web - do you mean you view the pages from the web or that the > pages are served from another server on the web? > > Bas wrote: > > > Internally is on my pc and externally is from the web. > > "Marek Kilimajer" <[EMAIL PROTECTED]> w

[PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-22 Thread Bas
Is it free? "John Black" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings everyone, > We have just launched a new product called codeSECURE and would like you to > check it out. > > codeSECURE is a PHP obfuscator. > > Basically codeSecure is a small collection of scripts to "

Re: [PHP] PHP scripts are not executed

2003-10-22 Thread Bas
Internally is on my pc and externally is from the web. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, first you should explain the meanings of "internaly" and "externaly" > in this case. > > Bas wrote: >

[PHP] PHP scripts are not executed

2003-10-22 Thread Bas
I am running Windows XP, Apache/2.0.44 and php 4.3.3. I seem that internally all my PHP scripts work. But, externally, phpBB 2.0.6 does not work... Sorry for the double message... And my e-mail has changed... don't spam!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Login system

2003-10-17 Thread Bas
And also... the interjinn website wont open... "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2003-10-17 at 13:39, Bas wrote: > > Do you mean non-commercial? i plan to use it at home to test some websites > > and showing them

Re: [PHP] Login system

2003-10-17 Thread Bas
ot;Those who say it cannot be done > should not interfere with the person doing it." > > wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU > > > - Original Message - > From: "Bas" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Fri

Re: [PHP] Login system

2003-10-17 Thread Bas
Do you mean non-commercial? i plan to use it at home to test some websites and showing them to my friends "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2003-10-17 at 13:31, Bas wrote: > > > > I want to try that InterJinn o

Re: [PHP] Login system

2003-10-17 Thread Bas
ng my post > would have sufficed, but you appear to be making a statement :/ > > Cheers, > Rob. > > On Fri, 2003-10-17 at 13:04, Bas wrote: > > Yes sorry, but i don't use such things like your interjin... > > "Robert Cummings" <[EMAIL PROTECTED]>

Re: [PHP] Login system

2003-10-17 Thread Bas
Okay, here is what i want: * Login system * No mysql * Sessions * Easy adjustable register page(copy generic files to dir of user) "Eugene Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, Oct 17, 2003 at 07:04:27PM +0200, Bas wrote: > : &qu

Re: [PHP] Login system

2003-10-17 Thread Bas
Okay, what are the very very basic functions to make a session? "Eugene Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, Oct 17, 2003 at 07:04:27PM +0200, Bas wrote: > : "Robert Cummings" <[EMAIL PROTECTED]> wrote: > :

Re: [PHP] Login system

2003-10-17 Thread Bas
Yes sorry, but i don't use such things like your interjin... "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2003-10-17 at 12:57, Bas wrote: > > I want a login system with sessions and without mysql. > > > > I have

[PHP] Login system

2003-10-17 Thread Bas
I want a login system with sessions and without mysql. I have tried to make one but that one is without sessions(i don't know anything about sessions) and with mysql... Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Filemanager v1.0

2003-10-17 Thread Bas
#x27;) { $newcontent = $_POST['file']; echo "$filename"; $file = fopen("../".$filename, "w+"); $result = fwrite($file, $newcontent); echo "Resultaat".$result; echo "Open"; fclose($file); } echo "Copyright Bas&quo

[PHP] How can i print out the files in a directory?

2003-10-17 Thread Bas
How can i print out all of the files in a directory? I want some output as this: index.php login.php image1.gif image2.jpg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-17 Thread Bas
That tags? It should not be used anyway... "Comex" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > <[EMAIL PROTECTED]> > Comex: > > <[EMAIL PROTECTED]> > > Bas: > >> Yes, thanx. I always wanted to make a version where you can us

[PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-15 Thread Bas
Yes, thanx. I always wanted to make a version where you can use multiple tags of one type. And, what do you find of it? Please rate it 1 to 10 "Comex" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > function parseTags($file) { > /* readfile... here */ > $filedata = file_get_conte

[PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-13 Thread Bas
for spelling errors) "Bas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It is freely avialable!!! > > Here is the sourcecode: > > 2 files are used to parse: > > read-tags.php > --- > // Tag Parser v1.11 > // v1.0 First release(not wo

[PHP] Yes!!! BTML v1.0 is here!!!

2003-10-13 Thread Bas
of HTML!!! Bye!!! noimage.gif --- Run it with: btml.php?name=filename.btm Example: btml.php?name=test.btm For improvements e-mail me(also if you are planning on inprovements) or reply if you have a inprovement ready. Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error in BTML parser 2

2003-10-13 Thread Bas
Yes! It works!!! This is also an good beginner-HTML. If you have improvements then i like it from you to post them in an reply or email me. Regards, Bas "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Bas ([EMAIL PROTECTED]): >

[PHP] Error in BTML parser 2

2003-10-13 Thread Bas
This error is not so stupid as a deleted closing ". Okay, for all of you who missed my code here is it again: read-tags.php --- \s*([^<]*)\s*!is"; preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tags[$tagname] =

Re: [PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Bas
Now I get the output: (in html, if you get a mail, you get the real output.) Welcome! Welcome! Notice: Undefined index: text in C:\pub\include\btml.php on line 13 "Pavel Jartsev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bas wrote: > &g

[PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Bas
I am trying to make an BTML-parser. (BTML-Some Markup Language invented by Me) I have 3 files: read-tags.php: --- \s*([^<]*)\s*!is"; preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tags[$tagname] = $matches[2][$

Re: [PHP] I can't make 'read_tag.php' file

2003-10-13 Thread Bas
This works!!! I am a newbie to PHP and i8 knop really nothing about Regular Expressions!!! Thanks!!! "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Bas ([EMAIL PROTECTED]): > > > > --- > > And with this, it needs the

[PHP] Re: I can't make 'read_tag.php' file

2003-10-13 Thread Bas
placeFunc(match) > { > // match[0] --- the whole tag from to > // match[1] --- the contents of the tag > //I am my self !!! in the example > > > return WHATEVER_YOU_WANT_TO_REPLACE_THE_TAG; > } > > I didnt make sure this script will w

[PHP] I can't make 'read_tag.php' file

2003-10-12 Thread Bas
I have found that this script doesn't work: read_tag.php --- "; $tagdata = stristr($filedata, $tagrealname); $posofend = strpos($tagdata, ""); $length = strlen($tagdata); $lengthoftag = strlen($tagrealname); $lengthofend = strlen(""); $lengthofstr = $length - $posofend - $lengthoftag; $returndat

Re: [PHP] Help inserting compressed data into a mysql database

2003-06-16 Thread Bas Jobsen
$data = @gzinflate(stripslahes($data)); Op maandag 16 juni 2003 18:03, schreef u: > Hi, > > I am trying to insert compressed data into a database. > > Inserting it in seems to work file: > > $data = addslashes(gzdeflate($data, 9)); > > > For the most part it works on reteiving the data but somet

Re: [PHP] error reporting linenumber and filename[Scanned]

2003-06-16 Thread Bas Jobsen
testtable.php: -- open(); $TABLE->close(); $TABLE->open(); $TABLE->open(); ?> -- Op maandag 16 juni 2003 15:10, schreef u: > Bas, > > The __LINE__ constant will return the line number of the script from which > the call is made. This should be enough to isolate any error.

[PHP] error reporting linenumber and filename

2003-06-16 Thread Bas Jobsen
Hi, Running the code below, shows an errror in line 2 as expected. How do i get the linenumber of the function call? 3 here. Best regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] categorise list

2003-06-09 Thread Bas Jobsen
$letter=''; $while($row=mysql_fetch_array($result)) { if($letter!=$row[name][0]) { echo $row[name][0].''; $letter=$row[name][0]; } echo $row[name].''; } Op maandag 09 juni 2003 12:41, schreef u: > I am dispalying data from mysql database using the codes below: > > $while($row=mysql_fetch_array($

Re: [PHP] convert seconds to hours, minutes, seconds

2003-06-03 Thread Bas Jobsen
function secondstohours($seconds) { /* [EMAIL PROTECTED] */ $sec=$seconds%3600; return (($seconds-$sec)/3600).':'.($sec/60).':'.($sec%60); } echo secondstohours(7500); Op dinsdag 03 juni 2003 14:38, schreef u: > Hello everybody, > I have a value 178607, which is stored as

[PHP] Garbage

2003-03-06 Thread Bas Verhoeven
getting the same. Someone who had the same problems and/or can help me? Thanks in advance. Bas Verhoeven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Correct number format (curency)

2003-02-20 Thread Bas Jobsen
> Example > > 1.000,00 > 1000.00 > 1,000.00 > > I would like to convert those to a single format > 1000.00 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] recursion?????

2003-02-14 Thread Bas Jobsen
not tested > Basically, have the form action call itself hince the recursion. > Any suggestion/examples? method="POST"> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] search and callback with preg

2002-11-05 Thread Bas Kamer
Hi I'm building an parser for my own project called vibrant. i need a file to be parsed, but I can't seem to get the right expression please please help; $src = " 1 2 3 "; preg_match_all( "/(<(vibrant+)[^>]*>)(.*)(<\/vibrant>)/i", $src, $matches ); print_r($matches); what i nee

Re: [PHP] array_search() problem

2002-09-12 Thread Bas Jobsen
> What I was looking for was finding out what was the index of thet > value, lets say I have a array with some values like (23, 56, 45, 47) > and i don't know where the walue I'm looking for is indexed in the array > and I want to find out what the indexnumber is, how would that be > possable $v

Re: [PHP] array_search() problem

2002-09-12 Thread Bas Jobsen
> Hi I'm runing a PHP Version 4.0.4pl1 on Solaris 8 X86 on apache, and I'm > trying to search an array >From the manual: array_search (PHP 4 >= 4.0.5) send earlier to this list: Re: [PHP] Array - Match From: Bas Jobsen <[EMAIL PROTECTED]> To: "N. Pa

Re: [PHP] split() - not working in this case

2002-09-08 Thread Bas Jobsen
, efgh <[EMAIL PROTECTED]>"; $tos=split_addresses($to); echo $tos[1]; ?> echos efgh <[EMAIL PROTECTED]> ?? Whats the problem? Maybe you output to a browser and don't see <[EMAIL PROTECTED]> cause its between <> Op zondag 08 september 2002 10:17, schreef N. Pari Purna Chand: > I have a string

Re: [PHP] Array - Match

2002-09-07 Thread Bas Jobsen
= 4.0.5 && < 4.2.0 if(is_null(($b=array_search($sub,$subs echo 'not found!'; else echo 'found! In $sub['.$b.']'; //or for PHP 4 >= 4.2.0 if(($b=array_search($sub,$subs))) echo 'found! In $sub['.$b.']'; else echo 'not found!'; ?> -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] String operation

2002-09-04 Thread Bas Jobsen
$string3 = str_replace($string1,'',$string2); ??? Op woensdag 04 september 2002 17:04, schreef Richard Fox: > Hi > > Given > > string1 = /home/web/ > string2 = /home/web/www/index.php > > How can I elegantly do an exclusive or of string1 with string2, that is, I > want to end up with > > strin

Re: [PHP] Refering to an object from within an array variable in another class

2002-09-03 Thread Bas Jobsen
> Any insight appreciated. In a best case if someone can add in the required > '&'s to the following code that would be great. ' ; error_reporting ( E_ALL ) ; class Foo { var $bars = array() ; function AddBar($id,$text)

Re: [PHP] greeting based on time

2002-09-03 Thread Bas Jobsen
Op dinsdag 03 september 2002 13:01, schreef Javier Montserat: > really simple one - > > does someone have a bit of code that will variously display 'good morning', > 'good afternoon', 'good evening' based on the current time? > > good morning from london, > > Javier > > > >

Re: [PHP] wordwrap function (that skips html tags)

2002-09-03 Thread Bas Jobsen
Hello, What's your php version? Take at look at: http://www.php.net/manual/en/function.wordwrap.php and http://www.php.net/manual/en/function.strip-tags.php b.e. $str='http://www2.snm-hgkz.ch/~rieger/notepool/addnote.php'; echo wordwrap(strip_tags($str),8,'',1); i you can't use wordwrap(), try:

Re: [PHP] limit in a loop function to prevent server load

2002-09-03 Thread Bas Jobsen
Op dinsdag 03 september 2002 10:46, schreef u: > hi there i was wondering if there was a way to limit the ammount of items > in a loop to execute sleep then execute the rest of the items to prevent > server load ? for($i=0;...) { if($i>0&&$i%100==0)sleep(10); } -- PHP General Mailing List

Re: [PHP] How do I call a CGI script from PHP?

2002-08-26 Thread Bas Jobsen
> PHP page, nothing fancy. .In SSI, I just use the "#exec cgi=" line--is $test = `path_to_your_cgi 2>&1`; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with matchng strings

2002-08-25 Thread Bas Jobsen
$lista=array(1,2,3,4,5,6,7,8,9); $listb=array(4,6,8); $listc=array_intersect($lista,$listb); $listd=array_diff($lista,$listb); Op maandag 26 augustus 2002 01:48, schreef Rasmus Lerdorf: > array_intersect() will give you listC directly. Just feed it list A and > B. Then you can take a copy of l

Re: [PHP] Count number of rows in table.

2002-08-25 Thread Bas Jobsen
> $sql = "select count(*) from table_name WHERE ."; > $result = mysql_query($sql) or die(mysql_error); > $row = mysql_fetch_row($result); > $rowCount=$row[0]; or $sql = "select count(*) from table_name WHERE ."; $result = mysql_query($sql) or die(mysql_error); $rowCount=mysql_result($resu

Re: [PHP] problem with using link variables

2002-08-25 Thread Bas Jobsen
> If the variable provnum contains text such as: hello & there urlencode($provnum); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Eregi_replace

2002-08-22 Thread Bas Jobsen
eregi_replace(']+>','',$string); Op donderdag 22 augustus 2002 14:42, schreef Roman Duriancik: > How to create pattern for function eregi_replace to > replace in html document every html tag for empty string. > > Thanks > > > roman -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Exiting from an include or required file

2002-08-21 Thread Bas Jobsen
Do: FILE A: Op woensdag 21 augustus 2002 16:39, schreef Henry: > Hi All, > > I would like to exit from an include file and continue in the calling > script! > > As an example > > FILE A: > > if (empty($_POST['search_criteria')) > { > echo "You must provide search criteria"; > > // exit

Re: [PHP] array_splice()

2002-08-21 Thread Bas Jobsen
$test=array('a'=>1,'b'=>2,'c'=>3); foreach ($test as $key=>$value) { if ($value==2) unset($test[$key]); } or $test=array('a'=>1,'b'=>2,'c'=>3); $i=0; foreach ($test as $key=>$value) { if ($value==2) array_splice($test,$i,1); $i++; } Op woensdag 21 augustus 2002 12:17, schr

Re: [PHP]

2002-08-20 Thread Bas Jobsen
echo `PATH_TO_PERLSCRIPT.CGI 2>&1`; Op dinsdag 20 augustus 2002 09:47, schreef Peter Janett: > I'm converting over some .shtml files that call an external Perl script > with the following format: > > > I'm not sure what php function to use, as I'm returning the results of a > Perl script, not re

Re: [PHP] preg_match help?

2002-08-17 Thread Bas Jobsen
preg_match("/.*]+>(.*).*/", $contents,$story); echo $story[1]; preg_match always return a array. The first element ($array[0])contains your complete regexp. The next ($array[1])one the first match between () etc. Don't use ! but / Op zondag 18 augustus 2002 01:27, schreef Jason Soza: > I se

Re: [PHP] quick ereg() question

2002-08-17 Thread Bas Jobsen
if (ereg("((\.)(php|inc))$",$o0o) && !ereg("\/\.\.", $o0o)){ Op zaterdag 17 augustus 2002 23:53, schreef eriol: > I checked the manual and it's comments as well as google, but didn't find > the simple answer i'm wanting.. > > I have the following line in a "show php source code" page: > > > i

Re: [PHP] Include/require and the HTML Code

2002-08-14 Thread Bas Jobsen
> Can anybody tell me why I get a "Parse error: parse error, > unexpected '}' in /usr/local/apache/htdocs/logbook/Functions.inc on line begin and end your include files with bllaalla -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_num_rows($Result)

2002-08-14 Thread Bas Jobsen
In your database design you need the following every username/pass comb is unique. so a query like ... WHERE username='$testvalue' AND password='$testvalue2' Have to give you one row for a good user/passcombination ALWAYS. And 0 rows for a wrong combination. If NOT your design doesn;t fit you

Re: [PHP] SESSION Security

2002-08-14 Thread Bas Jobsen
Op donderdag 15 augustus 2002 01:03, schreef u: > So, if somebody gets an ftp account somehow, he will be able to get session > vars via a system() command? You holds him in its own dir by the chroot setting of you ftpserver. > via a system(); you mean if they upload a php file? prevent that wit

Re: [PHP] file_get_contents ( string filename [, int use_include_path])

2002-08-14 Thread Bas Jobsen
> string filename The name of the file. b.e test.html or $_SERVER['DOCUMENT_ROOT'].'test.html' > int use_include_path Optional 1 true or 0 (or nothing) false the file above is in my default include path. Manual: you can use the optional second parameter and set it to "1", if you want to search f

Re: [PHP] [Class] "global" again, not working?

2002-08-14 Thread Bas Jobsen
Hi, do -- echo $data[0]*$data[1]); return ($data[0]*$data[1]); -- i think its empty. In the first place, i thought it was maybe impossible to call a class-functions in your constructor. (Cause the class function don't exists at the moment you call your constructor). But the code below showed i

Re: [PHP] problem with $_POST

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 20:57, schreef Adam Williams: > Does anyone know why it is not working with $_POST but works fine with > $_GET? I don't know, but maybe you has to put "" around POST, method="POST". It works then with GET, cause that's default. Maybe something else is wrong, so met

Re: [PHP] Array question

2002-08-14 Thread Bas Jobsen
> How can I echo the name of the of the second array (subArray)? The name for value array('1','2'.'3'), 'c'=>array('6','5'.'4'), 'd'=>array('8','9'.'10'), ); $r=next($test); echo $r[0].' or :'."\n"; foreach

Re: [PHP] regex match problem

2002-08-14 Thread Bas Jobsen
To Match: Tue, Jul 29, 2003 > $pregmatchstring="/([\s])*(Renewal\DDate|Registered\sthrough|Expires|Record >\sExp ires|Domain\sExpires|Expiry\sDate)([\D\s]*)(.*)/i"; You can change the last part of $pregmatchstring in: Expiry\sDate)([\D\s]*|\w{3},\s\w{3}\s\d{2},\s\d{4})(.*)/i"; You can f

Re: [PHP] error reporting

2002-08-14 Thread Bas Jobsen
start your file with : error_reporting(E_ALL); Op woensdag 14 augustus 2002 20:09, schreef Georgie Casey: > rite, > > without access to the php.ini file, how can i get php to print all errors > on my web server. it runs linux > -- > Regards, > Georgie Casey > [EMAIL PROTECTED] > > ***

Re: [PHP] how many files are in a directory

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 20:00, schreef Harry.de: > does anybody now a way in php to read out, > how many files are in a directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Class] Behaviour global variables

2002-08-14 Thread Bas Jobsen
$TEST= new TEST; $a=3; $b=4; $TEST->Show(); works, fine better to use $GLOBALS['a'] instead of global $a Op woensdag 14 augustus 2002 15:27, schreef Tim Stoop: > Hi there, > > I'm forgetting something, but I can't seem to get to it... Consider the > following Class. > > class Test > { >

Re: [PHP] fopen and sort by date modified

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 13:04, schreef electroteque: > hi there i was wondering how i could fopen a directory and then sort the > files by date modified is there a way ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no HTML in a form textarea field

2002-08-13 Thread Bas Jobsen
http://www.php.net/manual/en/function.strip-tags.php Op woensdag 14 augustus 2002 02:24, schreef Roger Thomas: > i presented my visitor to fill up some description about themselves via > HTML's textarea FORM element. > > how do i block them from entering unwanted HTML tags into the textarea > fiel

Re: [PHP] Read file dates for most recent

2002-08-13 Thread Bas Jobsen
Op dinsdag 13 augustus 2002 23:25, schreef Mike Davis: > I need to read a directory full of PDF files, and get the file date of the > most recent. > Can someone get me started? $latime) { $lasttime=filemtime($file); $lastfile=$file; } } } echo $lastfile.'

Re: [PHP] newbie array question

2002-08-13 Thread Bas Jobsen
Op dinsdag 13 augustus 2002 20:50, schreef Alexander Ross: > If I have a string variable that is already of the form > ('item','item2','item3') [including the parens and quotes in the string], > is there an easy way to change that variable into an array?? > Array($var) doesn't work. Thanks --

Re: [PHP] Template and Replacement

2002-08-13 Thread Bas Jobsen
http://www.php.net/manual/en/function.str-replace.php In PHP 4.0.5 and later, every parameter to str_replace() can be an array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mkdate error?

2002-08-11 Thread Bas Jobsen
YOU use $parsed_date[2] in stead of $parsed_end_date[2] Op maandag 12 augustus 2002 00:01, schreef jc: > The following bit of code completely baffles me as to why it doesn't work. > I am doing a very simple validation where I check to see if the "end date" > field of an inputted record is an olde

[PHP] why true?

2002-08-11 Thread Bas Jobsen
echo ('test'==0); gives 1 why? Thanks, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with echo

2002-08-11 Thread Bas Jobsen
Op zondag 11 augustus 2002 16:42, schreef Kristoffer Strom: > Got a problem when echo:ing a variable containing alot of text. > When echoing it backslashes ("\") every apostrophe ("'") and quote ("). > This I don't like. > And I can't use HTMLSPECIALCHARS or HTMLENTITIES since the text has alot of

Re: [PHP] Problem with $PHP_SELF on PWS

2002-08-11 Thread Bas Jobsen
> http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good Damn

2002-08-11 Thread Bas Jobsen
> if ($Result) { if(mysql_num_rows($Result)>0) Op zondag 11 augustus 2002 16:32, schreef Sascha Braun: > $Query = "SELECT * FROM basket_db WHERE session_id = '$PHPSESSID'"; > $Result = mysql_query($Query, $connect); > if ($Result) { > while ($arrResult = mysql_fetch_array($Result, MYSQL_ASSOC

Re: [PHP] passing an array in a link

2002-08-11 Thread Bas Jobsen
print "link" ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Asking for help...

2002-08-08 Thread Bas Jobsen
Op donderdag 08 augustus 2002 23:22, schreef Ashley M. Kirchner: > DELETES another field and resubmits. At this point, that variable > was already registered, and deleting the value from the form has no > effect. The old value is still there and gets submitted. I need > to check

Re: [PHP] Creating variables...

2002-08-02 Thread Bas Jobsen
> That same script also gets a value ($step) from another one. Now I > need to figure out which $var_list# to use based on this $step value. Any > suggestion on how to do this? ${'var_list'.$step} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] shorter way to write include function?

2002-07-31 Thread Bas Jobsen
Hello, i have /include/dotest.php: and test.php: Us there a shorter way to write out that. I mean something like include::dotest; Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >