39,323 Topics

Member Avatar for
Member Avatar for phpperl

**I have a string** $string =" HTTP/1.1 200 OK Connection: close Date: Tue, 25 Sep 2011 14:09:35 GMT Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Server: Apache-Coyote/1.1 Content-Length: 12881 Content-Type: text/xml;charset=utf-8 Client-Date: Tue, 25 Sep 2012 14:09:35 GMT Client-Peer: 123.46.53.940:8080 Client-Response-Num: 1 <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Header/> <soap-env:Body> <PlexViewResponse Command="rtrv-ngfs-subscriber-v2" …

Member Avatar for cereal
0
121
Member Avatar for daniel36

first thank you for solving privious problems. I am working on codeigniter . i am making signup form in which countries dropdown list is required. i am unable to make this drop down list with table country in my database.Can any one help me.

Member Avatar for wesley1263
0
4K
Member Avatar for andyy121

if($username&&$password) { $connect = mysql_connect("localhost","root","") or ("Couldn't connect!"); mysql_select_db("phplogin") or die ("Couldn't find db"); $query = mysql_query("Select * FROM users WHERE username='$username'"); $numrow= mysql_num_rows($query); i just wont to know the IF statement when it stars what is his function in the code.

Member Avatar for diafol
0
131
Member Avatar for prajwalk73

<?php /********************************************************************************* * Filename: index.php * * PHP 4.0 + MySQL + AJAX *********************************************************************************/ //------------------------------- // index CustomIncludes begin include ("./common.php"); include ("./Header.php"); include ("./Footer.php"); // index CustomIncludes end //------------------------------- session_start(); //=============================== // Save Page and File Name available into variables //------------------------------- $sFileName = "index.php"; //=============================== //=============================== // index PageSecurity …

Member Avatar for prajwalk73
0
231
Member Avatar for daniel36

Can i restrict a file to direct download.suppose in my domain i am having a upload folder in which i am having a exam.pdf file then it should not be downloaded by accessing url http://www.mydomain.com/upload/exam.pdf . If it is possible then please tell me the way.

Member Avatar for sDJh
1
106
Member Avatar for ssfox

Hello everyone, Im new in web development, Im using localhost (XAMMP),I'm trying to make my website which basically allows users to compile and run their submitted java program on my server(my web page).Essentially, I want when the users click a button(upload) they upload file from file source(e.g desktop or anywhere …

Member Avatar for ssfox
0
147
Member Avatar for eburlea

Hello, Is it possible to use a PHP code to create a drop-down list that automatically inserts a word from MySQL table after writing a character? For example when I type "a", all the entries beginning with "a" show in order, then I type "n", then all entries begins with …

Member Avatar for eburlea
0
587
Member Avatar for HasNor

Dear experties, I have a problem to insert checkbox value which is checked by user into multiple database..when I run this code, only one row inserted into database, but I had checked more than 3 checkbox.. Here is my code, please help me.. form.php <form id="form" name="form" method="post" action="dbase.php?id=<?php echo …

Member Avatar for harshita317
0
156
Member Avatar for Venom Rush

I'm trying to create an xml document without converting html entities but when I create and save the file with DOMDocument the < and > characters are converted to &lt; and &gt; so trying to wrap copy within <![CDATA[]]> is proving problematic. Example of my code below: // Initiate the …

Member Avatar for Venom Rush
0
975
Member Avatar for rotten69

Hey everyone, I was doing a search on good tutorials on how to use the mail function. I thought it would be as easy as what PHP api tells me how to use it. I stored the value of mail() in a variable if the variable is true then I …

Member Avatar for rotten69
0
241
Member Avatar for rotten69

Hi everybody, I'm wondering where I went wrong. The idea is I'm trying to get data from the database and display in this format Question 1: Answer: Answer: Answer: Answer: Question 2: Answer: Question 3: No answers etc.. foreach($posts as $post){ $id = (int)$post['id']; $comments = get_comments($id); //getting the answers …

Member Avatar for rotten69
0
350
Member Avatar for gilgil2

Hi I want users to be able to upload new images that overwrite old images but I am struggling. The original upload and naming works fine but I want any new images to have the same name, so I unlink the original before uploading the new image, is this the …

Member Avatar for gilgil2
0
178
Member Avatar for pattmorter

What's up everyone. A few months ago I followed a website tutorial on how to make a custom CMS and it worked for me on my web server. Well I just recently installed MySQL + phpMyAdmin on my laptop under the localhost of my machine (i have a mac if …

Member Avatar for jkon
0
207
Member Avatar for rajilakshmi

Hi, I am creating an application using php. I want to send a mail from my application with attachments. I get the from-address and to-address from the user at run time. Then, how i set the SMPT, port number and other details of the from-address in phpmailer class or smtp …

Member Avatar for pritaeas
0
150
Member Avatar for kny_jay88

# Hello,# ##I'm new at this forum.The problem is that my footer is gone when i click the submit botton because of the die function in my php script. I want it to prompt for empty fields and if not empty, it will insert values into my database. I found …

Member Avatar for kny_jay88
0
355
Member Avatar for dre31ex

hey guys i am trying to send email using php mailer but the problem i think i have is the smtp whenever i changed in php.ini is not updated in the phpinfo (it still shows localhost) so i assume that i would have a problem connecting to a host and …

Member Avatar for dre31ex
0
110
Member Avatar for vijayram

Hi everybody, I have a container (DIV) which would be resized using the correct aspect ratio. favorite Now I would like to dynamically resize all the elements inside that container using jQuery, anybody plz help me. $('.movable') .draggable() .resizable(); $('.moveable') .resizable({ start: function(e, ui) { alert('resizing start') }, resize: function(e, …

Member Avatar for LastMitch
0
515
Member Avatar for .kaine

I'm Running xampp on windows 7 64 bit Proffessionial, I've searched google and everywhere, I just keep finding wanna be form builders that are super lame... I'm trying to host this form for our intranet, ( internal network ). My question is what do I need to replace in here …

Member Avatar for jacob.lemelincarrier
0
217
Member Avatar for erikadiaz000

I am using this code and when i try to insert the a value in the 4th field after tdno, it doesn't insert all the values in the database. please help! <?php error_reporting (E_ALL ^ E_NOTICE); //connect to the database $connect = mysql_connect("localhost","root","root"); mysql_select_db("rizal",$connect); //select the table // if ($_FILES[csv][size] …

Member Avatar for LastMitch
0
159
Member Avatar for tapuwa2002

Am trying to get my script to read in a directory and search for a a file, if the file doesnt exist it should print"that it doesn't exist" then add Notinfolder in an array. Please assist <?php $connection = ftp_connect($server); $login = ftp_login($connection, $ftp_user_name, $ftp_user_pass); if (!$connection || !$login) { …

Member Avatar for tapuwa2002
0
1K
Member Avatar for scales

i added this code to my index.php (joomla ja-purity file 1.5) <?php if($this->countModules('user6')) : ?> <table class="nopad user6user7"> <tr valign="top"> <?php if($this->countModules('user6')) : ?> <td> <jdoc:include type="modules" name="user6" style="xhtml" /> </td> <?php endif; ?> <?php if ($this->countModules('user6') and $this->countModules('user7')) : ?> <td class="greyline">&#160;</td> <?php endif; ?> <?php if ($this->countModules('user7')) : …

Member Avatar for scales
0
464
Member Avatar for bettybarnes

I'm brand new to php with ldap. I have this problem weeks ago. The company I'm working in assigned me to test their resource management system, they want me to use the dummy users on the database, but whenever I try to use them, I can't access the system, but …

Member Avatar for jstfsklh211
0
116
Member Avatar for gilgil2

Hi, I am uploading images to a server to be used as profile pics similar size to those on facebook, however I don't know much about images etc. so could someone suggest the maximum size I allow people to upload? I want the pictures to be high quality but not …

Member Avatar for cereal
0
98
Member Avatar for kny_jay88
Member Avatar for kny_jay88
0
225
Member Avatar for kishoresai438

Hi Team, This is my first thread from Daniweb.. I observed Daniweb is great support for PHP Developers... I am planning to integrate this Tiny Editor in my website for mathematical calculations. As per my observation Our math expression images saved in Codecogs server. In future is there any trail …

Member Avatar for pritaeas
0
162
Member Avatar for oded.taizi

hello, i have this code $divToSubjectShow = "<div id='subjC".$subId."'><div class='boxC'>".$subName."<span onclick='delTempSubject(subjC".$subId.")'>X</span></div></div>"; to store in div innerHTML with js and i get this error > missing ) after argument list any idea?

Member Avatar for pritaeas
0
29
Member Avatar for mmcdonald

Sorry people but I'm really struggling with this and I don't know why... but still. I have a stored unix timestamp. [a] I have the current timestamp not in unix format (YYYY-MM-DD HH:MM:SS) [b] I need to: 1) convert the current timestamp [b] into a unix timestamp 2) I need …

Member Avatar for leviathan185
0
271
Member Avatar for raj-uk

Hi All, we need PHP season date calender, which mean if we enter like 25-DEC-12-25-APR-13 the calender only alow user to pick date from the season date only. please give example link, or full code, thanks

Member Avatar for diafol
-2
352
Member Avatar for LastMitch

Hi I'm trying to learn how to create a random page using `rand() function` but also using the `$num` to `switch` each page. Is there a way to click a button? I only used the `Refresh Button` on Firefox. Plus it's not really display the data but only page name …

Member Avatar for LastMitch
3
113
Member Avatar for mmcdonald

Hi all, I have two dates: 1 = $last_check = YYYY-MM-DD HH:MM:SS (A SQL value) 2 = $datetime = YYYY-MM-DD HH:MM:SS (Called using PHP) How can I take away 1 from 2 and convert the minutes and seconds left over into seconds? Basically I'm running an uptime counter script that …

Member Avatar for diafol
0
267

The End.