3,436 Topics

Member Avatar for
Member Avatar for benqb

In my phpcode [CODE=php] <?php $out = array(); $execute='./test.py'; $name = "?key=1234&path=host"; exec ("$execute $name", $out); foreach ($out as $value) { echo "$value<br />\n"; } ?>[/CODE] In test.py file i want to get the value corresponding to path that is host In test.py [CODE] #!c:/Python27/python.exe -u import django import cgi, …

0
64
Member Avatar for diafol

Hi all. Got a bit of a problem with this. Here's my code: [CODE]<?php header('Content-Type: text/html; charset=utf-8'); ?> <!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php echo strtolower("TWIUBCÜ"); echo "TWIUBCÜ"; ?> </body> </html>[/CODE] OK, perhaps the header …

Member Avatar for diafol
0
5K
Member Avatar for benqb

I am executing python file through php code in my local host [CODE=php]<?php $out = array(); $execute='C:\wamp\bin\apache\Apache2.2.11\cgi-bin\test.py'; exec ("$execute", $out); foreach ($out as $value) { echo "$value<br />\n"; } ?>[/CODE] test.py [CODE=python] #!/usr/bin/python import cgi, cgitb, os, sys cgitb.enable(); # formats errors in HTML print "helloworld"[/CODE] it correctly working in …

Member Avatar for jkon
0
98
Member Avatar for eman neercs

What I want to do is to take the previous day's logfile, strip out the search phrases and insert these into a mysql db. Currently using Deep Log Analyser to manually lift the search terms, but I's appreciate some pointers as to how the parsing could be done by a …

Member Avatar for nonshatter
0
140
Member Avatar for W1ND0W5

When I try to start the server this is the output I get: [code] (OS 10049)The requested address is not valid in its context. : make_sock: could not bind to address 179.215.214.132:8080 no listening sockets available, shutting down [/code]

Member Avatar for k@yd.en
0
33
Member Avatar for EPierre

Date: January 22, 2011 Hi, Need some help to solve this error. Nothing similar in the forum, IMHO. [B]Environment:[/B] [QUOTE]phpMyAdmin – 3.3.9 with this info: # Version MySQL client: 5.0.51a # Version MySQL: 5.0.45 # Server: Localhost via WAMPSERVER 2.1 # PHP 5.2.6 # Apache 2.050 [/QUOTE] [B]TABLE [/B] DROP …

Member Avatar for smantscheff
0
133
Member Avatar for priyam1309

I am not able to open the ex.php page I created in my local host. I recently installed Apache 2.2 and PHP. I configured httpd, virtualhost etc as mentioned in many tutorials. ([URL="http://webdevcodex.com/screencast-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/"]http://webdevcodex.com/screencast-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/[/URL]) Whenever I tyoe [url]http://localhost[/url], the browser tends to download the indox.php file. the file is nothing but …

Member Avatar for chrishea
0
153
Member Avatar for whiteyoh

Hi All, Im having trouble getting a crob job to run. What i have so far is /home/backup.sql.gz mysqldump -h 82.108.157.106 -u root -ppassword database name | gzip > /home/echou/backup.sql.gz any assistance would be appreciated

Member Avatar for whiteyoh
0
91
Member Avatar for Neverg!veup

Hi , I have been told to configure two tomcat instances with one apache server. I am new to tomcat and apache process and even dont know basics of Java. I tried my best but couldn't get result. Can anyone please let me know the versions of apache,tomcat and java …

0
101
Member Avatar for saadi06

Hi, I am having problem with creating thumbnail this is my code [CODE]$ffmpeg=$_SERVER['DOCUMENT_ROOT'].'/***/ffmpeg'; $image=$_SERVER['DOCUMENT_ROOT'].'/***/***/***/'."$id.jpg"; $video =$_SERVER['DOCUMENT_ROOT'].'/***/***/'."$uname"; $cmds = "$ffmpeg -i $video -deinterlace -an -ss 1 -t 00:00:01 -r 1 -y -s 100x90 -vcodec mjpeg -f mjpeg $image 2>&1"; exec($cmds);[/CODE] Whenever i try to make thumbnail it gives me an error …

Member Avatar for saadi06
0
102
Member Avatar for mokztan

Hi. Im having a difficult time to figure out how to connect all the claass and jsp as well as the .xml. (I am working on a web application project, and these codes are for the registration module oly. Im using ECLIPSE EUROPA for my IDE, Apache Tomcat 6.0 for …

0
92
Member Avatar for rakhi4110

hi, I am working a program which needs to send an email through JSP. I get an error Could not connect to host : localhost :25 : Connection refused. error. Can anyone tell me what configuration i need to change in Apache Tomcat to use my server as smtp server.. …

0
70
Member Avatar for wickedsunny

Hello, I did a little rewrite rule a little while ago to redirect ppl who directly access my site's image to image pages instead, for example a person accessing [url]www.mysite.com/i/asdf.jpg[/url] to [url]www.mysite.com/pic/asdf[/url] this is the rewrite rule i used : [CODE]location /i/image_(\d+).(gif|jpg|jpeg|png)$ { root /home/mysite/public_html; valid_referers www.mysite.com mysite.com; if ($invalid_referer) …

0
121
Member Avatar for manish250

hello i want to copy my home directory to sync with another server's home directory.is there any way in which we have not to store key file or use password.I know rsync is an option but i want to know if there is any better option.

Member Avatar for Moncky
0
177
Member Avatar for jamojo

Hello Everyone, I created a java code that runs batch files. Then, I deployed the java classes in apache-tomcat-5.5.26. The code worked when I ran the tomcat manually but when I ran the tomcat as a windows service, it did not work. I checked the tomcat log files but apparently …

Member Avatar for ~s.o.s~
0
151
Member Avatar for JDCyrus

Good evening. I'm having issues related to subprocesses. What I'm trying to do is launch another program that has a command-line mode (Gnucap, in case it matters) as a child process from my Java program, then communicate with it by reading from its standard output and writing to its command …

Member Avatar for JDCyrus
0
202
Member Avatar for brynFlew

Hello, thanks for your time. Jsp + javaBean will not run in tomcat on local host [url]http://localhost:8080/is/scannerForm/process.jsp[/url], when i run it in eclipse though my local tomcat it actually does work and i can step through the jsp page as-well as the .java pages and i can see where they …

Member Avatar for brynFlew
0
245
Member Avatar for docjon

Using a php to copy a dir and when finished to redirect browser ie 1. print "wait" message in browser. 2. copy the dir 3. finished copy redirect page but noticed if dir is large (ie takes a long time) it is copied but the redirect does not happen, still …

Member Avatar for diafol
0
162
Member Avatar for ngod23

Hi, Hope you can help, a client of mine has a site with dynamically generated URL's, I want to make the URL's SEO friendly, clean them and rewrite them as new keyword rich URL's and then redirect the old URL to the new. I am trying to carry out some …

0
65
Member Avatar for EagerLearner167

I'm a student. I am trying to make simple project for online borrowing book system. Basically the flow is from Borrow.jsp (The user select which data their want to update) The UpdateBorrowBinder.java will grab the object and pass to sql then bring the result to appear in UpdateBorrow.jsp But the …

0
80
Member Avatar for anandv1986

Dear Folks, This is anand, i m new to Tomcat5.5, i have given my directory structure i think nothing wrong with this but it is showing some error. Webapps I anand I WEB-INF, helloworld.jsp I classes,web.xml If i try to run my simple helloworld jsp program it is showing error …

Member Avatar for Qamar_DW
0
147
Member Avatar for andrewschools

Hello - I have a client that is using a VPS from Host Gator. He he also running an application I created on his VPS. The other day he complained his server was very slow when using my software. I checked it myself and it took approximately 5 seconds to …

0
120
Member Avatar for veledrom

Hi guys, I want to access my virtual domain from another computer on same network by typing [url]www.site1.com[/url] or site1.com without using IP at the beginning of URL. Currently it works this way: [U]Server computer where Apache is running:[/U] [url]www.site1.com[/url] AND site1.com works fine as I want. [U]Another desktop computer …

Member Avatar for veledrom
0
557
Member Avatar for zoeymae

I have a red hat system that I currently have to websites hosted on. I’m trying to set up a third domainname but every time I touch the files (httpd.conf, hosts, ddclient.conf, VirtualHosts,etc) it resolves to the primary domain name. The third domain keeps pulling up my first domain instead …

Member Avatar for rch1231
0
178
Member Avatar for DarkLightning7

I cant seem to find the problem with this program I am building as a learning exercise. I am getting errors referenced to extremely simple pieces of code. In the output the first thing that should be printed is the random double number that the program selects then it should …

Member Avatar for DarkLightning7
0
275
Member Avatar for starfruit

hi everyone im try to find simple way to install apache web server into linux OS, anyone can share here!!THANKS..

Member Avatar for JeoSaurus
0
120
Member Avatar for muralibobby2015

hello.. i have to write htaccess for mysite. actually we have two domains. '.com and .in' . for example i opened '.com' site it will actomatically access files from '.in' domain. there is no files in .com site. how to write .htaccess for this. thanks.

Member Avatar for muralibobby2015
0
142
Member Avatar for Roebuc

Hello, I am having trouble with MySQL on a newly installed Fedora 14. I have found that there are several issues with MySQL on Fedora but none of the issues I have found have exactly fit my situation. To start off, when I installed Fedora, I chose the Web Server …

Member Avatar for Roebuc
0
411
Member Avatar for tyson.crouch

Hi Guys, Please find below a copy of my code for the issue that I'm having. So, before you have a look at the code and inevitably laugh at something silly that I've done (because I have a feeling that it would be), I should explain what my problem is. …

Member Avatar for quuba
0
232
Member Avatar for michael1999

hi when i check apache status there is too many line like 198-92 - 0/0/4 . 0.00 78719 0 0.0 0.00 0.00 127.0.0.1 noc1.server.com OPTIONS * HTTP/1.0 i think this is related mysql or not is there anyway to close this pid in 5min or 10min? [CODE]0-112 1881 0/16/24053 _ …

Member Avatar for michael1999
0
94
Member Avatar for Lanor

hi...I am running rhel5.4. I have enable UserDir in apache and get the forbidden error while trying to access [url]http://localhost/~lanor[/url] I have set set permission for user Lanor 711 for home dir "lanor" and 755 for "public_html" Is it that I have to set the above permission for the user …

Member Avatar for Lanor
0
213
Member Avatar for sangram1986

[code]<?xml version="1.0" encoding="ISO-8859-1" ?> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="javax.servlet.http.*" %> <%@ page import="org.apache.commons.fileupload.*" %> <%@ page import="org.apache.commons.fileupload.disk.*" %> <%@ page import="org.apache.commons.fileupload.servlet.*" %> <%@ page import="org.apache.commons.io.output.*" %> <%@ page import="java.io.*,java.util.*,javax.mail.*"%> <%@ page import="javax.activation.*"%> <%@ page import="javax.servlet.http.*,javax.servlet.*" %> <%@ page import="javax.mail.internet.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

0
50
Member Avatar for RGStrat

Ok, so I have a website on a CMS. Love it, except I can't process and dynamic code like PHP. My problem is thus: I have a form that needs to be processed through PHP due to it's complex nature (the CMS can't fully process the info). Now, we have …

Member Avatar for RGStrat
0
278
Member Avatar for Moderns

Hello, I have installed apache server on Ubuntu 9.1 desktop. When I access http://localhost:8888 or http://192.168.1.60:8888, I get message : "It works". Now, I am able to run the apache on the port 8888 using the windows 7 without any problem and I accessed it from outside internet and that …

Member Avatar for Moderns
0
589
Member Avatar for payal888

Hello everyone, I've developed this java class [CODE]public class Counter { public static int counter; public static int getCounter() { counter++; return counter; } }[/CODE] and the Jsp file is [CODE] <html> <body> The page is <% out.println(Counter.getCounter()); %> </body> </html>[/CODE] jsp file is stored in the ROOT folder and …

Member Avatar for javaAddict
0
195
Member Avatar for sunny124

Hi, I'm trying to insert data into array after I retrieve it from database but I keep getting this error message: 'Fatal error: Cannot use object of type stdClass as array in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DeliciousCupcakes\system\application\models\cupcake.php on line 22' Please help me. The framework I'm using is codeigniter. DefaultDirectory.php file …

Member Avatar for sunny124
0
260
Member Avatar for Rohlik

Hi guys, I have a problem with this rule in .htaccess [ICODE]#RewriteRule ^(.*).xml $1.php?%{QUERY_STRING}[/ICODE] I need this rule transfer to Lighttpd web-server system. Very big thanks.

Member Avatar for pritaeas
0
137
Member Avatar for mikeandike22

SO I am trying to setup a RewriteRule on my server for caching static objects. the files are in this naming scheme /docroot/css/stylesheet.min.css and I have them printed in the code like /docroot/css/stylesheet.min.123438348.css (the number is example it comes from a get modified function). Note docroot is an example directory …

Member Avatar for mikeandike22
0
205
Member Avatar for bjeffries

Ive read a few tutorials to try and get this mod_rewrite to work but have no luck. I have checked my phpinfo and everything should work. I am trying to change this url: [url]http://domain.com/viewAlbum.php?aid=2[/url] (any number) to this url: [url]http://domain.com/album/2/[/url] Here is my .htaccess file and I dont know if …

Member Avatar for bjeffries
0
176
Member Avatar for Sorcher

Hello guys, i got a problem here.. I would like to change the url: [url]http://mysite.com/edit_files.php?deleteid=26[/url] to something randomized so people can change the numbers in "deleteid=26" I know i need a htaccess code for this, and i've searched allot to try bring this bitch down, so asking some pro fellas …

Member Avatar for Sorcher
0
89
Member Avatar for tinkee

hi, i have a problem accessing my php files in my browser, i am using apache as my webserver. it used to work properly until i messed up things. now i don;t know what to do. everytime i open my php files which are on /var/www/htm/ it gives me the …

Member Avatar for tinkee
0
239
Member Avatar for rohit09

Apache 403 Forbidden Error and this one ugly.. My server is Unmanaged - So I tried hared to fix this but I can't.. Please help me.. If I create any directory [url]http://www.myurl.com/anything[/url] =I got Forbidden error. If I Put any .php file [url]http://www.myurl.com/anything.php[/url] =I got Forbidden ERROR. If I Put …

Member Avatar for tinkee
0
198
Member Avatar for FerrousRex

I've been trying to find a library that will either let me display a .ppt file or an .odp file, but I've not really been able to find either so far. I've already tried the Apache POI library, but it only lets me display an image of the PowerPoint. If …

Member Avatar for vealparry
0
104
Member Avatar for jingo1126

[I]Not sure if this is the right place to post this.[/I] I'm currently working on my personal site, and was wondering how would I connect a desktop application to my site without entering my site on a browser. I'm not here to get any codes worked by someone but I …

Member Avatar for bakir
0
146
Member Avatar for fuzzyrose

hiiiiiii all I need help to know what are equivalent libraries in c# for those in java--> 1)import java.sql.ResultSet; 2)import java.sql.Statement; 3)import java.util.Vector; 4)import java.util.Hashtable; 5)import javax.servlet.http.HttpSession; 6)import java.sql.SQLException; 7)import org.apache.velocity.Template; 8)import java.sql.Connection; Thanks In advance :)

Member Avatar for fuzzyrose
0
172
Member Avatar for jeby6372

Env : Php 5.3, Ubuntu 10.10, apache 2.2.16 In fact IE8 blocks cookies avoiding the php session cookies to be saved in the client environment. Configure ssl on your webserver an do a http redirect at the very top of your source script from http to https layer.

0
53
Member Avatar for Jemo2008

type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 34 in the jsp file: /job_link_insert.jsp Syntax error, insert "AssignmentOperator Expression" to complete Assignment <%@ page import="java.sql.*"%> <% …

Member Avatar for ~s.o.s~
0
506
Member Avatar for Sorcher

I am having troubles finding out how to make my url from [url]http://example.com/index.php?page=images[/url] to [url]http://example.com/images[/url]. None of the htaccess tutorials i read today could make me understand it. I would give you a big wet kiss if you could lead me / give me a snippet or your awesomeness so …

Member Avatar for pritaeas
0
121
Member Avatar for niks4all

hello all... I am reading an excel file and displaying it with some background images (added by me)using jsp,apache(poi).now the problem is I should send this displaying content to many mails and this content should be in body and not as an attachment....... can anyone help me please....hoping for your …

0
38
Member Avatar for ronnieaka

[B]intro: [/B]i'm a 19yr old in 3rd yr doing btech in computer science. i chose to graduate in that coz i was interested in computers and programming,not like other brickheads wanting to do mba after a technical graduation. ok, in the last 2 yrs i've progressed only as much to …

Member Avatar for absolute_zero
0
316

The End.