Click4Trick

Click4Trick's Partners

Go Back   Click4Trick > Important > Cursuri de design si programare C4T > PHP si MySQL

PHP si MySQL Ok. Stii Photoshop, HTML si CSS. Faci template-uri. N-ai vrea sa-ti usurezi munca, sa poti crea site-uri dinamince folosind programarea in PHP si baze de date MySQL?

Reply
 
Thread Tools Display Modes
  #1  
Old 16-07-2008, 11:45 PM
cigraphics cigraphics is offline
V.I.P.
 
Join Date: Mar 2008
Location: Pitesti
Age: 21
Posts: 34
cigraphics is on a distinguished road
Default [Lectia-1]Introducere

Introducere:

Ce este PHP ?
PHP ("PHP: Hypertext Preprocessor") este un limbaj de scripting (server side) de uz general, cu cod-sursa deschis (open-source). Este folosit in special pentru dezvoltarea aplicatiilor web ( situri in special siturile dinamice ce folosesc baze de date [mysql, postgresql ..]) si poate fi integrat in HTML.

Inceputul scriptului in php se face prin deschiderea tagului <?php sau <? sau <script language="php"> iar inchiderea prin ?> sau in cazul script prin </script>

Codul php nu este vizibil in browser doar output-ul, deoarece se executa pe server.

Ca sa rulati php pe pc-ul personal va recomand pachetul apache2triad (http://www.apache2triad.net) sau xampp(http://www.apachefriends.org/en/xampp.html) deoarece el contine apache, php, mysql si alte programe dar pe noi ne intereseaza doar apache/php/mysql (amp).

Exemplu: (test.php)

Code:
<html>
<head>
	<title>Titlu</title>
</head>
<body>
<?php
	echo 'Hello world';
?>
</body>
</html>

echo - afiseaza textul dintre ' '
<?php - deschide scriptul php
?> - inchide scriptul php

Nici la lectia asta tema. De asemenea, daca aveti intrebari sau nelamuriri in legatura cu Lectia 1 dati un reply.
Reply With Quote
  #2  
Old 17-07-2008, 12:20 AM
matei2010 matei2010 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 23
matei2010 is on a distinguished road
Default Re: [Lectia-1]Introducere

Nice...Ce simpla pare prima lectie daca stiai de la inceput putin HTML
Reply With Quote
  #3  
Old 17-07-2008, 12:22 AM
mad's Avatar
mad mad is offline
Member
 
Join Date: Mar 2008
Age: 20
Posts: 51
mad is on a distinguished road
Send a message via Yahoo to mad
Default Re: [Lectia-1]Introducere

da..
noh homework?
Reply With Quote
  #4  
Old 17-07-2008, 12:24 AM
cigraphics cigraphics is offline
V.I.P.
 
Join Date: Mar 2008
Location: Pitesti
Age: 21
Posts: 34
cigraphics is on a distinguished road
Default Re: [Lectia-1]Introducere

In prima si posibil a doua lectie nu vor fi teme mai intai sa punem cat de cat bazele. Acum astept intrebari
Reply With Quote
  #5  
Old 17-07-2008, 12:31 AM
matei2010 matei2010 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 23
matei2010 is on a distinguished road
Default Re: [Lectia-1]Introducere

<?php -am inteles asta deschide
?> -asta inchide
echo 'Hello world'; dar acel ; la ce ajuta ...acel ; de la echo "Hello world";
Reply With Quote
  #6  
Old 17-07-2008, 12:33 AM
mad's Avatar
mad mad is offline
Member
 
Join Date: Mar 2008
Age: 20
Posts: 51
mad is on a distinguished road
Send a message via Yahoo to mad
Default Re: [Lectia-1]Introducere

asa se inchide acel 'echo'.. cred.. cel putin asa e la c++ :-"

le: vroiam sa zic linia.
Reply With Quote
  #7  
Old 17-07-2008, 12:34 AM
cigraphics cigraphics is offline
V.I.P.
 
Join Date: Mar 2008
Location: Pitesti
Age: 21
Posts: 34
cigraphics is on a distinguished road
Default Re: [Lectia-1]Introducere

Acel ; termina linia respectiva. Daca ai sa zicem

echo 'Test';
echo 'Test2'; si nu pui ; o sa dea eroare pentru ca nu inchide linia.
Reply With Quote
  #8  
Old 17-07-2008, 12:39 AM
matei2010 matei2010 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 23
matei2010 is on a distinguished road
Default Re: [Lectia-1]Introducere

Acum am inteles...Deci acel ; trebuie pus obligat pentru a inchide linia...
Reply With Quote
  #9  
Old 17-07-2008, 02:04 AM
span span is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
span is on a distinguished road
Default Re: [Lectia-1]Introducere

Word !
Reply With Quote
  #10  
Old 17-07-2008, 02:17 AM
1Quality 1Quality is offline
Member
 
Join Date: Jan 2008
Location: Caracal
Posts: 42
1Quality is on a distinguished road
Default Re: [Lectia-1]Introducere

f distractiv
__________________
www.one-quality.ro
Reply With Quote
  #11  
Old 17-07-2008, 02:19 AM
astan astan is offline
Member
 
Join Date: Jul 2008
Age: 33
Posts: 30
astan is on a distinguished road
Default Re: [Lectia-1]Introducere

Quote:
Originally Posted by 1Quality
f distractiv
Ce anume ?
Reply With Quote
  #12  
Old 17-07-2008, 09:29 AM
kNN kNN is offline
Junior Member
 
Join Date: Jul 2008
Location: Hateg | Hunedoara |
Age: 19
Posts: 22
kNN is on a distinguished road
Send a message via MSN to kNN Send a message via Yahoo to kNN
Default Re: [Lectia-1]Introducere

Sper sa avem note bune ...sa ne iei usor "domn' profesor"
__________________
Reply With Quote
  #13  
Old 17-07-2008, 11:59 AM
benny_loppa benny_loppa is offline
Moderator
 
Join Date: Jul 2008
Location: Iasi
Age: 21
Posts: 91
benny_loppa is on a distinguished road
Default Re: [Lectia-1]Introducere

puteti folosi si print("test");
Reply With Quote
  #14  
Old 17-07-2008, 01:14 PM
chessh chessh is offline
Administrator
Long distance runner
 
Join Date: Jan 2007
Location: In Nicole Scherzinger.
Age: 20
Posts: 4,084
chessh will become famous soon enough
Send a message via Yahoo to chessh
Default Re: [Lectia-1]Introducere

Incercati sa va abtineti de la comentarii inutile si fiti in tema cu aceasta lectie si numai aceasta, chiar daca stiti si alte lucruri.
__________________
Intelligence plus character - that is the goal of true education.
Light that shit, smoke that shit, pass that shit.
Citeste-mi blogul!
Reply With Quote
  #15  
Old 17-07-2008, 01:21 PM
eNZO eNZO is offline
Senior Member
 
Join Date: Jan 2008
Location: Ploiesti
Age: 26
Posts: 133
eNZO is on a distinguished road
Send a message via Yahoo to eNZO
Default Re: [Lectia-1]Introducere

Quote:
Originally Posted by cigraphics
Inceputul scriptului in php se face prin deschiderea tagului <?php sau <? sau <script language="php"> iar inchiderea prin ?> sau in cazul script prin </script>

deci...tagu`l de inceput poate fi <?php> sau <?> sau <script language="php"> ??
si la inchidere e ?> sau </script> ... gat am bagat la cutiutza

nu va suparati ca intreb de 1-2 ori.. vreau sa stiu daca am inteles bene
__________________
Dj eNZO in The MIX
Reply With Quote
  #16  
Old 17-07-2008, 01:30 PM
cigraphics cigraphics is offline
V.I.P.
 
Join Date: Mar 2008
Location: Pitesti
Age: 21
Posts: 34
cigraphics is on a distinguished road
Default Re: [Lectia-1]Introducere

Mai sunt si tagurile asp style adica asa <% %> numai daca sunt activate din php.ini
Reply With Quote
  #17  
Old 17-07-2008, 01:33 PM
3m!'s Avatar
3m! 3m! is offline
Senior Member
 
Join Date: Feb 2008
Location: Braila, oras plin de pacate
Age: 15
Posts: 158
3m! is on a distinguished road
Default Re: [Lectia-1]Introducere

Quote:
Originally Posted by eNZO
deci...tagu`l de inceput poate fi <?php> sau <?>
este <?php sau <?
Reply With Quote
  #18  
Old 17-07-2008, 01:35 PM
cigraphics cigraphics is offline
V.I.P.
 
Join Date: Mar 2008
Location: Pitesti
Age: 21
Posts: 34
cigraphics is on a distinguished road
Default Re: [Lectia-1]Introducere

multumesc esp de corectare n-am fost atent
Reply With Quote
  #19  
Old 17-07-2008, 01:59 PM
3m!'s Avatar
3m! 3m! is offline
Senior Member
 
Join Date: Feb 2008
Location: Braila, oras plin de pacate
Age: 15
Posts: 158
3m! is on a distinguished road
Default Re: [Lectia-1]Introducere

Quote:
Originally Posted by 1Quality
f distractiv
1Quality, distractiv, distractiv, pana ajungem la ceva complicat. Credema php si mysql ii mult mai greu decat html si css.
Reply With Quote
  #20  
Old 17-07-2008, 02:04 PM
nullbyte nullbyte is offline
Member
 
Join Date: May 2008
Posts: 82
nullbyte is on a distinguished road
Default Re: [Lectia-1]Introducere

Really really basic. Astept ca la urmatoarele lectii sa dai tema.
__________________
Salvati-l pe Catalin!
Reply With Quote
Reply

Bookmarks

Tags
lectia1introducere

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Lectia I JoKeR C++ 27 05-02-2009 12:35 AM
Lectia -2- Tag-uri formatare text matei2010 HTML si CSS 9 13-11-2008 03:50 PM
Lectia -1- Introducere cigraphics HTML si CSS 25 12-11-2008 06:00 PM
[Lectia-3]Constante si operatori benny_loppa PHP si MySQL 4 15-09-2008 06:51 PM
Introducere in Photoshop - Lectia 1 chessh Photoshop 37 31-07-2008 10:54 PM


All times are GMT +3. The time now is 03:06 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1 (Unregistered)
Toate drepturile sunt rezervate de Click4Trick.com.
Romanian Security Team