[PHP] stripping spaces from a string

2002-12-06 Thread Jule Slootbeek
Hi, What's the best and easiest way to strip all the spaces from a string? do i use regular expressions for it? TIA, J. Jule Slootbeek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: stripping spaces from a string

2002-12-06 Thread Jule Slootbeek
perfect, exactly what i needed thanks J. On Friday, Dec 6, 2002, at 16:38 US/Eastern, J Smith wrote: Regular expressions would be overkill. Try $newString = str_replace(" ", "", $oldString); J Jule Slootbeek wrote: Hi, What's the best and easiest way to st

[PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek
anywhere where this action could be done. So i was wondering if anybody had experience with PHP under Jaguar, and could lend me a hand. TIA, Jule Slootbeek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek
t; the page threw the server into the browser... and it should > like the location in the top area. > > > > > Timothy Hitchens (HITCHO) > [EMAIL PROTECTED] > > HITCHO has Spoken! > > > > > > > -Original Message- > From: Jule Slootbeek [m

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek
> Like the other poster said, load up a page through > your > browser and PHP may tell you where it thinks php.ini should be. It'll > be > in the first block that appears on the page created by phpinfo(). > > ---John Holmes... > >> -Original Message---

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek
i didn't install from source, i installed from an OS X binary i found in the php website, i got a php.ini from someone else which i 'm suing, thanks guys! Jule On Tuesday, Oct 8, 2002, at 23:54 US/Eastern, CC Zona wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROT

Re: [PHP] Best way to put layout, code on pages?

2002-10-10 Thread Jule Slootbeek
hatever global code that goes at the bottom goes >here, as well as the layout if $uselayout is true. >?> > > I can't find any problems with this approach, what are everyone;'s > thoughts on this? > > -- > The above message is encrypted with double rot13 e

[PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
hey is there a way to get the URL header? the tags etc? i couldn't find any function in the docs, but maybe i just don't know where to look. if there's a function that pulls in an entire page that;s fine too i can work with that.. any help appreciated TIA Jule Jule Slootbeek [

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
s -> fopen() It was hidden. Jule Slootbeek wrote: hey is there a way to get the URL header? the tags etc? i couldn't find any function in the docs, but maybe i just don't know where to look. if there's a function that pulls in an entire page that;s fine too i can work with th

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
ay, Nov 1, 2002, at 17:45 US/Eastern, Jule Slootbeek wrote: i thought fopen() was only for local files, didn't even bother looking, but now i think about it..it makes perfect sence to open url's as well, thanks a lot! Jule On Friday, Nov 1, 2002, at 17:42 US/Eastern, John Nichel

Re: [PHP] getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
e); break; } } fclose($file); } On Friday, Nov 1, 2002, at 20:26 US/Eastern, Jule Slootbeek wrote: well, i got it to read a html file, but the problem is that it reads it after it loads it, so it doesn't read the tags, and i'm looking for the string in between and is

Re: [PHP] getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
quot;) >= 1) { $rline = strip_tags("$line"); //return $rline; //fclose($file); break; } } return $rline; } fclose($file); } On Friday, Nov 1, 2002, at 20:35 US/Eastern, Jule Slootbeek wrote: hmm, figured it out...all of a sudden it did work: here'

Re: [PHP] Re: getting HTML header from URL [solved]

2002-11-01 Thread Jule Slootbeek
yeah i just noticed that myself too, and unfortunatly people do code their html like that.. J On Friday, Nov 1, 2002, at 21:44 US/Eastern, David U. wrote: Jule Slootbeek wrote: oops didn't catch two little bugs Jule function getTitle($url) { $file = @fopen($url, 'r'); if(!

[PHP] sql error

2002-11-05 Thread Jule Slootbeek
his is generated by phpMyAdmin) i get this error: ERROR 1064 at line 18: You have an error in your SQL syntax near 'where varchar(255) NOT NULL default '', with varchar(255) NOT NULL default '',' at line 5 where's the error? i don't see anything wro

Re: [PHP] sql error

2002-11-05 Thread Jule Slootbeek
he name of that column to something else. Marco --- php|architect -- The Monthly Magazine For PHP Professionals Visit us on the web at http://www.phparch.com! On Tue, 5 Nov 2002, Jule Slootbeek wrote: I know this is the wrong mailinglist, but i don't want to subscribe to a second one

Re: [PHP] sql error

2002-11-05 Thread Jule Slootbeek
t's indeed the problem? Marco --- php|architect -- The Monthly Magazine For PHP Professionals Visit us on the web at http://www.phparch.com! On Tue, 5 Nov 2002, Jule Slootbeek wrote: Ah i see, but then why will phpMyAdmin let me use it? it works fine on my local db with these names, bu

Re: [PHP] sql error

2002-11-05 Thread Jule Slootbeek
rchar(255) not null ... ---John Holmes... -Original Message- From: Jule Slootbeek [mailto:jslootbeek@;clarku.edu] Sent: Tuesday, November 05, 2002 9:43 PM To: Marco Tabini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] sql error Ah i see, but then why will phpMyAdmin let me use it? it works fi

Re: [PHP] sql error

2002-11-05 Thread Jule Slootbeek
Original Message- From: Jule Slootbeek [mailto:jslootbeek@;clarku.edu] Sent: Wednesday, November 06, 2002 1:52 PM To: Marco Tabini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] sql error apparently 'where' and 'with' are keywords in Java, i've changed them and now it works

[PHP] filemtime() error

2002-11-06 Thread Jule Slootbeek
o " ".$localList." modified ".filemtime($localList)." "; } } closedir($opendir); } does anyone have any idea why it won't show a stamp for every file? TIA, Jule Jule Slootbeek [EMAIL PROTECTED]

Re: [PHP] ftp file exists

2002-11-08 Thread Jule Slootbeek
if a file exists a remote ftp site. Jule Slootbeek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL-port question

2002-11-21 Thread Jule Slootbeek
I have a problem, i know this is not the MySQL mailinglist, but i hope you guys can help me. when i type mysqladmin variables the port comes up as 0 and doesn't let people connect to my db remotely. does anyone know why this problem is, and how i can change my port? TIA Jule Jule Sloo

[PHP] User Authentication

2002-06-04 Thread Jule Slootbeek
Hey guys, What is the best way for user authentication (now i'm talking about the most secure and easiest way). Now i've been using sessions, and i was wondering if cookies were better and easier... any thoughts? thanks, Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheo

Re: [PHP] User Authentication

2002-06-04 Thread Jule Slootbeek
ccommended.. Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] return array

2002-06-06 Thread Jule Slootbeek
Hey guys and gals, if i have a function and i return an array from it function my_function() { blabla; return array ($array['name'], $array['password']); } how do i get this into an array on the page i call the function? $array = my_function() doesn't work? any ide

Re: [PHP] return array

2002-06-06 Thread Jule Slootbeek
> > try: > > list($doo, $dah) = my_function(); > thanks alot that was it list ($array['name'], $array['password']); Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.ph

[PHP] simplicity with 2 queries..

2002-06-09 Thread Jule Slootbeek
$query = "SELECT * FROM $table_quiz WHERE user_id='$user_id'"; $result = mysql_query($query); $user_info = mysql_fetch_array($result); $quiz_id = $user_info[quiz_id]; mysql_close($link_glob); return $quiz_id;

[PHP] check if a foreach loop has successfully run

2002-06-25 Thread Jule Slootbeek
Hey list, How do i check if my script has successfully run through an entire foreach() loop do i just go if (foreach ($answer as $a) { echo $a }) { return TRUE; } else { return FALSE; } thanks in advance. Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net

[PHP] print on top

2002-04-17 Thread Jule Slootbeek
uot;\n"); print ("$Array[article]\n"); print ("\n"); print ("\n"); print ("Posted by: $Array[name] on $Array[postdate]\n"); print ("\n"); print (""); -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Images don't save

2002-04-18 Thread Jule Slootbeek
s, > Manu > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php Regards, Gunther E. Biernat -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] variables

2002-04-20 Thread Jule Slootbeek
print (""); include ("$righttop/$title$righttoptitle$extention"); print (""); print (""); print (""); print (""); include ("

[PHP] $server_path

2002-04-21 Thread Jule Slootbeek
i'm using Mozilla 0.9.9 or is it from something else? Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
27;, $link_glob'); if (!$result) { echo "Your Information could not be entered into the database, Please contact the mailto:$webmaster>webmaster." . mysql_errno() . ": " . mysql_error() . "";

Re: [PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
>entered into the database!\"; >> >>Should be this: >>} else { >> echo \"Your Information has successfully been >>entered into the database!\"; >> } >> >>HTH, >>Jason Soza >> >>- Original Message -

[PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
nt: Tuesday, 4 June 2002 7:50 > To: [EMAIL PROTECTED]; mysql; php-general > Subject: Re: stupid error, please kick me (and send me a solution) > > > Your missing your closing "}" at the end of the else statement. > > > - Original Message - > From: "

[PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
Jule Slootbeek wrote: > G r e g L a w r i e wrote: > >> It would also appear you are missing a closing ) at the end of the >> '$query=...' line. You have two opening backets and only one closing. >> >> Greg >> >> -Original Message- >

[PHP] HUGE ERROR (was: [PHP] stupid error, please kick me (and send mea solution))

2002-06-03 Thread Jule Slootbeek
} } } } } echo "Please enter the required information"; echo " Name: Email

[PHP] HUGE ERROR (was: [PHP] stupid error, please kick me (and sendme a solution))

2002-06-03 Thread Jule Slootbeek
ps: it was still not working.. -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HUGE ERROR (was: [PHP] stupid error, please kick me (andsend me a solution))

2002-06-03 Thread Jule Slootbeek
l_query($query, $link_glob); > > > > OK that did fix the problem...:) I am now going to sit in a corner and be ashamed of myself thanks Philip and and everybody else... Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing

[PHP] variable question

2002-04-15 Thread Jule Slootbeek
ables. any thoughts? thanks, Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable question

2002-04-15 Thread Jule Slootbeek
just do fopen and fwrite it prints both variables. > any thoughts? Show us your code. -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php