-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
it means that it could change any time you want it to...... for instance if you had a loop like this [code=php:0] for($i=0; $i<3; $i++) { $b='i'; echo $$b; }[/code] it would print 012 http://en.wikipedia.org/wiki/Dynamic_programming
-
http://www.phpfreaks.com/forums/index.php/topic,91581.msg366964.html#msg366964
-
yes, it would help if you described what it's NOT doing and what it should be doing. give any errors
-
http://www.somacon.com/p338.php
-
University Assignment due tomorrow, new to PHP, NEED HELP BAD!
Zane replied to uk_student's topic in PHP Coding Help
Well just to make it clear, I wasn't poking at your 'lack of expertise' or anything. I was just baffled about the school assigning something to you that you don't have experience with. I'll never poke fun at someone just because they don't know PHP or else I wouldn't be here helping people. but good luck on your assignment and you know if you run into problems you come here. Just don't give such titles as HELP, URGENT, "this post is more important than whatever else you're about to read" -
University Assignment due tomorrow, new to PHP, NEED HELP BAD!
Zane replied to uk_student's topic in PHP Coding Help
things just don't add up you're an Internet Technology major..your in a class of some sort it's nearing the end of the semester, unless it's a different schedule in UK if it is, I'm sorry for the assumption never used PHP ever and the professor assigns a PHP project to you, knowing you haven't a clue about it? ---------are you doing someone's homework or something you should ask the teacher if he/she wants you to disect a hydrogen atom too, while doing quantum physics...blindfolded -
access denied when trying to view web pages.
Zane replied to DeathfireD's topic in Apache HTTP Server
I don't know if it's there for a reason but if it isn't --------- look under this line [quote]DocumentRoot "C:/Dans"[/quote] .........you'll see this [quote] <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all [b]Satisfy[/b] all </Directory> [/quote] but perhaps Satisfy is keeping you from getting in change the word "Satisfy" to "Allow from" and then secondly....your httpd.conf file is called http[b]s[/b].conf never worked with one of those before don't even know if they exist -
thanks a lot man for that pattern... it helped a little. i don't know why I didn't think of it earlier but I starred at it long enough and realized that if there were more than one space, it wasn't meant to be in the same field so I replaced any space that exceeded 1 with a comma so I think I'm getting closer it looks WAY more feasible now
-
Oh this is such a hard one.. Alright my school apparently has, from limited sources, NO Database to store all the courses offered. They use DOS programs to give whatevr output they need, so I'm sure they at least have some sort of old school CSV file somewhere I can't find. but anyway... I'm trying to port all available data, which is just HTML pages (horribly organized ones) to a MySQL database. I've done great so far with all the courses http://www.southwesterncc.edu/acadprog/desc/aca-bus.htm I got all of them sorted I've now moved to another yet horrifying HTML file that I want to port, but I'm having trouble finding any patterns since it's just text and spaces. but my goal is to get every class listed here http://www.southwesterncc.edu/acadprog/spring/index.htm into a database...so I could sort by teacher or location, etc Does anyone have any ideas here I know I'm gong to have to use Regex most definitely, unless I want to go insane. I'm not asking for you to write me a regex pattern though, I'm just asking if anyone can't spot any logical patterns or describe a logical procedure I could use to at least get each class into an array of some sort.
-
well more or less I mean old school as in spacer.gif I swear I saw one the new school would be padding and as far as tables go...CSS
-
i know it's off topic, but I really like your site. I just wish it wasn't old-schooled (spacer.gifs and TABLES) did you do all the graphics yourself?
-
access denied when trying to view web pages.
Zane replied to DeathfireD's topic in Apache HTTP Server
are you connecting using http://localhost or are you using your computer name/domain name you may be disallowing anything but localhost in your http.conf file -
here.. from the manual [code] <?php function GetFileName($file_name) { $newfile = basename($file_name); if (strpos($newfile,'\\') !== false) { $tmp = preg_split("[\\\]",$newfile); $newfile = $tmp[count($tmp) - 1]; return($newfile); } else { return($file_name); } } ?> [/code]
-
oh ok... did a google and found out JSP is java Server pages and not javascript like I assumed for some reason my bad
-
PHP is server side and JSP is client-side they're practically opposites
-
[quote]seperate entry for each link[/quote] fuck...:S
-
[code=php:0]date("Y-m-d H:i:s", strtotime("12/4/2006 7:32:48 PM"));[/code]
-
[quote]I heard a lot of people hate whitespace[/quote] when it's used wrong they do... you use whitespace to keep the eyes directed where they need to be sometimes a simple arrow pointing somewhere in the middle of the most whitespace ever can justify that .. missuse because it directs the eyes not saying you should put arrows all over your site or anything..just trying to make an analogy
-
yeah..but still that isn't going to make a dynamic link my goal was to be able to just put a character or whatever before a funciton and wala... a manual link but apparently in order for the replacement/filter to work the target has to be it's own word meaning it doesn't just replace letters in words...at least I think EDIT damnit...it works for other things -please- EDIT2: but this doesn't work eeeeplzeeee well either way there's no way i can take the echo on the right side of the m(no space)& and put it inside the newly formed URL tag......using the SMF filter thing feature mabob
-
I'm not saying to avoid a color scheme I'm just saying to actually ... how can I explain it right now when i look at it almost looks like you said to yourself "i need color' so you picked random areas to add color and asked us if that satisfied the color problem for instance with that random blue block in the header a while back Your logo stands out the most on the page and it has two colors on it use the same colors to create your scheme and then you might use i dunno maybe a red to make little things stand out but only little things and tada a color scheme i think you've got the idea but i figured i preach it a little anyway just in case. I guess another tip...if you must use background colors make them more subtle...like they're part of the page
-
well I think a join goes before a WHERE clause anyway so your method wouldn't work right....I think not too certain but this might work for members who haven't bought anything SELECT member.Email FROM member, orders LEFT JOIN member ON member.userid=orders.user_id WHERE (member.Subscriber='Subscriber') AND WHERE orders.users_id = null
-
looking muich better but still you have background-colors for things that don't need them my advice would be to get rid of all background colors so far and add whatever might look good one at a time
-
I went in there and added one for the letter m followed by & "m(no space)&" so it replaces it with 'http://www.php.net/" so theoretically "m(no space)&echo' would make m&echo hopefully that won't cause any contraversy but if it does then oh well..it's gone EDIT: damn it's not working
-
hmm...that's an idea maybe we could use a certain character in front of a command to distinguish it or something
-
just go to the bottom of your CSS styles and say [code] * { background-color: none; } [/code] You site would look fine without a 'color scheme' maybe make the nav bar.. or maybe the body area have like a slight off white off gray background but that's about it and put a divider between the headers and footers where they meet the body that's about the most I could contribute whatever you do..just make sure people can actually see the links on the nav bar