52,566 Archived Topics
Remove Filter ![]() | |
Hi,, Is it possible to get IP of server where the script is running. I used following code <?php echo $ip=$_SERVER['REMOTE_ADDR']; echo $_SERVER['SERVER_ADDR']; ?> But it outputing as "127.0.0.1". Is there any way to print IP ? Web Development client-server php | |
Hi :) I got a problem with 2 foreach. When i execute it the result repeats X times. This is my code: $tab1=array('name','firstname','age'); $exceptions=array('hide','submitForm'); $test=''; foreach($tab1 as $val){ $test.=$val.'='; foreach($_POST as $key=>$value){ if(!in_array($key,$exceptions)){ $test.=$value.','; } } } echo $test; This is the result obtained: name=Smith,John,30,firstname=Smith,John,30,age=Smith,John,30, I would like to obtain … Web Development php ![]() | |
Hi all, I have a PHP script that takes a string and lists all its permutations, but ONLY based on its length. So for instance, let's just say we had the word "racecar". Yes, it would list all permutations of the 7-character word "racecar" such as "acrerac", etc. but NOT … Web Development php ![]() | |
hi fellas, need some brilliant idea, i want to get the firstname,lastname,middlename of the employee below using javascript. ________________________ Atty.Jan Rex Camvarijan Rex Uy Cambarijan Rex Cambarijan Rex Ma.Rex B. Cambarijan ||| Rex del Rosario __________________________ what i really want is how could i separate lastname firstname middlename in those … Web Development javascript php | |
Hi all. I have been working on a action script and finally got it working. I am totally lost of how to write my PHP email codes for when the person press submit all the information they fill in is sent to me via email could someone help me please. … ![]() | |
Hi. We had a website designed and it is hosted by Inmotion Hosting. I have an excel spreadsheet that I need customers to view on a web page. There are 10 different spreadsheets what is the easiest way for me to do this? Do I just create a link to … Web Development php ![]() | |
Well! So here is what my problem is. Initially, I started my blog (running of wordpress cms) with a .asia domain. Now, I believe any .com domain would attract more people than any domain name that is targeted to one continent. So, I purchased a domain name with same name … Web Development client-server http-protocol web-server | |
Hi - I am working on setting up a calendar from Google. I'm curious. Is it possible to setup the calendar to use the colors I choose with a layout that fits my needs (more of an Agenda than a actual calendar)? I've spent about all day reading about the … Web Development api cms google google-api php ![]() | |
Hi I have created a small program that enables the user to upload a phote and get an email back with a watermark on it. Now the watermark is places in the bottom border with no margin, so I was wondering if anyone knew how I could make a small … Web Development php | |
Hello, I'm designing my own website, I want to create online assignment submission system which allows to students to upload their assignment through this webpage,and receive feedback immediately via the browser.The teacher can recieve student documents and grade the student for his assignment. Since Im working on my localhost(XAMMP), let … Web Development file-system html-css mysql php | |
there is some problem fetching data from csv file to database: code, database,csv data and error image is attached please mention the problem. thanks in advance :-) php code: <?php /********************************/ /* Code at http://legend.ws/blog/tips-tricks/csv-php-mysql-import/ /* Edit the entries below to reflect the appropriate values /********************************/ $databasehost = "localhost:3307"; $databasename … Web Development file-system php | |
I have a url that includes %25 (/CHIPDRIVE%25AE-micro-pro-SCR335_detail_8_196.html) and I am trying to use a Redirect to redirect it to the new URL. Currently using a Redirect 301 and it is currently not working. Web Development php | |
Hi hope someone can help I have an array with daynames in dutch but when i use the day zondag it is not workin and i don't know why Can someone help me to make it work here is the code if($row3['geboortedatum']!= "0000-00-00") { $rss = $row3['geboortedatum']; $dayNames = array( … Web Development php | |
hi! I'm pretty new to php and i just want to ask how to update tables in mysql using php? here's my code snippet $product_code = $_POST['pCode']; $submit = $_POST['submit']; $user = $_SESSION['username']; $quantity = $_POST['quantity']; $price = 300.00; $date = date("Y-m-d",mktime()); require('connect.php'); if($submit) { if($product_code) { mysql_query("INSERT INTO `order` … | |
Somehow I am unable to fire the onerror event or get the code in the onerror to work. This code is an attempt to collect a sequence of images in an array. I am using onerror event in order to mark the end of sequence and thus terminate the loop. … Web Development image javascript | |
Is it possible to disable right click on webpage and disable save as option of browser's file menu?I have searched on google but i didnt get the working code.If possible then please tell me the way. Web Development javascript | |
I am working on a project in which video streaming is required .In this project i used flowplayer.Is it possible in flow player to hide the video url? I am also needed to view pdf files in iframe.In it,is it possible to hide url of pdf file? | |
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in G:\xampp\htdocs\Thorndon.php on line 57 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, … | |
Howdy Everyone, I've been banging my head against this for a bit now and have been reading all kinds of things - but, everything I try has failed. So, I thought I'd ask. I've just begun working with Javascript/Ajax .. in the last day to try and accomplish a task … Web Development javascript | |
Hey everyone, I'm using sessions in my application which retrieves the questions and answers asked by users. The tricky part here is how I can know how to allow users that they can edit and delete their own posts. As far as it is concerned, I have got this idea … | |
Hi, I'm wondering how to create a DIV dynamically. Basicly, I have two labels, and depending on which one is clicked, I want some code to appear inside an existing DIV. Obviously, I will need to do this using javascript and the onClick event. To make things even more complicated, … Web Development javascript | |
Hi all, i am trying to run the following HTML page which is the memebers area after the user login is sucesful the session is registered please check it and help me:- HTML code:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <style type='text/css'> /* … | |
Hello, I am trying to import mysql backup from the old computer to the new computer and these error appears: Pencarian SQL: -- -------------------------------------------------------- -- -- Table structure for table `nafqc_usergroups` -- CREATE TABLE IF NOT EXISTS `nafqc_usergroups` ( `id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', … | |
Hi this is scorpionz.. i am facing a problem for the last 5 hours as URL file-access is disabled in the server configuration Description: I have a project with path c:/xampp/htdocs/mysite/config.php Thats my configuration file name. I have a folder in root which is getting connection c:/xampp/htdocs/mysite/folder/testpage.php now when I … Web Development file-system php | |
Hi this is scorpionz: I need to know how to insert PHP block in database using PHP, because i am generating random tables. So i need that to insert: Here is the query: [code] <?php $sql_insert_revisions = 'INSERT INTO node_revisions(nid,vid,uid,title,body,teaser,TIMESTAMP,FORMAT) VALUES ('.$nid_ins.','.$vid_ins.','.$user_id.','.$ad_title_view.', '"<?php $block = module_invoke('block', 'block', 'VIEW', 66); print … Web Development php | |
Hello, I am trying to import mysql backup from the old computer to the new computer and these error appears: Pencarian SQL: -- -------------------------------------------------------- -- -- Table structure for table `nafqc_usergroups` -- CREATE TABLE IF NOT EXISTS `nafqc_usergroups` ( `id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', … | |
Hai everybody. if rotate =true how to disbale draggable function this is my code but rotate working fine. draggable function not disable and enable anybody plz help me. $('.planspace-image').draggable({}); //.resizable(); $('.upload_pic') .resizable({ start: function(e, ui) { }, resize: function(e, ui) { }, stop: function(e, ui) { //alert('resizing stopped'); } }); … Web Development javascript | |
I am having trouble with this code: <!DOCTYPE html> <html xmlns:fb="http://ogp.me/ns/fb#"> <body> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <fb:like href="http://www.MyWebsite.com" send="false" layout="button_count" width="200" show_faces="false" font="verdana"></fb:like> </body> </html> The … Web Development php social-media ![]() | |
Hi People, Got a small issue...... And don't know exactly where the problem is. I'm trying to implement Online Manga Viewer in my site. I've tried this as a stand alone page and it works fine. What this viewer does is... There is a select box... Where I've got to … Web Development php | |
Hi all, ive got a big question about conducting mysql_queries.. i have a schedule program that needs to sort through and pick the records that apply.. the date will change, and used a php date() formatted to mysql date and pick out the ones records that are active vers inactive. … | |
Hi I work on a 'play play server' on my pc, for lack of a real server, for this I use WampServer, I have recently updated my version. I suspect its running PHP5 - and Im used to PHP4 behaviour... Most of the pages I use forms on have the … Web Development php | |
i try different method to hide the "hide" div if status result is "E" i have four status : R ,A , I and E,, if status is E then show the "hide" div other vise hide it,, you people suggest me something, thanks in advance,,, code is here : … Web Development html-css javascript-jquery php session | |
Hello, Can anyone help me in this, What i'm trying to do is that i try to break my page in case if i have too much record. But what happen is when i click on 'next' the record doesn't shows because the date that i select had been cleared … Web Development asp html-css javascript-jquery vbscript | |
I'm a newbie here trying to figure out why my simple php code is not working inside html. Files with .php extension however works fine.The page is just blank. I modified the following line "AddType application/x-httpd-php .php" in http.conf to "AddType application/x-httpd-php .php .html" I tried adding these lines to … ![]() | |
I have one table as movie. In that i have one field as 'image' in which i want to store the images. In my mca project, I m trying to make admin panel. For this when administrater is going to add movie details, at that time i want to store … ![]() | |
I want to make an online measurement converter for my company’s intranet page. I am torn about how to handle the converting and wanted some opinions. Basically the user would enter some random measurement and select what type of measurement that is and what they want it converted to. For … Web Development javascript | |
include '../../snippets/connect.php'; $orgid = $_GET['orgid']; if(!isset($orgid) || empty($orgid)){ die("Please select your image!"); }else{ $query = mysql_query("SELECT orghomepic FROM org_home_pic WHERE orgid='".$orgid."'"); $row = mysql_fetch_array($query); $content = $row['orghomepic']; if (empty($content)) { **$image = imagecreatefromjpeg('http://www.ineed.org.uk/dev/media/images/nohomepic.jpg'); header('Content-type: image/jpg'); imagejpeg($image);** } else { header('Content-type: image/jpg'); echo $content; } } So this was working previously … | |
Hi, I want to upload files from one remote server to another using CURL I used following to upload a text file in "localhost/uploads/example.txt" to another machine http://192.168.0.202/example/ <?php $ch = curl_init(); $data = array('name' => 'Foo', 'file' => '@localhost/uploads/example.txt'); curl_setopt($ch, CURLOPT_URL, 'http://192.168.0.202/example/'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch); … Web Development php | |
Dear Users, I've been trying out with the JavaScript code to hide the textarea when a radio selection-value fulfilled the textarea will hide. So far I can't get the script right; maybe these forum can share me some information to correct my code. **JavaScript function to Hide:** function disable() { … Web Development javascript | |
hi, i already reach to the end of my project, however there are still minor features i want to add in for the upload. When the user upload their pictures, i need to create a folder for that particular user and store the picture inside, means different user for different … Web Development php | |
Hi , I am not able to start "apache tomcat 7.0.22" I have double clicked on "startup.bat" file in the bin folder of the apache tomcat folder after that i typed http://localhost:8080/ in my web broswer but i get the following error " Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the … | |
Dear all, I have a problem to count the total of receiving items.. but when I run this code I output of the total displayed "1".. not "5"...here my code.. hope someone can help me to count the total of receiving.. <?php include 'connection/db_connect.php'; ?> <form name="form1" method="post" action=""> <table … Web Development php | |
Hi.. **I want to auto login in my client site which is secure**. I have to enter my username and password every time i logon to site. can any one give me code to auto login to site which is secure and most important think is that i dont have … Web Development | |
**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" … Web Development apache peer-to-peer php | |
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. Web Development php | |
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. Web Development php programming-construct ![]() | |
Are there any open source video hosting complete websites? Web Development open-source video web-server | |
<?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 … Web Development php | |
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 … Web Development java php web-design |
The End.