About   Users   Help
Users & Guests Online
On Page: 1
Directory: 1 & 181
Entire Site: 2 & 1279
Page Staff: tgags123, pokemon x, tgags123, supercool22, SonicOlmstead, SonicOlmstead, Barathemos,
04-29-26 02:00 AM

Thread Information

Views
32,904
Replies
135
Rating
0
Status
CLOSED
Thread
Creator
Davideo7
12-04-05 04:35 PM
Last
Post
Lazlo Falconi
05-24-16 12:54 AM
Additional Thread Details
Views: 6,665
Today: 0
Users: 0 unique

Thread Actions

Thread Closed
New Thread
New Poll
Order
Posts


<<
7 Pages
>>
 

Official PHP Thread

 

03-22-08 02:07 AM
is Offline
| ID: 62996 | 45 Words


JigSaw
Level: 167


POSTS: 257/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
No he meant after HTML. Just the way he listed it first was backwards If you make it the default. I remember making my main sites page index.html but wanted it .php, I had to make the .php one default with the dreamweaver setup.

No he meant after HTML. Just the way he listed it first was backwards If you make it the default. I remember making my main sites page index.html but wanted it .php, I had to make the .php one default with the dreamweaver setup.

--------------------
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

03-22-08 02:38 AM
Davideo7 is Online
| ID: 63007 | 50 Words

Davideo7
Level: 357


POSTS: 6112/45811
POST EXP: 3544333
LVL EXP: 866698741
CP: 199901.6
VIZ: 129423923

Likes: 0  Dislikes: 0
Yeah some sites you can choose the order what file type gets called first. Than there's stuff like default.aspx for windows servers, seeing how Vizzed board is on a windows server I've played around with that stuff
(also i work with .aspx files at work with visual studio 2005).

God Created Adam, God Created Eve,
Than He Created David, But No One Would Beleive,
That David Created Vizzed Board, Just For You And Me,
So Grab My Hand And Lets Be Friends, And We'll Head To The Land Of V

Yeah some sites you can choose the order what file type gets called first. Than there's stuff like default.aspx for windows servers, seeing how Vizzed board is on a windows server I've played around with that stuff
(also i work with .aspx files at work with visual studio 2005).



The Owner
Owner, Developer, Advertiser, etc
Founder, Mod, Investor


Affected by 'Carpal Tunnel Syndrome'

Registered: 12-06-04
Location: Wisconsin
Last Post: 16 hours
Last Active: 3 min.

03-23-08 07:18 PM
BigBob85 is Offline
| ID: 63191 | 32 Words

BigBob85
Level: 153

POSTS: 5055/6381
POST EXP: 217397
LVL EXP: 45047111
CP: 175.7
VIZ: 50268

Likes: 0  Dislikes: 0
Ah, i thought it was just a default webstandard unchangeable thing. In my experience a .html ran before a .php did (not meaning one after anohter, meaning only the .html one ran).
Ah, i thought it was just a default webstandard unchangeable thing. In my experience a .html ran before a .php did (not meaning one after anohter, meaning only the .html one ran).

BigBob85s Display Picture
Vizzed Elite
Member Of The Year 07


Affected by 'Laziness Syndrome'

Registered: 12-09-04
Location: Melbourne, Australia
Last Post: 2337 days
Last Active: 455 days

03-24-08 09:19 AM
Davideo7 is Online
| ID: 63392 | 41 Words

Davideo7
Level: 357


POSTS: 6122/45811
POST EXP: 3544333
LVL EXP: 866698741
CP: 199901.6
VIZ: 129423923

Likes: 0  Dislikes: 0
Yeah that's what I was saying is that .html ran before .php

Yes, that stuff is changeable on a server, of course you need your own windows server to change what gets called first, I've messed with this stuff before lol.

God Created Adam, God Created Eve,
Than He Created David, But No One Would Beleive,
That David Created Vizzed Board, Just For You And Me,
So Grab My Hand And Lets Be Friends, And We'll Head To The Land Of V

Yeah that's what I was saying is that .html ran before .php

Yes, that stuff is changeable on a server, of course you need your own windows server to change what gets called first, I've messed with this stuff before lol.



The Owner
Owner, Developer, Advertiser, etc
Founder, Mod, Investor


Affected by 'Carpal Tunnel Syndrome'

Registered: 12-06-04
Location: Wisconsin
Last Post: 16 hours
Last Active: 3 min.

05-20-08 09:21 AM
is Offline
| ID: 68615 | 56 Words


JigSaw
Level: 167


POSTS: 538/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
Any ideas what this means?

Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/domains/upload_progress.php on line 65

This is the error I'm getting while trying to upload to filesend so there's no way for me to edit there script But just wondering what the deal is cause I'm not able to upload anything.

Any ideas what this means?

Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/domains/upload_progress.php on line 65

This is the error I'm getting while trying to upload to filesend so there's no way for me to edit there script But just wondering what the deal is cause I'm not able to upload anything.

--------------------
------------------------------------------------------------------
VIZZED GLOBAL MODERATOR
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

05-20-08 04:30 PM
BigBob85 is Offline
| ID: 68636 | 21 Words

BigBob85
Level: 153

POSTS: 5414/6381
POST EXP: 217397
LVL EXP: 45047111
CP: 175.7
VIZ: 50268

Likes: 0  Dislikes: 0
fread is to read files on the server.. but if its taking no paramaters... that is odd indeed... Should email them.
fread is to read files on the server.. but if its taking no paramaters... that is odd indeed... Should email them.

BigBob85s Display Picture
Vizzed Elite
Member Of The Year 07


Affected by 'Laziness Syndrome'

Registered: 12-09-04
Location: Melbourne, Australia
Last Post: 2337 days
Last Active: 455 days

05-20-08 10:14 PM
is Offline
| ID: 68645 | 3 Words


JigSaw
Level: 167


POSTS: 539/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
Thanks, problem solved

Thanks, problem solved

--------------------
------------------------------------------------------------------
VIZZED GLOBAL MODERATOR
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

05-21-08 04:03 PM
BennyMD4123 is Offline
| ID: 68666 | 21 Words

BennyMD4123
Level: 80


POSTS: 739/1429
POST EXP: 51803
LVL EXP: 4750748
CP: 38.0
VIZ: 40361

Likes: 0  Dislikes: 0
Question:
Which would be better to make a site?
PHP or HTML?

(Or are they both combined into the same thing?)
Yasashii kaori ga suru sunda sora ga tsuzuku,
Hito wa kono tochi wo marude rakuen no you to iu.

--------------------

Question:
Which would be better to make a site?
PHP or HTML?

(Or are they both combined into the same thing?)

--------------------
A pleasant fragrance hangs on the breeze as the weather clears again,
People say that this land is just like paradise.
Vizzed Elite
<i><font color=


Affected by 'Laziness Syndrome'

Registered: 02-23-05
Last Post: 5094 days
Last Active: 1717 days

05-21-08 04:35 PM
Davideo7 is Online
| ID: 68683 | 142 Words

Davideo7
Level: 357


POSTS: 6748/45811
POST EXP: 3544333
LVL EXP: 866698741
CP: 199901.6
VIZ: 129423923

Likes: 0  Dislikes: 0
Well PHP pages usually consist of HTML tags but there is a huge difference between making a website with PHP and making a website with HTML. I would pick PHP over a static HTML page any day because PHP is just better and easier in ever way. With PHP, you can create a footer, header and menu that appears on every page of the site so all you gotat do is edit one file to change the header and menu and footer of all the pages; this also applies to the site's layout. In just a static html site, if you wanted to change the menu, layout, footer, or header on all the pages of the site, you'd have to do it manually to every single page.

Can't think of any more examples but just know that PHP is way more flexible.

God Created Adam, God Created Eve,
Than He Created David, But No One Would Beleive,
That David Created Vizzed Board, Just For You And Me,
So Grab My Hand And Lets Be Friends, And We'll Head To The Land Of V

Well PHP pages usually consist of HTML tags but there is a huge difference between making a website with PHP and making a website with HTML. I would pick PHP over a static HTML page any day because PHP is just better and easier in ever way. With PHP, you can create a footer, header and menu that appears on every page of the site so all you gotat do is edit one file to change the header and menu and footer of all the pages; this also applies to the site's layout. In just a static html site, if you wanted to change the menu, layout, footer, or header on all the pages of the site, you'd have to do it manually to every single page.

Can't think of any more examples but just know that PHP is way more flexible.



The Owner
Owner, Developer, Advertiser, etc
Founder, Mod, Investor


Affected by 'Carpal Tunnel Syndrome'

Registered: 12-06-04
Location: Wisconsin
Last Post: 16 hours
Last Active: 3 min.

05-21-08 04:53 PM
BennyMD4123 is Offline
| ID: 68694 | 4 Words

BennyMD4123
Level: 80


POSTS: 758/1429
POST EXP: 51803
LVL EXP: 4750748
CP: 38.0
VIZ: 40361

Likes: 0  Dislikes: 0
Thanks for t3h advice.
Yasashii kaori ga suru sunda sora ga tsuzuku,
Hito wa kono tochi wo marude rakuen no you to iu.

--------------------

Thanks for t3h advice.

--------------------
A pleasant fragrance hangs on the breeze as the weather clears again,
People say that this land is just like paradise.
Vizzed Elite
<i><font color=


Affected by 'Laziness Syndrome'

Registered: 02-23-05
Last Post: 5094 days
Last Active: 1717 days

05-21-08 06:02 PM
is Offline
| ID: 68698 | 99 Words


JigSaw
Level: 167


POSTS: 543/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
It depends on what the site is for. I don't think I've ever make a normal HTML site ever again mainly cause I like what PHP is able to do with css, saves time and makes updating a breeze! If you don't know PHP go with HTML first then when you want to venture further into PHP study it and use it to your advantage.

If your not good at math you probably won't be good at programming. I'm not sure, I've been studing it on and off for a few months and it's nothing easy that's for sure

It depends on what the site is for. I don't think I've ever make a normal HTML site ever again mainly cause I like what PHP is able to do with css, saves time and makes updating a breeze! If you don't know PHP go with HTML first then when you want to venture further into PHP study it and use it to your advantage.

If your not good at math you probably won't be good at programming. I'm not sure, I've been studing it on and off for a few months and it's nothing easy that's for sure

--------------------
------------------------------------------------------------------
VIZZED GLOBAL MODERATOR
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

05-21-08 08:19 PM
BigBob85 is Offline
| ID: 68714 | 41 Words

BigBob85
Level: 153

POSTS: 5426/6381
POST EXP: 217397
LVL EXP: 45047111
CP: 175.7
VIZ: 50268

Likes: 0  Dislikes: 0
Wait.. what does PHP do with CSS?

PHP is just to do more backend stuff, but the end result is your still writing stuff to the browser screen.. and the end product on the user end is just a html page.
Wait.. what does PHP do with CSS?

PHP is just to do more backend stuff, but the end result is your still writing stuff to the browser screen.. and the end product on the user end is just a html page.

BigBob85s Display Picture
Vizzed Elite
Member Of The Year 07


Affected by 'Laziness Syndrome'

Registered: 12-09-04
Location: Melbourne, Australia
Last Post: 2337 days
Last Active: 455 days

05-22-08 09:28 AM
is Offline
| ID: 68734 | 41 Words


JigSaw
Level: 167


POSTS: 544/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
I meant like header and footer files and making the site in all CSS/PHP. I think it works better and is more dynamic then using HTML/PHP. Basically they do the same except I like the CSS/PHP way a lot better.

I meant like header and footer files and making the site in all CSS/PHP. I think it works better and is more dynamic then using HTML/PHP. Basically they do the same except I like the CSS/PHP way a lot better.

--------------------
------------------------------------------------------------------
VIZZED GLOBAL MODERATOR
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

05-22-08 05:27 PM
BigBob85 is Offline
| ID: 68764 | 11 Words

BigBob85
Level: 153

POSTS: 5432/6381
POST EXP: 217397
LVL EXP: 45047111
CP: 175.7
VIZ: 50268

Likes: 0  Dislikes: 0
But whats the php way?

I just echo my html pages...
But whats the php way?

I just echo my html pages...

BigBob85s Display Picture
Vizzed Elite
Member Of The Year 07


Affected by 'Laziness Syndrome'

Registered: 12-09-04
Location: Melbourne, Australia
Last Post: 2337 days
Last Active: 455 days

05-23-08 02:14 AM
is Offline
| ID: 68788 | 29 Words


JigSaw
Level: 167


POSTS: 553/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
Echoing or printing would be the PHP way. What's the difference between echo and print? They do the same thing dont they? Or is one better then the other?

Echoing or printing would be the PHP way. What's the difference between echo and print? They do the same thing dont they? Or is one better then the other?

--------------------
------------------------------------------------------------------
VIZZED GLOBAL MODERATOR
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

(edited by JigSaw on 05-23-08 02:15 AM)    

05-23-08 09:32 AM
BigBob85 is Offline
| ID: 68796 | 41 Words

BigBob85
Level: 153

POSTS: 5443/6381
POST EXP: 217397
LVL EXP: 45047111
CP: 175.7
VIZ: 50268

Likes: 0  Dislikes: 0
echo is slightly faster, print returns 0. Apparntly a useless 0..
Theres a few things to do to make it faster, like drop out of php tags to directly print large blocks of html and stuff. Want me to keep going?
echo is slightly faster, print returns 0. Apparntly a useless 0..
Theres a few things to do to make it faster, like drop out of php tags to directly print large blocks of html and stuff. Want me to keep going?

BigBob85s Display Picture
Vizzed Elite
Member Of The Year 07


Affected by 'Laziness Syndrome'

Registered: 12-09-04
Location: Melbourne, Australia
Last Post: 2337 days
Last Active: 455 days

05-23-08 12:39 PM
is Offline
| ID: 68800 | 13 Words


JigSaw
Level: 167


POSTS: 555/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
That's good enough You should teach PHP classes I would definatly sign up

That's good enough You should teach PHP classes I would definatly sign up

--------------------
------------------------------------------------------------------
VIZZED GLOBAL MODERATOR
Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

10-13-08 07:10 PM
is Offline
| ID: 73344 | 88 Words


JigSaw
Level: 167


POSTS: 882/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
How do you make modules in PHP??? I tried looking all over and cant find anything on it. I know how modules are created like so: module ( ) , but are you allowed to make your own in PHP?

Would it make any logic to make a file for a database connection and then another file to close the connection and include the connect () at the beginning of the code you want inputted into a database and disconnect () at the end of it?

For example:


require ('connect.php');

$query = "INSERT INTO blahblah (test1) VALUES ('{$_POST['test1']}')";

require ('disconnect.php');

?>



JigSaw Says:
How do you make modules in PHP??? I tried looking all over and cant find anything on it. I know how modules are created like so: module ( ) , but are you allowed to make your own in PHP?

Would it make any logic to make a file for a database connection and then another file to close the connection and include the connect () at the beginning of the code you want inputted into a database and disconnect () at the end of it?

For example:


require ('connect.php');

$query = "INSERT INTO blahblah (test1) VALUES ('{$_POST['test1']}')";

require ('disconnect.php');

?>



--------------------

WEB DESIGN | LOGO DESIGN | HOSTING | DIGITAL IMAGING @ www.SMDIMAGES.com | Layout coded by BigBob85


Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

(edited by JigSaw on 10-13-08 07:11 PM)    

10-17-08 02:58 AM
BigBob85 is Offline
| ID: 73385 | 118 Words

BigBob85
Level: 153

POSTS: 5900/6381
POST EXP: 217397
LVL EXP: 45047111
CP: 175.7
VIZ: 50268

Likes: 0  Dislikes: 0
ill repl when im not using onscreen keyboard

From what I can google, you can make modules.. I have no idea how to, or even what they are... Are they like classes?


It makes logical sense to me, and I do it (I think...) but after a quick google seems its not requierd.

If you are doing big querys, you might want to call mysql_free_result( [result] ); to free up memory for that query, but other then that, php will delete variables, and disconnect from mysql when the script ends. So dont bother.

I thought it was a security problem, but I guess not.

Sort of like how variables get deleted when the run out of scope. Follow?
ill repl when im not using onscreen keyboard

From what I can google, you can make modules.. I have no idea how to, or even what they are... Are they like classes?


It makes logical sense to me, and I do it (I think...) but after a quick google seems its not requierd.

If you are doing big querys, you might want to call mysql_free_result( [result] ); to free up memory for that query, but other then that, php will delete variables, and disconnect from mysql when the script ends. So dont bother.

I thought it was a security problem, but I guess not.

Sort of like how variables get deleted when the run out of scope. Follow?

BigBob85s Display Picture
Vizzed Elite
Member Of The Year 07


Affected by 'Laziness Syndrome'

Registered: 12-09-04
Location: Melbourne, Australia
Last Post: 2337 days
Last Active: 455 days

(edited by BigBob85 on 10-17-08 07:32 PM)    

10-17-08 11:54 PM
is Offline
| ID: 73406 | 203 Words


JigSaw
Level: 167


POSTS: 887/7936
POST EXP: 584185
LVL EXP: 60515799
CP: 8069.8
VIZ: -46029578

Likes: 0  Dislikes: 0
I'm not sure modules would be considered classes; more like functions. For example these are modules:

stristr ( )
is_numeric( )
unset( )

So basically they are parts of a program and or functions of a program which do certain tasks. From what I can gather so far, PHP has tons of built in modules but as you said, how to create one is questionable.

The book for my class does not mention PHP anywhere in it all it talks about is C and C++ and VB so I assume that you can do that in those languages and that's maybe why they are considered more powerful then PHP.

Basically I was going to use them as a template so I don't have to go through all the pages to alter a script when I need to change something. I guess the require () module would make best use of this I'll probably end up doing it that way.

Since variables get deleted at end of each script I guess I will need to use cookies or sessions to pass those along? But yea now it makes sense, they would be bad for passing variables unless there are sessions or cookies involved. Thanks


JigSaw Says:
I'm not sure modules would be considered classes; more like functions. For example these are modules:

stristr ( )
is_numeric( )
unset( )

So basically they are parts of a program and or functions of a program which do certain tasks. From what I can gather so far, PHP has tons of built in modules but as you said, how to create one is questionable.

The book for my class does not mention PHP anywhere in it all it talks about is C and C++ and VB so I assume that you can do that in those languages and that's maybe why they are considered more powerful then PHP.

Basically I was going to use them as a template so I don't have to go through all the pages to alter a script when I need to change something. I guess the require () module would make best use of this I'll probably end up doing it that way.

Since variables get deleted at end of each script I guess I will need to use cookies or sessions to pass those along? But yea now it makes sense, they would be bad for passing variables unless there are sessions or cookies involved. Thanks

--------------------

WEB DESIGN | LOGO DESIGN | HOSTING | DIGITAL IMAGING @ www.SMDIMAGES.com | Layout coded by BigBob85


Vizzed Elite
PHP Developer, Security Consultant

Affected by 'Laziness Syndrome'

Registered: 04-06-06
Location: Area 51
Last Post: 2468 days
Last Active: 2462 days

(edited by JigSaw on 10-17-08 11:58 PM)    

Page Comments

Dove4JS - 12-12-20 05:26 AM
no image
joldboy70 - 07-10-20 11:13 AM
test
joldboy70 - 07-10-20 11:12 AM
test
savage23157 - 04-08-20 01:33 PM
Hi im new vizzed
zokuza - 11-18-19 09:08 AM
final got playstaion games unlock yes baby digimon world here i com
yoshirulez! - 02-10-17 08:45 PM
MAY MAYS
yoshirulez! - 02-10-17 08:45 PM
maymays
yoshirulez! - 02-07-17 11:13 PM
OwO what's this?
yoshirulez! - 02-07-17 11:13 PM
OwO what's this?
yoshirulez! - 02-07-17 11:13 PM
OwO what's this?

Adblocker detected!

Vizzed.com is very expensive to keep alive! The Ads pay for the servers.

Vizzed has 3 TB worth of games and 1 TB worth of music.  This site is free to use but the ads barely pay for the monthly server fees.  If too many more people use ad block, the site cannot survive.

We prioritize the community over the site profits.  This is why we avoid using annoying (but high paying) ads like most other sites which include popups, obnoxious sounds and animations, malware, and other forms of intrusiveness.  We'll do our part to never resort to these types of ads, please do your part by helping support this site by adding Vizzed.com to your ad blocking whitelist.

×