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] 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

[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

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] 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] sql error

2002-11-05 Thread Jule Slootbeek
did I say Java? oops, i meant SQLlearning Java in my comp sci class..(= forgive me. Jule On Tuesday, Nov 5, 2002, at 21:54 US/Eastern, Martin Towell wrote: "where" is a java keyword ? have you got an example ? It's been _ages_ since I've done any code in java :( -

Re: [PHP] sql error

2002-11-05 Thread Jule Slootbeek
possible, but wouldn't phpMyAdmin export the name with the tick marks?? CREATE TABLE foo (`where` varchar(255) NOT NULL); Jule On Tuesday, Nov 5, 2002, at 21:51 US/Eastern, John W. Holmes wrote: PHPMyAdmin may put tick marks around the name, which will get rid of the error. `where` va

Re: [PHP] sql error

2002-11-05 Thread Jule Slootbeek
apparently 'where' and 'with' are keywords in Java, i've changed them and now it works fine. thanks! Jule On Tuesday, Nov 5, 2002, at 21:53 US/Eastern, Marco Tabini wrote: I'm not entirely sure... different configurations perhaps? Have you verified that tha

Re: [PHP] sql error

2002-11-05 Thread Jule Slootbeek
Ah i see, but then why will phpMyAdmin let me use it? it works fine on my local db with these names, but on my remote server it refuses to create the table. Jule On Tuesday, Nov 5, 2002, at 21:47 US/Eastern, Marco Tabini wrote: "where" is a reserved keyword in SQL--try changing t

[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] 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(!

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

2002-11-01 Thread Jule Slootbeek
oops didn't catch two little bugs Jule function getTitle($url) { $file = @fopen($url, 'r'); if(!$file) { $rline = "Error, contact webmaster"; } else { while (!feof ($file)) { $line = fgets($file); if (substr_count(strtoupper("$line"), "&

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

2002-11-01 Thread Jule Slootbeek
hmm, figured it out...all of a sudden it did work: here's the code, it loads a URL and returns the title... dunno what it would be used for, but it aught we some more about php.. i'll probbly implement it on a link page ir something Jule function getTitle($url) { $file = @fopen($url,

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
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 there a way using fopen() or something similar to read an html/php file before it's loaded? Jule On Frid

Re: [PHP] getting HTML header from URL

2002-11-01 Thread Jule Slootbeek
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 wrote: Docs -> Function Reference -> Filesystem Function

[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] Best way to put layout, code on pages?

2002-10-10 Thread Jule Slootbeek
t;); blablablab footer(); i hope this is about what you mean Jule On Thursday, Oct 10, 2002, at 23:00 US/Eastern, Leif K-Brooks wrote: > I've been using php for a while now, and I've made plenty of web sites > in that time. But there's been a nagging problem: the

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] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek
well, there is no such file, i searched all over my drive, and there is no php-ini.* php_ini.* i guess i could try getting a php.ini file from somewhere and putting it in the /usr/local/lib dir but i wouldn't know where to get a 'standard' php.ini file Jule On Tuesday, Oct 8,

Re: [PHP] register_global variables on Mac OS X

2002-10-08 Thread Jule Slootbeek
Yeah that's the path to where php.ini should be (/usr/local/lib, in my case, but the Jaguar version of PHP doesn't use a php.ini file, so there's nothing there. Jule On Tuesday, Oct 8, 2002, at 22:34 US/Eastern, Timothy J Hitchens wrote: > Make a page with then display &g

[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

[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] simplicity with 2 queries..

2002-06-09 Thread Jule Slootbeek
Hey guys and gals, I have the following function which accesses the following tables, now i want to know if there is a way to get the quiz_id from table quiz without runnning both these queries... thanks, Jule --tables-- mysql> describe u

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] 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] User Authentication

2002-06-04 Thread Jule Slootbeek
John Holmes wrote: > Sessions use cookies as it is...so what do you really want to do...what > do you want to protect? > > ---John Holmes... > > Oh ok, that explains it then... Well thanks for the info anyway. I was basically just wondering which method was re

[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] 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] 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

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

2002-06-03 Thread Jule Slootbeek
ok, i think i fixed up everything everybody told me (although some answers did contradict) and here is the entire script... Jule --script (globals.inc.php)-- --script (globals.inc.php)-- --script (register_user.php)-- Your passwords do not match, please try again"; }

[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] 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: "

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] 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] Time release type question

2002-05-28 Thread Jule
if (mktime($current) >= mktime($assignment[$n][date]) { echo "$assignment[$n][assignment]\n"; } } that should do it. sorry for the many posts, Jule On Wednesday 29 May 2002 00:45, Jule wrote: > actually that should be > > for ($n = 1; $n <= $n

Re: [PHP] Time release type question

2002-05-28 Thread Jule
actually that should be for ($n = 1; $n <= $number_of_assignments; $n++) { if (mktime($current) >= mktime($assignment[$n]) { echo "assignment[$n]\n"; } } Jule On Wednesday 29 May 2002 00:31, Jule wrote: > I think that is right Jay, > y

Re: [PHP] Login determines content on page

2002-05-28 Thread Jule
paper before actually starting coding.. see www.php.net and www.mysql.com for all the docs you need. They really helped me along, so did the this list. Jule On Wednesday 29 May 2002 00:24, Dr. Indera wrote: > Hello, > > I'd to know how difficult it is to achieve the following: &g

Re: [PHP] Time release type question

2002-05-28 Thread Jule
stem clock forward Jule On Wednesday 29 May 2002 00:14, you wrote: > On Wednesday 29 May 2002 11:52, Dr. Indera wrote: > > I am in the planning stage of building an online course room. Each week I > > need to upload pages for that weeks lesson and assignments. What I want > > t

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
see this page: http://www.php.net/manual/en/language.types.integer.php Jule On Monday 27 May 2002 22:52, Jule wrote: > ps: sorry for all the typos... > > Jule > > On Monday 27 May 2002 22:51, Jule wrote: > > Dunno if it's a bug, but it's 2147483648 to max for

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
ps: sorry for all the typos... Jule On Monday 27 May 2002 22:51, Jule wrote: > Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't > bigint support higher numbers than that? > i'm not sure but i think that's why your number gor cut down. >

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't bigint support higher numbers than that? i'm not sure but i think that's why your number gor cut down. Jule On Monday 27 May 2002 22:36, zhaoxd wrote: > Hello all: > >

[PHP] Re: job payment.

2002-05-19 Thread Jule
27;m set on job-instructions for the rest of my life. thanks a lot i really appreciate it. Jule On Sunday 19 May 2002 20:46, Doug Riddle wrote: > --- Jule <[EMAIL PROTECTED]> wrote: > > Hey guys, > > I got an offer to do some php/mysql design for a local company, > > basi

[PHP] job payment.

2002-05-19 Thread Jule
ble amount, for the completion of this project, or per hour? Jule -- |\/\__/\/| | Jule Slootbeek | | [EMAIL PROTECTED]| | http://blindtheo

[PHP] random order by id

2002-05-18 Thread Jule
hosen again. and that after it has printed all the records it stops any ideas? Jule -- |\/\__/\/| | Jule Slootbeek | | [EMAIL PROTECTED]| | http://blindtheory.cjb.net | | __ | |/\/ \/\| -

Re: [PHP] Feelin' dumb...

2002-05-17 Thread Jule
would that work? isn't $i++; abbr. for $i = $i + 1; so now the $i + 20; doens't declare anything. just like $i += $b; is abbr. $i = $i + $b; Jule. On Friday 17 May 2002 23:14, you wrote: > Hmm... Wouldn¹t you just do this?: > > for ($i=1; $i<=$num_pages; $i+20) { &

Re: [PHP] Feelin' dumb...

2002-05-17 Thread Jule
try, for ($i=1; $i<=$num_pages; $i = $i + 20) { } or try, $i = 1; while ($i<=$num_pages) { //text here $i = $i + 20; } I got those little problems too all the time.. and the boards/lists always help. Jule On Friday 17 May 2002 23:19, you wrote: > Okay, I'm apo

[PHP] Alter table and add cell at a time.

2002-05-17 Thread Jule
r4 | ++-+-+-+-+ | 1 | answer1 | answer2 | answer3 | answer4 | ++-+-+-+-+ thanks, Jule On Friday 17 May 2002 19:17, you wrote: > Hello, > > Try using "NOT NULL". As weird as MySQL can be, don't think it is that > NUTty. =) > > Harrison

[PHP] $answers[answer$n]

2002-05-17 Thread Jule
around it? following is the for() loop in which this story takes place. thanks Jule --SCRIPT-- for ($n = 1; $n <= $quiz[number_answers]; $n++) { $table = "$quiz[code]_answers"; $value = "$answers[answer$n]";

[PHP] method=post problem

2002-05-15 Thread Jule
John Doe, is now only Joe. how do i fix this? thanks Jule -- |\/\__/\/| | Jule Slootbeek | | [EMAIL PROTECTED]| | http://blindtheory.cjb.net | | __ | |/\/ \/\| -- PHP General Mailing List

Re: [PHP] random order

2002-05-12 Thread Jule
answer4 answer3 answer1 answer2 any ideas? thanks, Jule On Sunday 12 May 2002 17:30, you wrote: > Add on a LIMIT to restrict it to return a certain number of rows. > > If you had a table of say, 100 rows, and you wanted four random ones out > of the 100, then yo

[PHP] random order

2002-05-12 Thread Jule
how do i go about that?? any ideas apreciated. thanks Jule -- |\/\__/\/| | Jule Slootbeek | | [EMAIL PROTECTED]| | http://blindtheory.cjb.net | | __ | |/\/ \/\| -- PHP General Mailing List

[PHP] global variables

2002-05-04 Thread Jule
imple command? i could use cookies, but i prefer a simpler way. 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

[PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Jule
ves $start the value of 8. but it gives me this error: Warning: Failed opening 'news/index.php?start=8' for inclusion (include_path='') in /home/blindtheory/web/newweb/index.php on line 31 so how can i solve this and get the articles to show in groups of 8? thanks in adva

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jule
Alright i'll take care of that, thanks a lot! Jule On Wednesday 01 May 2002 00:26, you wrote: > On Wednesday 01 May 2002 11:48, Jule wrote: > > but not the second one: > > > > if (isset($Guestbook[mailinglist])) { > > You should be using: >

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jule
l_close ($Link);     and yes, i am sure the checkbox is checked. Jule     On Tuesday 30 April 2002 23:43, you wrote: > I don't know, every time i submit the form w/ the checkbox checked. it > gives me the echo string which comes when the if is not executed.

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jule
ny php or mysql errors. Jule On Tuesday 30 April 2002 23:35, you wrote: > On Wednesday 01 May 2002 07:34, Jule wrote: > > Hey, > > This time it's not about missing quotes or parenthasies i hope. > > I'm trying to make a form which sends name, email, website, favsong and

[PHP] sending data to two tables.

2002-04-30 Thread Jule
;t seem to work. any pointers? Jule --SCRIPT-- Your entry will be addedClick here to go back."; } else { echo "There was an error in during the posting, please contact mailto:[EMAIL PROTECTED]\";>the webmaster

Re: [PHP] parse error

2002-04-30 Thread Jule
Thanks for that, yeah i should be more carefull before going to the list.. i'll watch out for it next time. Jule On Tuesday 30 April 2002 13:54, Miguel Cruz wrote: > You're missing a closing quote on the assignment for $Query2. > > Come on people, keep your eyes open.

[PHP] parse error

2002-04-30 Thread Jule
Hey guys, i'm writing this guestbook script for my site, and i'm getting a random parse error where i think everything is normal, it gives it on line 26 which is echo "Your entry will be posted!"; my script follows Jule --SCRIPT-- mailto:[EMAIL PROTECTED]\";>me

[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] variables

2002-04-20 Thread Jule Slootbeek
, how do i make it that it opens the theband page in stead of the default, and when i go to plain index.php the defaults come back? any help apreciated thanks Jule ---SCRIPT--- "); print (""); print (""); include (

Re: [PHP] Images don't save

2002-04-18 Thread Jule Slootbeek
I'm not sure of it'll work, never tried it, but you might be able to show the pics using a Java applet..that way one cannot copy them. Jule. On Thursday 18 April 2002 14:17, Gunther E. Biernat typed on his or her keyboard, and sent me the following: You can't. Period. Simpl

[PHP] print on top

2002-04-17 Thread Jule Slootbeek
Hey guys and gals, I'm writing this script for my new webpage, and i'm using MySQL to read and add news articles to a page, but everytime i add a new article it puts it under the older one, how can i get it on top? thanks Jule $Link = mysql_connect ($Host, $User, $Password); $Query

Re: [PHP] variable question

2002-04-15 Thread Jule Slootbeek
Here's my code, teh $welcomemssg is one of the two variable store in index.php the other one is $name Jule On Monday 15 April 2002 13:49, you typed on your keyboard, and you sent me the following: On Tuesday 16 April 2002 00:41,

[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