Solved

php scripting

Posted on 2007-11-26
2
206 Views
Last Modified: 2013-12-13
How do I create a VB script to run on PHP that will open an excel file (has to run on the server side).
0
Comment
Question by:evault
2 Comments
 
LVL 5

Accepted Solution

by:
mms_master earned 500 total points
Comment Utility
As far as Im aware you can't create a VB script that will run server side with PHP. (But I could be wrong as I don't know much VBScript).
If you want to read an excel file using PHP alone, theres 2 ways you can do it.

First, you could save the excel files in a tab delimited or comma delimited format and then use php's fopen function to open the file and php's various split and replace functions to parse the text.

Second, you could have a look at a file I found using Google:
http://sourceforge.net/projects/phpexcelreader/

I would recommend the first option if possible, as I read that if you open large excel files with the second option it uses up php's memory fast.
0
 
LVL 14

Expert Comment

by:Juan Ocasio
Comment Utility
as mms_master stated you can't do that (unless you're running . asp and .php on the same server).  But you shouldn't mix scripting/web languages.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to dynamically set the form action using jQuery.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now