Forum: PHP 7 Days Ago |
| Replies: 1 Views: 176 Just got a message from different forum and solved. I didn't know it could be this simple.
Put @ before 'mysql_connect'
@mysql_connect |
Forum: PHP 7 Days Ago |
| Replies: 1 Views: 176 Hi,
How do i prevent printing "Warning" bit of connection error? I only want see my error message on screen.
Note: I deliberetly enter wrong Host IP to see the message thou.
Warning:... |
Forum: PHP 8 Days Ago |
| Replies: 2 Views: 199 Sorry for not adding my code but your code helped me update my code and solved the problem.
Thanks very much |
Forum: PHP 8 Days Ago |
| Replies: 2 Views: 199 Hi,
I have two classes.
I user throw new Exception("Error"); in first class.
I want to catch that error message in second class with "try catch".
How do i do it?
Thanks |
Forum: PHP 9 Days Ago |
| Replies: 3 Views: 238 I read about both and netbeans is preffered in most but takes up a lot of memory thou! |
Forum: PHP 9 Days Ago |
| Replies: 3 Views: 238 Hi,
I need a php editor where i can see what variables, class names, function names are already in use and if it is possible (not necessary) debugger.
WinXP: ?
Ubuntu: ?
What editor do you... |
Forum: PHP 12 Days Ago |
| Replies: 5 Views: 277 exit("Database connection error"); is nice one!
Thanks guys |
Forum: PHP 13 Days Ago |
| Replies: 5 Views: 277 Hi,
I just want to find out which is better?
Thanks
......
echo "Database connection error";
exit; |
Forum: PHP 15 Days Ago |
| Replies: 2 Views: 134 Hi,
I want to learn ZEND Framework. I have checked the courses and they are very expensize. My question is, if I buy a book for ZEND, do you think i could learn it. I know PHP5 and OOP.
I am... |
Forum: PHP 22 Days Ago |
| Replies: 2 Views: 190 Hi,
Is there any chance of resizing gif, tif, bmp, jpg, png
I know that we can jpg files.
Thanks |
Forum: PHP 26 Days Ago |
| Replies: 10 Views: 594 I never stored an image in my database before but wanted to know how it is done. Thus, i did this example. I normaly store images in folders and then store paths to them in database.
Anyway, I... |
Forum: PHP 26 Days Ago |
| Replies: 10 Views: 594 Guys do you mean, storing an image in database is bad design? |
Forum: PHP 27 Days Ago |
| Replies: 10 Views: 594 Hi,
I want to show the image as well as printing the id, name, time etc with it. How can I do it?
First code prints all the data as it is without showing image.
Second code shows image... |
Forum: PHP 29 Days Ago |
| Replies: 1 Views: 236 Hi,
I read a bit about both but I need to see your opinions about this.
Are cURL and xmlrpc used for same purposes, are they same thing?
Thanks |
Forum: PHP 34 Days Ago |
| Replies: 2 Views: 364 Thanks for usefull info.
I remember I had strange header, header, header errors in Ubuntu when I run a project. Same project didn't give any errors in WinXP on Wamp.
Seems to it is all about... |
Forum: PHP Nov 18th, 2009 |
| Replies: 2 Views: 364 Hi,
I read this ob_start() but want a bit cleaner explanation.
why we use it, should we use it, what happens if we don't?
I have never used it and won't use it until I understand it is best... |
Forum: PHP Nov 17th, 2009 |
| Replies: 4 Views: 271 Hi,
Code below returns this.
Array
(
[0] => 3
[id] => 3 |
Forum: PHP Nov 6th, 2009 |
| Replies: 0 Views: 233 Hi,
nusoap doesn't support php 5.3 therefore, It is not usable for me.
Is there any SOAP+PHP example for me to be run on my localhost rather than pointing/accessing wsdl files of other websites?... |
Forum: PHP Nov 6th, 2009 |
| Replies: 20 Views: 504 Ok guys thanks for your very helpful information. Now i go and read about AJAX.
Thanks |
Forum: PHP Nov 6th, 2009 |
| Replies: 20 Views: 504 Hi,
index.php posts data to process.php
I want users to remain in index.php when they summit their form. I have seen this in some websites but don't know hot it done.
Can anyone help me?
... |
Forum: PHP Oct 31st, 2009 |
| Replies: 4 Views: 242 I mean I'll develop a software with VB6 or VB.NET to post data from windows form to PHP website where data will be capture into MySQL database.
I know we can do this with cURL sending data from... |
Forum: PHP Oct 31st, 2009 |
| Replies: 4 Views: 242 Hi,
X user uses his/her windows/Linux based software to publish content (job, item to sale or rent etc) in my PHP website. Something like posting data from a computer based software to website OR... |
Forum: PHP Oct 14th, 2009 |
| Replies: 7 Views: 408 Thanks to ShawnCplus. Solved.
<script type="text/javascript">
function submitForm(val) {
document.getElementById('submittedName').form.submit();
}
</script>
<form action="process.php"... |
Forum: PHP Oct 12th, 2009 |
| Replies: 7 Views: 408 Hi,
We can code this way to print something if Exit button is clicked.
<form action="process.php" method="POST">
<input type="hidden" name="hiddenName" value="Jolly" />
<input type="submit"... |
Forum: PHP Sep 26th, 2009 |
| Replies: 3 Views: 387 Solved.
inc.header.php
<?php
session_start();
?>
index.php |
Forum: PHP Sep 25th, 2009 |
| Replies: 3 Views: 387 This is content of in.header.php
if(!isset($session_id) || empty($session_id)) {
session_start();
$_SESSION["Inputs"]=array();
}
This is index.php which also has form objects that POSTs... |
Forum: PHP Sep 18th, 2009 |
| Replies: 16 Views: 786 OK. Now i can see them all as ubuntu with this one.
ubuntu@ubuntu:~$ sudo chmod 777 /var/www/toy
Before i mark this as solved i just want to make sure that this command doesn't expose security... |
Forum: PHP Sep 17th, 2009 |
| Replies: 16 Views: 786 Hi digital,
sudo chown www-data /var/www/toy/ solved the problem. I can backup with php. However, i also want to be able to see the backup files stored in that folder. Now i cannot see because... |
Forum: PHP Sep 17th, 2009 |
| Replies: 16 Views: 786 Hi digital,
I have done the tests. I give you the result i got. It may be useful info for you to direct me what to do.
Thanks
<?php
$result = file_put_contents('/var/www/toy/test.txt',... |
Forum: PHP Sep 16th, 2009 |
| Replies: 16 Views: 786 I have this info in 'User Settings'
Name-------Login name--------Home directory
veledrom ubuntu /home/ubuntu (this is active-bold and black coloured)
root ... |
Forum: PHP Sep 15th, 2009 |
| Replies: 16 Views: 786 Hi digital,
I don't know how to check if PHP has R+W privilages !!!
No password for MySQL. I didn't set it.
Thanks |
Forum: PHP Sep 11th, 2009 |
| Replies: 16 Views: 786 Still doesn't work. Also no error for echo exec($createBackup);.
I changed the path to /usr/bin/mysqldump -u root -h localhost toy > /var/www/toy/toy-11-09-2009_10:03:41.sql but, still doesn't... |
Forum: PHP Sep 10th, 2009 |
| Replies: 16 Views: 786 Hi,
I am trying to backup one of my Mysql database with a PHP script.
<?php
$host="localhost";
$database="toy";
$username="root";
$password=""; |
Forum: PHP Sep 10th, 2009 |
| Replies: 1 Views: 396 Hi,
What is the difference between installing Wampserver and Tomcat Apache?
Wampserver installs : PHP, MySQL, Apache Server
Tomcat Apache: Does it only installs Apache Server? If yes i... |
Forum: PHP Sep 3rd, 2009 |
| Replies: 6 Views: 424 No it doesn't work. I realised that this problem starts as soon as after first HTML code. In this case error line is <?php
after <body> tag. |
Forum: PHP Sep 2nd, 2009 |
| Replies: 6 Views: 424 Yes echo "no"; is the right one.
You can't echo anything to the browser until after headers are sent.
What shall i do in this case then? |
Forum: PHP Sep 2nd, 2009 |
| Replies: 6 Views: 424 Hi,
I use this code in Windows (wamp), it works fine. When i use it in Ubuntu it generates this error "Warning: Cannot modify header information - headers already sent by (output started at... |
Forum: PHP Aug 29th, 2009 |
| Replies: 6 Views: 486 Hi,
I have never use CMS before and want to learn. For a beginner, do you think Joomla would be easy for me to learn or Drupal?
Thanks |
Forum: PHP Aug 27th, 2009 |
| Replies: 5 Views: 261 |
Forum: PHP Aug 27th, 2009 |
| Replies: 5 Views: 261 Sorry Pritaeas, they didn't work. It doesn't generate any errors though.
I use Wampserver 2.0 with Apache 2.2.1 and PHP 5.3.0
Any other ideas? |