Jump to content

SheenLim08

Members
  • Content Count

    15
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SheenLim08

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm a novice about anything web apps so I just follow the book and research what it does as I go. the book I am following is "Learning PHP, MySQL Javascript 5th edition" in the latest version of its series i believe.
  2. I corrected the wrong part but it still the same.
  3. I did that at the end of the <script> tag
  4. Hi Guys, I am following this book to learn php. Supposedly it will get return html contents from another site using async methods via XMLHttpRequest. Now here is my main page calling the async method. When I try to setup breakpoints in php on the urlpost.php the line "if (filter_has_var(INPUT_POST, 'url')) {" returns false. What am i doing on the main page causing the javascript variable "params" not being posted on the PHP/Web Server?
  5. Or whats the alternative way of debugging javascript?
  6. I have been very hesitant in learning web development because it has no many moving parts, but a month ago I started learning using the book "Learning PHP, MySQL & Javascript" by Robin Nixon on O'Reilly and I have been very happy with it. My current object is the following. 1. Read and Learn "Learning PHP, MySQL & Javascript" by Robin Nixon 2. Read and Learn "Pro PHP MVC" by Pitt, Chris 3. Create a POS/Inventory System to test out learned knowledge. You may see me post in this forum from time to time and seek help, as I learn you stuff I hope I can give back to
  7. Hi PHP Freaks, In my last post, you have known that I was studying PHP, i have reached the part of the book im reading for Javascript and I am very happy with all the things I have learned so far. However, I do need help in my remote debugging for java scripts. Setup: Laptop - Where netbeans is installed. Ubuntu Webserver - is where the project is located, this is running on a VirtualBox VM. Project: The project is deployed n the Ubuntu Webserver and everytime i run debug or start the project from Ubuntu Webserver a directory sync will start from my laptop to the
  8. I got it resolved!!!! Thanks for all of your help and more power to this community. Here is what i did (Kicken and requinix was very helpful). added phpinfo() in one of my php pages. as in (Like Kicken recommends) <?php phpinfo(); include_once "./login.php"; spl_autoload_register(function ($className) { $file = __DIR__ . '\\' . $className . ".php"; $file = str_replace('\\', DIRECTORY_SEPARATOR, $file); if (file_exists($file)) { include_once $file; }
  9. Hi kicken, I think you are correct, i ran the phpinfo() inline to the php files and ran it on apache. There is on xdebug.remote* entries on the page. How do i correct this? * Sorry for this noob question.
  10. Below is the phpinfo() from the ubuntu server. xdebug xdebug support => enabled Version => 2.7.2 IDE Key => netbeans-xdebug Support Xdebug on Patreon: https://www.patreon.com/bePatron?u=7864328 Supported protocols DBGp - Common DeBuGger Protocol Directive => Local Value => Master Value xdebug.auto_trace => Off => Off xdebug.cli_color => 0 => 0 xdebug.collect_assignments => Off => Off xdebug.collect_includes => On => On xdebug.collect_params => 0 => 0 xdebug.collect_return => Off => Off xdebug.collect_vars => Off => Off xdebug.cov
  11. Hi requinix, Sorry for the confusion, both laptop and VM does connect to the 192.168.56.1 9000 with the same output. I attached screenshot of both result. I also attached the netbeans screenshot when it does run the debug but is stuck on "Waiting For Connection". even though port 9000 is opened.
  12. telnet failed from laptop to laptop..hmmm..this is the result when I telnet to my laptop, and it stays that way until i close the terminal tab. I am doing this when the netbeans debugger is running (when the port 9000 is opened). sheenlim08@linuxmint-ltp:~/netbeans-11.1/netbeans/bin$ telnet 192.168.56.1 9000 Trying 192.168.56.1... Connected to 192.168.56.1. Escape character is '^]'. I am not sure how to answer the 2nd question. URL to the apache2 virtual host is www.phptutorial.com, the ip resolves to 192.168.56.101. I edited the laptop's hostfile /etc/hosts so that www.ph
  13. Hi requinix, you are right. telnet connection from my UbuntuServer VM to my laptop:9000 is not successful. The laptop and ubuntu server's ufw service is stopped. I did notice that tcp6 (i guess its ipv6) is listening to :9000 but not the tcp (ipv4): sheenlim08@linuxmint-ltp:~/netbeans-11.1/netbeans/bin$ netstat -tulpn (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program na
  14. Hi Guys, I am learning PHP via Netbeans IDE in LinuxMint because it just feels closer to Visual Studio which I used in the past, i am trying to lean more with open source technologies. I spin up a VirtualBox and installed apache2 on ubuntu. I created the netbeans project from my linuxMint to the virtualbox apache2 server (remote server) and configured the virtual directories on the apache2 server. I can the test project successfully, however I cannot seem to debug via Netbeans like toggling a breakpoint to view variable values. I found on the internet i need to configure xd
  15. Thanks Barand, adding the attributes worked for me. I also searched the PDO->setattribute on https://www.php.net/manual/en/pdo.setattribute.php on the PHP manual to have a better understanding about the attribute values. Thanks for your help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.