jazzman1
Staff Alumni-
Posts
2,713 -
Joined
-
Last visited
-
Days Won
12
Everything posted by jazzman1
-
PHP newbie having trouble with php5 on debian 7.2
jazzman1 replied to phantom21's topic in PHP Installation and Configuration
It should be inside /usr/lib/apache2/modules/ Instead a find command try run a locate. locate libphp5.so- 16 replies
-
- php5
- debian 7.2
-
(and 1 more)
Tagged with:
-
Use mysql_error() or other mysql* error functions you should get a syntax error.
-
MAMP/Apache Server on localhost running very slow
jazzman1 replied to frshjb373's topic in PHP Installation and Configuration
How do you try to reach the local server, by ip address or domain name? Open up /etc/hosts with your text editor and try to comment out (just for a test) all adobe domain name lines to this file, restart apache and try again. The better way for me here is to setup a new virtual host in apache ip based, which means that you would have a different local ip address for your project - http://httpd.apache.org/docs/2.2/vhosts/examples.html -
Set a proxy connection in your browser for this URL (localhost) to port 82 instead the default one 80. Then, you will be able to reach this localhost at addresses: http://localhost:82/test/test.php OR http://localhost/test/test.php
-
MAMP/Apache Server on localhost running very slow
jazzman1 replied to frshjb373's topic in PHP Installation and Configuration
What about if you try to make a connection to localhost without the browser? Can I see the outputs of: cat /private/etc/hosts or cat /etc/hosts -
@Ch0cu3r, I think, he/she wants to apply rewriting rule from space1.php?name=variable to space.php?name=variable. The easiest way is to get the query string after the file's extension. Assuming, the project directory is named: project. RewriteEngine on RewriteBase /project/ RewriteCond %{QUERY_STRING} ^name=([a-zA-Z]*)$ RewriteRule ^space1\.php$ space.php?name=%1 [R=301,L]
-
Problem with picture upload after upgrading PHP to ver.5.3.27
jazzman1 replied to Tomislav's topic in PHP Coding Help
I still don't understand which one of following (bold) statement is true and which one is false. -
Problem with picture upload after upgrading PHP to ver.5.3.27
jazzman1 replied to Tomislav's topic in PHP Coding Help
Well, turn on the error_reporting() function on the top of the script and tell us if you get errors with that cms. -
Blocking access to admin Codeigniter panel via .htaccess
jazzman1 replied to fluidsharp's topic in Apache HTTP Server
Assuming, the root web tree structure is like: / - web root /admin /admin/main Put in next code inside /admin directory. RewriteEngine on RewriteBase /admin/ RewriteRule ^\/?main\/.*$ - [F,NC] You can also specify which type of files do not allow to be called: RewriteEngine on RewriteBase /admin/ #RewriteRule ^\/?main\/.*$ - [F,NC] RewriteRule ^\/?main\/.*\.(jpg|jpeg|gif|png|bmp|php|pl)$ - [F,NC] -
Need help stopping a form from posting if no file attached?
jazzman1 replied to A JM's topic in PHP Coding Help
Use javascript to disable (to be non-clickable) the submit button if the attachment of the file is not present on the form, after that validate the form on the server side. -
Where is the script of the file named: mail.php?
-
Then....where did you define $email2 variable in the script above? Before to call if(mail($email2,$subject,$message,$headers) can you echo it? echo $email2; exit; if(mail($email2,$subject,$message,$headers)
-
Do you get a correct data in the variables ($email2,$subject,$message,$headers) before sending the info by mail function? Are you able to use the mail function as well?
-
Just ask, phone or email them (your current hosting provider) why that happened and how to solve this issue? You can switch of course your hosting provider to GoDaddy or HostGator. I don't have any problems with them many years.
-
Then mail them, because I'm going to divine what could to cause the problem. I did not see anything wrong in the headers.
-
Is there a way to control what ports are open or closed for your hosting plan? Port 25 is open, close it, you don't need to be open unless you have some application that is setup to send email notices from the hosting server.
-
Vasile, send me an email at tuparov86@gmail.com to check the mail's header.
-
What's your domain name now?
-
Try with the code that I provided you above, then switch to swiftmaler, it should be OK.
-
Turn on php error_reporting on the very top of the file (after the <?php openning tag) Does the URL of this action is correct - action="<?php echo $PHP_SELF; ?> Try, <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-
Why are you using their domain name then -> http://vasilstojanoski.atspace.eu This domain is hosting by - www.runhosting.com
-
It has nothing to do because you don't have a own domain name registered by you! Perhaps, you're using some free shared hosting plan, right?
-
Example 1: <?php $start_TimeStr="2013-10-08 08:29:52"; $end_TimeStr = "2013-10-08 08:32:46"; $Duration = strtotime($end_TimeStr) - strtotime($start_TimeStr); echo $Duration; // 174 sec
-
Try to run next code and tell me what you get: <?php $from = "From: jazz <jazzman@jazzman.com>"; $to = "you@yourdomain.com"; // your gmail account $subject = "Hi! "; $body = "TEST"; if(mail($to,$subject,$body,$from)) echo "MAIL - OK"; else echo "MAIL FAILED";