I have spent a lot of time on this question, namely, how to programatically use a PHP script to send a PDF document to the printer without launching the Adobe print dialog that results from using arcord32.exe (the adobe reader). PHP has some useful classes for creating PDF's, i.e., the FPDF library, but printing the created file is a bear. For Windows XP and Windows 7 servers, the one open -source solution which works is to use the PDFBOX java library. Here are the steps. 1) Download the latest java pdfbox binary: http://www.apache.org/dyn/closer.cgi/pdfbox/1.7.1/pdfbox-app-1.7.1.jar and put it in a directory. I …

Member Avatar
Member Avatar
+6 forum 14

Hello, I use gsitecrawler to create sitemap for my websites. Are there any tool to create a sitemap better than gsitecrawler? I learned from this forum that if we have a sitemap on each site, it is good for SEO. My other question is, gsitecrawler creates a sitemap and I place sitemap.xml file on the root directory. Do I need to place it on the homepage? Since my dating site has many links, what is the best way to do that? Thanks.

Member Avatar
Member Avatar
+0 forum 15

You can put an image and text on a Tkinter button widget. This small code shows you how. The GIF image file you want to use for the button should be in the working directory, or you have to give it the full path. Incorporate the Python Image Library (PIL) for other image formats.

Member Avatar
Member Avatar
+1 forum 3

My own web directory is now PR 1. Earlier it was unranked. So, you guys are welcome to submit your website link to my directory. But remember to read the "Rules and Regulation" before posting and don't spam or your post will never be published. In "full description" body of submission page, please write at least 350 words for faster submission. Free web directory submission: www(dot)directory(dot)seo-service-provider(dot)org

Member Avatar
Member Avatar
-1 forum 17

Online file hosting. I click "Upload File". I select correct file. I click "Open". File gets uploaded. I log out. What else does hosting get to know? (besides name, modification timestamp, creation timestamp, content, extension and length of upload file etc.) Assuming running Linux Ubuntu/Arch/Whatever, on Mozilla Firefox or any other open-source browser with no obvious exploited vulnerabilities.

Member Avatar
Member Avatar
+0 forum 2

I am attempting an extra credit assignment for a summer course. The question says : "Modify the client.c and server.c program from Assignment 1 to add the following function: when the client connects to the server, the client provides the name of a directory D to be retrieved in the server; When the server receives the request, the server reads the name of the directory D, retrieves the contents from the directory D, and sends the contents back to the client. The client, after receiving the contents from the server, prints out the content. Hint: 1. Use opendir() to open …

Member Avatar
Member Avatar
+0 forum 3

Good day ,wish to know how to upload multiple image files with multiple inputs and multiple directories. My code is <table border="1px" width="100%"> <tr><td colspan="3" style="background-color:#E8E8E8"><b>Supporting documents upload</b></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="pri" required ></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="oresult" required ></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="oresult2" required ></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="dob" required ></td></tr> <table border="1px" width="100%"> <tr><td colspan="3" style="background-color:#E8E8E8"><b>Upload Passport Photograph</b></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="photo" required ></td></tr> <tr><td> </td><td colspan="3"><div class="subm" ><input style="font-size:18px; height:45px; font-weight:bold; color:#0033FF" type="submit" style="height:50px" name="submit1" value="Save / Submit Form" ></div></td></tr> </table> </form> and it connects to <?php require 'database.php'; $code_id = $_SESSION['SESS_CODE_NAME']; $d …

Member Avatar
Member Avatar
+0 forum 24

This is php code at https://developers.google.com/maps/articles/phpsqlajax_v3#putting-it-all-together. <?php $username="xxxx"; $password="xxx"; $database="xxx"; ?> <?php function parseToXML($htmlStr) { $xmlStr=str_replace('<','&lt;',$htmlStr); $xmlStr=str_replace('>','&gt;',$xmlStr); $xmlStr=str_replace('"','&quot;',$xmlStr); $xmlStr=str_replace("'",'&#39;',$xmlStr); $xmlStr=str_replace("&",'&amp;',$xmlStr); return $xmlStr; } // Opens a connection to a MySQL server $connection=mysql_connect ('localhost', $username, $password); if (!$connection) { die('Not connected : ' . mysql_error()); } // Set the active MySQL database $db_selected = mysql_select_db($database, $connection); if (!$db_selected) { die ('Can't use db : ' . mysql_error()); } // Select all the rows in the markers table $query = "SELECT * FROM markers WHERE 1"; $result = mysql_query($query); if (!$result) { die('Invalid query: ' . mysql_error()); } header("Content-type: text/xml"); // Start …

Member Avatar
Member Avatar
+0 forum 1

Hi guys i'm trying to do a programm for school.I have to create something using " semaphore " and i solved it using "#include <sys/sem.h>". Now i'm trying to make this work on Windows 8.I have done many exercises here and they worked,but now there is a message of error: file.h: fatal error: sys/sem.h: No such file or directory I think cuz this is not on windows.What is the corrispective in W to include it?or i have to rebuild all semaphores?? thanks

Member Avatar
Member Avatar
+0 forum 1

Why This Program is not Changing Directory from C:/ to H: Drive or D: Drive. #include<iostream> using namespace std; int main(int a,char *b[]) { int option; cout<<endl<<"Enter 2 for 2nd Semster Programs "<<endl; cout<<endl<<"Enter 3 for 3rd Semster Programs "<<endl; cin>>option; if(option==2) { system("D:"); system("explorer ."); } else if(option==3) { system("H:"); system("explorer ."); } else { system("explorer c:/"); } system("pause"); }

Member Avatar
Member Avatar
+0 forum 3

I am new to php. I encountered the following errors. Warning: require_once(/dbtest/db_connect.php): failed to open stream: No such file or directory in C:\xampp\htdocs\dbtest\connect.php on line 2 Fatal error: require_once(): Failed opening required 'dbtest/db_connect.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\dbtest\connect.php on line 2 I am very sure I have db_connect.php file inside my dbtest folder. Please help I config.php <?php define ( 'DB_HOST', 'localhost' ); define ( 'DB_USER', 'root' ); define ( 'DB_PASSWORD' ); define ( 'DB_NAME', 'mydb' ); ?> db_connect.php <?php /** * A class file to connect to database */ class DB_CONNECT { // constructor function __construct() { // connecting to database …

Member Avatar
Member Avatar
+0 forum 5

fatal error: pwd.h: no such file or directory, I got this error when trying my code when using the following library #include<pwd.h>

Member Avatar
Member Avatar
+0 forum 1

I have a question regarding user membership of groups in Active directory and grabbing such memberships with PHP. My big question/situation is that I have a site I am making and essentially I am trying to assign administrators based off of groups in Active directory and I know how to check member of status on an account but my problem is that there are some groups that aren't displayed there, and one of the groups that is not displayed is the group I need. Is there a way I can check **who is** a member of that group instead of …

Member Avatar
+0 forum 0

Hi all, Can you please tell me if there is a bash command in UNIX that is similar in functionality to XCOPY in Windows? XCOPY can copy who directory trees from a source folder to a destination folder, but from what I saw about the cp command in bash, it is not possible. Also XCOPy can copy only new files, and returns if files were copied or not. I would like if the bash command did that as well. Here is the XCOPY functional [URL="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true"]specs [/URL]for further reference. You can find if files had been copied or not by looking …

Member Avatar
Member Avatar
+2 forum 10

Hello, I'm having trouble uploading all the various data to the database, can you help? The code is this, I have done some testing but the original image and thumbnail are loaded properly in the directory, but all the data are not passed to the database. What is the correct position to insert the code? Thank you function imgUpload($field_name = '', $target_folder = '', $file_name = '', $thumb = FALSE, $thumb_folder = '', $thumb_width = '', $thumb_height = ''){ //folder path setup $target_path = $target_folder; $thumb_path = $thumb_folder; //file name setup $upload_image = $_FILES[$field_name]["name"]; $tmpName = $_FILES[$field_name]['tmp_name']; $size = $_FILES[$field_name]['size']; …

Member Avatar
Member Avatar
+0 forum 1

HI.... im new to php, i ve a doubt. i want source code in php for the requirement as traited below. im creating a registration form with two image file uploading system. I need a source code in such way that, the inputs NAME, AGE, MOBILE NUMBER, image upload(ONE), image upload(TWO) should be saved in serialwise including photos in MS-WORD DOCUMENT in a directory i mention.

Member Avatar
Member Avatar
+0 forum 1

I am working with windows application, I have pictureBox to load image from the directory. I am trying to get some idea how can I display magnified image of particular area depending on the coordinates of that specific area on textbox focus.

Member Avatar
Member Avatar
+0 forum 3

Basically, I'm working with zipimport to load plugins. These plugins contain binary modules which can only be loaded via retrieving their data. Copying them to a temporary directory is stupid, so how can I get a handle to a dynamic process which I can inject the stream into before it's execution?? Cross-platform would be nice ;)

Member Avatar
Member Avatar
+0 forum 3

Hi all, I'm building a multi-tenant web application in PHP which is hosted on a dedicated Ubuntu 14.04 server (LAMP). I'm trying to figure out the simplest method of allowing my customers (SME's) to connect the application to their active directory server to authenticate users. The only issue is, I don't want all of my customers to have to whitelist my IP's on their firewall (change management will kill my sales) and I don't want them to expose their Active Directory servers to the internet. The best I've come up with so far is setting up my own IIS server …

Member Avatar
Member Avatar
+0 forum 1

I was able to get the ComboBox to load a list of files from a directory. but, now i am trying to get the contents of that file output to a TextBox or richTextBox. I am able to use this to output to another ComboBox(however, this is not what i need...): //code for codebox to codeBox output string[] files = System.IO.Directory.GetFiles(@"c:\scripts"); comboBox2.Items.Clear(); string[] lineOfContents = File.ReadAllLines(comboBox1.Text); foreach (var line in lineOfContents) { string[] tokens = line.Split(','); comboBox2.Items.Add(tokens[0]); //end of codebox to codebox output. However, I can't get the entire file to go to a Textbox. When i use <this.richTextBox1.Text = …

Member Avatar
Member Avatar
+0 forum 4

I am going through .net book. I happen to read that once we are storing the web form in asp.net ,it automatically shows local host path in save directory. But in my computer I don't see local host path. It shows the usual vb.net installed folder in C directory and while running on the browser it shows localhost address. How to fix it up? How to make the .net save option automatically show the localhost path in the save dialog box?

Member Avatar
Member Avatar
+0 forum 1

Actually, I'm doing Directory Submission, Social Bookmarking, Blog Commenting, Article Submission and UGCS for building backlinks. Is there any other valid techniques available for building backlinks?

Member Avatar
Member Avatar
+1 forum 71

I am trying to make a Java program that uses a tree to collect folder and file information about a directory and display it to the user. Essentially a java version of the tree DOS command. The user inputs a path to a folder and the command window will spit out all the files and folders under that path. I am using a recursive preorder (root first) tree traversal to retrieve the child folders or files in desired path. My main just retrieves the desired folder and calls the method: System.out.print("Enter a folder name: "); Scanner in = new Scanner …

Member Avatar
Member Avatar
+0 forum 1

Excitesubmit.com and backlinks? Works wonders, but how often is my question?

Member Avatar
Member Avatar
+0 forum 2

Hi Expert, would it be possible to list all the current active Domain equivalent Active Directory in a network? Hoping to here from you. Thanks.

Member Avatar
Member Avatar
+0 forum 2

I am creating a text editor on a Mac and am having trouble with file saving. I can open, save as and save files but the save function stops working after I call `self.close`. I get this error: Exception in Tkinter callback Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1536, in __call__ return self.func(*args) File "Test1.py", line 43, in save self.f1=open(self.file, "w+") TypeError: coercing to Unicode: need string or buffer, file found How can I get the directory as a string of buffer to fix the error? Here is my code: #modules from Tkinter import * from Tkinter import …

Member Avatar
Member Avatar
+0 forum 1

Hi, Am developing my website using codeigniter and got stuck when i tried to make the backend. Am using CMS backend that comes with its own folder with everything (.htaccess, its own MVC etc) so I put all my frontend folders into one folder called frontend withinn the application folder but now I cannt view my frontend pages. I get this: The configuration file does not exist. Please help me. My directory looks like so (find attached) ![4911abe55ce2afe6671916fe55769c0b](/attachments/small/4/4911abe55ce2afe6671916fe55769c0b.png "align-left")

Member Avatar
Member Avatar
+0 forum 4

Some time ago, I needed to know the pathname of my running application, in order to create a temporary file. As it seems ther are alot more options than I thought. So I applied all I could find in this little snippet. I also used the full names to make clear where everything is coming from. Guess I'll stick to `System.Environment.CurrentDirectory;` :) Let me know if you know others. Enjoy!

Member Avatar
Member Avatar
+1 forum 1

Good day everyone. i have a vb6 program that attaches files in my database having an attachment field named ATTACHFILE. Saving files works fine but i cant upload/save file to a selected directory. I have the following code below . I was able to save it to my spcefied directory but i can't open the file.. Thanks in advance. Set addfile = New ADODB.Stream addfile.Type = adTypeText addfile.Open If IsNull(Adodc1.Recordset.Fields("ATTACHFILE")) = False Then addfile.SaveToFile "" & App.Path & "\CELEBRANTS.xlsx", adSaveCreateOverWrite End If addfile.Close Set addfile = Nothing

Member Avatar
+0 forum 0

I'm trying to run a python script from the cron but get the error "No module named requests" Traceback (most recent call last): File "testscript.py", line 2, in <module> import requests ImportError: No module named requests The script will run from the console but not through a cron job. I have seen somewhere that the environment settings are different between the two methods. Requests is installed in the ./lib/python2.7/site-packages directory but the script can't seem to access it. I have no experience in Python so would appreciate some pointers.

Member Avatar
Member Avatar
+0 forum 6

The End.