سؤال عن ال PHP
|
عضو فعال
تاريخ التسجيل: 2005-10-11 مشاركات: 770
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الرابعة الاختصاص: ذكاء صنعي
|
how can i get the source code of a php page from site i mean the main source code and not the generated page and thanks
C++ is Not a programming language , C++ is a Way Of Life
|
| |
دخول أو تسجيل لإرسال التعليقات | قراءة: 502 |
|
مشرف
تاريخ التسجيل: 2006-02-19 مشاركات: 2888
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الثالثة
|
I don't think that you can, because PHP is just like ASP.NET when you send a request for a page to the server, it will tell the page to render itself as HTML tags, and the page will by itself tell all the controls on it to render themselves as HTML tags too, so if there is a code in this page it will be considered and compiled so the result at the end will be also an HTML tags.
I know nothing about PHP but I know that this is the case in ASP.NET or any other technology.
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
عضو فعال
تاريخ التسجيل: 2004-02-27 مشاركات: 1477
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: متخرج الاختصاص: ذكاء صنعي
|
PHP, Is a server side scripting language, and that means the code well be "interpreted" on the server and the client will see the output. ==> YOU CAN'T DO IT
|
| |
دخول أو تسجيل لإرسال التعليقات |
تاريخ التسجيل: 2005-11-25 مشاركات: 155
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: متخرج الاختصاص: ذكاء صنعي
|
كتب Firas: PHP, Is a server side scripting language, and that means the code well be "interpreted" on the server and the client will see the output. ==> YOU CAN'T DO IT
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
مشرف
تاريخ التسجيل: 2006-10-12 مشاركات: 1859
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الرابعة الاختصاص: هندسة برمجيات
|
Like The Guyes Said It's A Server Side Scriptnig Language U Can Only Get The source By Accesseing The Server File System And Get The text file named file.php Be Careful The Page May Contain More Than One php File
My Grand Father told me that Women are like parking areas, the good ones are taken, and the empty ones are for handy capped mostly, no offense
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
عضو فعال
تاريخ التسجيل: 2005-10-11 مشاركات: 770
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الرابعة الاختصاص: ذكاء صنعي
|
first I wanna say thank you guys but NightWolf, what do you mean by saying:"Accesseing The Server File System" ,do you mean hacking or some thing like that?
C++ is Not a programming language , C++ is a Way Of Life
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
عضو فعال
تاريخ التسجيل: 2004-03-18 مشاركات: 316
الجامعة: غير ذلك الكلية: الهندسة المعلوماتية المرحلة: ماجستير الاختصاص: ذكاء صنعي
|
you cannot get the php page directly. but if you can figure out the system used in this site, and the system happens to be open source (many php systems are), then you can download the original system and see the code.
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
مشرف
تاريخ التسجيل: 2006-10-12 مشاركات: 1859
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الرابعة الاختصاص: هندسة برمجيات
|
كتب M-RAY-Y: first I wanna say thank you guys but NightWolf, what do you mean by saying:"Accesseing The Server File System" ,do you mean hacking or some thing like that? No I Mean that u Get The Php text files from the Server. in other words u can only read php code if u hack the server, enter to the folder named www and copy the file u see
My Grand Father told me that Women are like parking areas, the good ones are taken, and the empty ones are for handy capped mostly, no offense
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
عضو فعال
تاريخ التسجيل: 2006-12-01 مشاركات: 276
|
كتب NightWolf: كتب M-RAY-Y: first I wanna say thank you guys but NightWolf, what do you mean by saying:"Accesseing The Server File System" ,do you mean hacking or some thing like that? No I Mean that u Get The Php text files from the Server. in other words u can only read php code if u hack the server, enter to the folder named www and copy the file u see  but u have to tell him HOW :
How Perfect You are O Allah, and I praise You. LA Ilah Ila Lah, I seek Your forgiveness and turn to You in repentance
|
| |
دخول أو تسجيل لإرسال التعليقات |
تاريخ التسجيل: 2005-02-20 مشاركات: 258
الجامعة: غير ذلك الكلية: الهندسة المعلوماتية المرحلة: ماجستير الاختصاص: هندسة شبكات
|
u can only do that if u can access the server (via SSH or FTP ...)
if you r the server owner then u can see all sites' files on your server
كتب NightWolf: كتب M-RAY-Y: first I wanna say thank you guys but NightWolf, what do you mean by saying:"Accesseing The Server File System" ,do you mean hacking or some thing like that? No I Mean that u Get The Php text files from the Server. in other words u can only read php code if u hack the server, enter to the folder named www and copy the file u see 
ok 2 other things to say
not all hacking types let u see the code (most of them do not)
as far as I know,u can find the site code under a folder named public_html or http_docs and not www
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
مشرف
تاريخ التسجيل: 2006-10-12 مشاركات: 1859
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الرابعة الاختصاص: هندسة برمجيات
|
كتب as_els:
u can only do that if u can access the server (via SSH or FTP ...)
if you r the server owner then u can see all sites' files on your server
كتب NightWolf: كتب M-RAY-Y: first I wanna say thank you guys but NightWolf, what do you mean by saying:"Accesseing The Server File System" ,do you mean hacking or some thing like that? No I Mean that u Get The Php text files from the Server. in other words u can only read php code if u hack the server, enter to the folder named www and copy the file u see 
ok 2 other things to say
not all hacking types let u see the code (most of them do not)
as far as I know,u can find the site code under a folder named public_html or http_docs and not www
Ur right I have forgot
That's cause I'm now working on my pc only ...
My Grand Father told me that Women are like parking areas, the good ones are taken, and the empty ones are for handy capped mostly, no offense
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
عضو فعال
تاريخ التسجيل: 2005-10-11 مشاركات: 770
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الرابعة الاختصاص: ذكاء صنعي
|
كتب as_els: u can only do that if u can access the server (via SSH or FTP ...) if you r the server owner then u can see all sites' files on your server
but i think not all servers allow me to access through SSH or FTP, those ports should be open first to be able to access through them as i know..
كتب as_els: as far as I know,u can find the site code under a folder named public_html or http_docs and not www
the problem is i am not the admin of the site to access thoses folders,or in other words ,i think not all of the sites allow users to get to those folders
C++ is Not a programming language , C++ is a Way Of Life
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
عضو فعال
تاريخ التسجيل: 2004-04-21 مشاركات: 3128
الجامعة: حلب الكلية: الهندسة المعلوماتية المرحلة: ماجستير الاختصاص: ذكاء صنعي
|
If you'd like to peruse the Php code for studying purposes, then you can easily obtain it, as hanisaf pointed out, since this site is built with the open source content management platform Drupal. Though I believe it is a heavily patched old version that we're using here.
|
| |
دخول أو تسجيل لإرسال التعليقات |
|