Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
01-21-2021, 09:51 AM | #1 |
Registered User
Industry Role:
Join Date: Jan 2021
Posts: 85
|
Questions about working with php
I'm resurecting an old site of mine and sadly, it needs a good update and facelift. Now despite my education and best efforts, I remain a horrible coder. Let's just say there are good reasons why I always try to use my dick to make money and not my brain. I know that I'm an idiot and I've given up trying to hide it.
Problem: The original site is in php and it's over 10 years old. Questions: 1. What do I need to download so that I can create a php enviroment on my desktop? 2. I've been working with Dreamweaver so long that I don't know anything else. Is there something better? 3. What other questions should a moron like myself be asking about this subject? ;
__________________
(Pornstar, Producer, Writer and Pimp) http://le-beverley.com/ (Under Construction) Email : HamiltonSteele[at]Protonmail.com - Skype - @Hamilton Steele69 / live: cid.afa877d846dcfad5 |
01-21-2021, 10:08 AM | #2 | |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,217
|
Quote:
2) I use Notepad++, but alot use netbeans, php storm, sublime 3) Read up on xss, sql injection and csrf.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
|
01-21-2021, 10:08 AM | #3 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,234
|
|
01-21-2021, 10:31 AM | #4 |
I'll make you famous
Industry Role:
Join Date: Oct 2002
Posts: 13,941
|
I use WAMP on my desktop
PSPad as my editor And keep a browser open to https://www.php.net/ for reference . |
01-21-2021, 10:58 AM | #5 |
Confirmed User
Industry Role:
Join Date: Aug 2005
Location: YUROP
Posts: 8,541
|
WAMP + Notepad++ here as well
__________________
Use coupon 'pauljohn' for a $1 discount at already super cheap NameSilo! Anal Webcams | Kinky Trans Cams Live | Hotwife XXX Tube | Get your Proxies here |
01-21-2021, 11:04 AM | #6 |
Bollocks
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
|
You can run Apache and PHP on your desktop although the versions are slightly different to what a server would be running. If the code is really really old there may be some things that are deprecated in newer versions of PHP which might break it but if you run it on PHP 5.6 I don't think you'll find too many. Netbeans is good and free as an IDE, the latest versions need the Java SDK to install.
__________________
Interserver unmanaged AMD Ryzen servers from $73.00 |
01-21-2021, 11:51 AM | #7 | |
Registered User
Industry Role:
Join Date: Jan 2021
Posts: 85
|
Quote:
I studied computer science in university but I have always been a less than mediocre when it comes to any kind of code. Which unfortunately also includes html, php, etc.
__________________
(Pornstar, Producer, Writer and Pimp) http://le-beverley.com/ (Under Construction) Email : HamiltonSteele[at]Protonmail.com - Skype - @Hamilton Steele69 / live: cid.afa877d846dcfad5 |
|
01-21-2021, 11:56 AM | #8 | |
I'll make you famous
Industry Role:
Join Date: Oct 2002
Posts: 13,941
|
Quote:
Once you get past all the syntax and deprecated errors you can get down to making the code actually work again. You will learn more about php code by going through the debug than any other method, just my opinion of course. Edited in: My answer assumes that you want to learn php coding, of course. . |
|
01-21-2021, 12:46 PM | #9 |
So Fucking Banned
Industry Role:
Join Date: Aug 2019
Posts: 1,436
|
Am I the only one who doesn't like Notepad++
I prefer normal Notepad. |
01-21-2021, 12:49 PM | #10 |
I'll make you famous
Industry Role:
Join Date: Oct 2002
Posts: 13,941
|
|
01-21-2021, 01:15 PM | #11 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,196
|
i still use frontpage express...
|
01-21-2021, 01:39 PM | #12 | |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,224
|
Quote:
Anyone remember having to run list then stop where you want to look at a section of code, or just printing it all out to debug?
__________________
Join the BEST cam affiliate program on the internet! I've referred over $1.7mil in spending this past year, you should join in. I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. |
|
01-21-2021, 01:40 PM | #13 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,224
|
__________________
Join the BEST cam affiliate program on the internet! I've referred over $1.7mil in spending this past year, you should join in. I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. |
01-21-2021, 02:21 PM | #14 | |
So Fucking Banned
Industry Role:
Join Date: Aug 2019
Posts: 1,436
|
Quote:
Wouldn't mind but these SQL files are friggin huge. I wouldn't even attempt to open that with normal Notepad though. Think it would shit the bed. |
|
01-21-2021, 02:23 PM | #15 | |
So Fucking Banned
Industry Role:
Join Date: Aug 2019
Posts: 1,436
|
Quote:
|
|
01-21-2021, 02:26 PM | #16 | |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,224
|
Quote:
__________________
Join the BEST cam affiliate program on the internet! I've referred over $1.7mil in spending this past year, you should join in. I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. |
|
01-21-2021, 02:31 PM | #17 |
Confirmed User
Industry Role:
Join Date: Jun 2019
Posts: 17
|
Wamp or Mamp to create local server. If you're connecting to a database you might need to change it from mysql to mysqli, other than that you shouldn't have too much trouble. My editor of choice is sublime but each to their own
Hit me up if you need any help. slowdown [at] gmail |
01-21-2021, 02:32 PM | #18 |
I'll make you famous
Industry Role:
Join Date: Oct 2002
Posts: 13,941
|
I have no idea on any of that. I do not use Notepad++, I have played with it in the past but I have been using PSPad for at least 10 years so it is my go to.
In PSPad, if you so not close the file before shutting it down, it will attempt to reopen the file when you start back up. But, if you close the file before you shut down, it does not do that. I would imagine that Notepad++ is pretty similar. The auto brackets and parens has never bothered me in any way, shape or form. They are right there on the screen. I can see them so I rarely end up typing them. . |
01-21-2021, 03:45 PM | #19 | |
Registered User
Industry Role:
Join Date: Jan 2021
Posts: 85
|
Quote:
I'm working through this but it's going to take me some time.
__________________
(Pornstar, Producer, Writer and Pimp) http://le-beverley.com/ (Under Construction) Email : HamiltonSteele[at]Protonmail.com - Skype - @Hamilton Steele69 / live: cid.afa877d846dcfad5 |
|
01-21-2021, 04:03 PM | #20 | |
Natalie K
Industry Role:
Join Date: Apr 2010
Location: Spain
Posts: 18,585
|
Quote:
wanting to send you a PM
__________________
My official site NatalieK.xxx My free porn & affiliate blog Natalie K affiliate programFirst time girls Skype: gspotproductions - "Converting your traffic into income since 2005" |
|
01-21-2021, 04:05 PM | #21 |
So Fucking Banned
Industry Role:
Join Date: Aug 2019
Posts: 1,436
|
|
01-21-2021, 04:17 PM | #22 |
Hmm
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
|
Don't be so harsh on yourself.
As for the coding/testing your project locally I find EasyPHP most convenient/easiest, hence the name? (Sadly only for Windows OS) Mentioned above Notepad++ is good for small edits. For coding in php bigger things/from scratch some php IDE. |
01-21-2021, 04:39 PM | #23 |
I'll make you famous
Industry Role:
Join Date: Oct 2002
Posts: 13,941
|
|
01-21-2021, 06:51 PM | #24 |
Natalie K
Industry Role:
Join Date: Apr 2010
Location: Spain
Posts: 18,585
|
how many posts do you need to make before you can accept messages?
__________________
My official site NatalieK.xxx My free porn & affiliate blog Natalie K affiliate programFirst time girls Skype: gspotproductions - "Converting your traffic into income since 2005" |
01-21-2021, 06:52 PM | #25 |
So Fucking Banned
Industry Role:
Join Date: Aug 2019
Posts: 1,436
|
|
01-22-2021, 01:27 AM | #26 | |
Natalie K
Industry Role:
Join Date: Apr 2010
Location: Spain
Posts: 18,585
|
so how come still unable to send messages, and 31?
says, and I quote.. Quote:
__________________
My official site NatalieK.xxx My free porn & affiliate blog Natalie K affiliate programFirst time girls Skype: gspotproductions - "Converting your traffic into income since 2005" |
|
01-22-2021, 07:09 AM | #27 |
Confirmed User
Industry Role:
Join Date: Apr 2018
Location: Minneapolis, MN
Posts: 406
|
Apache NETBEANS!!! Best damn program for coding out there and it's FREE!!!
See sig if you want help. I'm slow at the moment and can help if you need it. ;)
__________________
================================================== ============================ Help, HELP!.... Jane, Stop This Crazy Thing!!!!!! Stop renting software! Say NO to Rentware! Take a Bite - Applebite Media |
01-22-2021, 08:23 AM | #28 | |
Registered User
Industry Role:
Join Date: Jan 2021
Posts: 85
|
I'm hoping to get back the original account I registered in 2003. So, I've been talking via email with one of the mods and I'll see how it goes. If I get it back, I'll have to start over againl
Quote:
FYI: I've been talking to one of the admins and I'm hoping that they'll give me the account that I registered in 2003. If that happens then I'll once again need to post 30Xs in order to get private messages.
__________________
(Pornstar, Producer, Writer and Pimp) http://le-beverley.com/ (Under Construction) Email : HamiltonSteele[at]Protonmail.com - Skype - @Hamilton Steele69 / live: cid.afa877d846dcfad5 |
|
01-23-2021, 06:51 AM | #29 |
Registered User
Industry Role:
Join Date: Dec 2020
Location: NYC (Harlem)
Posts: 38
|
I use PhpStorm. It's a pretty good IDE.
You don't really need a to run PHP locally. Just create a dev area on your server and run it there. When you save a file in PhpStorm it can automatically upload it, so no need to jump through any complicated processes. And by running it on the server it will be the same exact environment as when you deploy it publicly, so no surprises down the road.
__________________
For the past 12+ years I've focused on building & running gay affiliate sites. |
01-23-2021, 06:59 AM | #30 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,217
|
It's nice, but it doesn't do anything to justify a 200eur/year license cost
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
01-23-2021, 07:17 AM | #31 | |
Confirmed User
Industry Role:
Join Date: Apr 2018
Location: Minneapolis, MN
Posts: 406
|
Quote:
Agreed I tried the demo.... It was ok but lacking.
__________________
================================================== ============================ Help, HELP!.... Jane, Stop This Crazy Thing!!!!!! Stop renting software! Say NO to Rentware! Take a Bite - Applebite Media |
|
01-23-2021, 09:54 AM | #32 | |
Registered User
Industry Role:
Join Date: Dec 2020
Location: NYC (Harlem)
Posts: 38
|
Quote:
And also notice the amount you pay goes down every year.
__________________
For the past 12+ years I've focused on building & running gay affiliate sites. |
|
01-24-2021, 04:45 AM | #33 |
Nick Baer
Industry Role:
Join Date: Jun 2005
Location: In Europe. Using high speed Internet to update my studios.
Posts: 1,338
|
I use Komodo for actual php editing, but since 2015 I have liked Bootstrap pages...
So I find a Bootstrap site package that looks interesting, then copy/paste the design elements into my Komodo .php page. And I use my MojoHost SQL, as well as Google Sheets as data sources. Like https://Coach-Karl.com or https://the-British-Beef.com or https://gay-dvds-for-women-and-men.com/ My sites are catalog pages, not member sites, and feature my self-built shopping cart, based on a plan from CCBill. CCBill is my payment processor. https://Porno-Mall.com is actually about 200 lines of .php, reading a massive Google Sheet. Yesterday, I found a "Heat Map" sample page in js. (For sales statistics for a Cam site I broadcast on.) I used Komodo to make a .php script to read data from my Google Sheet, then output the .txt file in the format that the HeatMap script needs. Which BTW, is .html and .js! Not that I really needed to do this, as I only have a couple of hours a day to broadcast during, but it is practice for something bigger in the future. Such would look more interesting for a model who is on longer hours, or on multiple shifts per day.
__________________
Made my first porno in 1986. Sold my first VHS in 1993. Did my first live Cam in 1994. Coach-Karl.com NickBaerGallery.com I host with MojoHost.com and To Buy or Sell Sites Imagine AI Content |
01-24-2021, 05:32 AM | #34 | |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,217
|
Quote:
Edit: I just installed phpstorm demo version. At a quick glance not much here that netbeans doesn't have. I'll stick with notepad++
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
|
01-24-2021, 05:46 AM | #35 |
Nick Baer
Industry Role:
Join Date: Jun 2005
Location: In Europe. Using high speed Internet to update my studios.
Posts: 1,338
|
Since 2005, I have written many hundreds of .php scripts, some with Bootstrap, .js, and more like Google Maps, using Komodo.
I edit my page, upload the file to my MojoHost account (either via FTP or the Komodo built-in FTP save option), and refresh my Chrome page. I never use a desktop environment, as what matters is the php runtime on MojoHost - with local files, SQL or Google Sheets data sources.
__________________
Made my first porno in 1986. Sold my first VHS in 1993. Did my first live Cam in 1994. Coach-Karl.com NickBaerGallery.com I host with MojoHost.com and To Buy or Sell Sites Imagine AI Content |
01-24-2021, 06:02 AM | #36 |
Nick Baer
Industry Role:
Join Date: Jun 2005
Location: In Europe. Using high speed Internet to update my studios.
Posts: 1,338
|
php.net is the source reference.
You can use StackOverflow as a reference. Use a fresh Google page to search on your php question. It will generally find a half-dozen StackOverflow threads. Usually better to not pose a direct question on SO, but rather to use Google to search for previous threads. It will also find references on W3Schools, and other industry specific forums. Reading SO threads can be a bit tedious. The OP states the question, then others jump in with wrong answers and misinformation - like here. So you do need to read all the way to the bottom, then by trial and error, find what works best for your instance.
__________________
Made my first porno in 1986. Sold my first VHS in 1993. Did my first live Cam in 1994. Coach-Karl.com NickBaerGallery.com I host with MojoHost.com and To Buy or Sell Sites Imagine AI Content |