Skip to content

Tag: linux

PHPMailer GoDaddy Server SMTP Connection Refused

The other day I was experiencing some problems with my GoDaddy hosted site. I called their tech support, and the person that I spoke with suggested that my problems were related to the fact that I was on a Windows box and would be better served on a Linux box. Having no opinion on this, I agreed and they swit…

Error running script.php: Port 9000 is busy

I set php.ini and Debug config in phpstorm. Trying to debug php script outputs in phpstorm Event log with: end of php.ini: Debug port in pStorm is also set on 9000. netstat -na outputs with: What if I set to other port. eg setting it to 10001 seems to do the job. Or just how to make it work properly.

Undefined variable argc PHP

I’m trying to execute this code: But I’m getting the following error: PHP Notice: Undefined variable: argc in /home/me/test.php on line 15 I thought that $argv and $argc were global variables. How can I get rid of this error? I’m running this from command line. Answer Add a after Those varia…

Where can I find php.ini?

A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz’s and built them as instructed (instead of rpms and what-have-you). And all was fine. Today I need …

Godaddy cron job setup for running php script

can you help me setup cron job on godaddy webhosting? I have php file that i need to run, it is located in cron subdirectory (so address is http://test.com/cron/file.php). What do i need to write in command input field, so this file is runned? Answer NOTE: GoDaddy has been migrating all hosting packages over …

Running php script (php function) in linux bash

How we run php script using Linux bash? php file test.php test.php contains: Answer From the command line, enter this: Make sure that filename.php both includes and executes the function you want to test. Anything you echo out will appear in the console, including errors. Be wary that often the php.ini for Ap…