473,772 Members | 3,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
1
1,304
thread by: cbennett | last post Sep 22 '05 by: ZeldorBlat
Hello, I'm a *novice* at both using PHP and UNIX, and came across a problem while trying to modify an ex-coworkers PHP code for printing. The original script sent one huge print job to our printing server, which worked fine since we weren't printing duplex. We'd like to now split the jobs up and send them individually, which we easily...
3
1,102
thread by: Patrick | last post Sep 22 '05 by: badr
Hi All, Not sure if this is possible or not. How can I have a global constant as a part of my variable names. As an example, I want all the ZZZ to equal "C10" in the snippet of code below. Why do I want to do this you ask? We are going to have anywhere from 60 to 100 drifters in the ocean sending back gps data and a table of that data...
0
1,293
thread by: badr | last post Sep 22 '05 by: badr
i swear i try to test somthing in GOOOGLE groups you will see this againg
3
3,039
thread by: Joseph S. | last post Sep 22 '05 by: badr
1)I get startup error messages: "Unable to load dynamic library c:\php\php_curl.dll - the specified file cannot be found" although the file is very much there at exactly that location Not only for this file but for many extension files like php_mysql.dll, php_oracle.dll, php_mssql.dll, php_exif.dll etc. 2)the extensions_dir setting is...
2
1,795
thread by: Keith | last post Sep 22 '05 by: cmarvel
All: I am having problems trying to run some php scripts in cgi. I have Apache 2.0+ and PHP 4.3. Perl works fine with CGI and PHP works find as an Apache module. Whenever I attempt to run the php script through a URL with the cgi-bin, it asks if I want to open or download the file. Cgi files execute fine though. Can anyone think of...
1
1,815
thread by: bigfella | last post Sep 21 '05 by: Gordon Burditt
Hi Everyone, I am using the following code (many thanks for the code folks BTW) to generate 3 schedules in three tables one is a schedule with 7 day intervals and two are daily schedules. The two daily schedules seem to have out of sync dates at the start of each schedule. The dates look as if they may be dates from the preceding loop.
1
2,377
thread by: Ned Baldessin | last post Sep 21 '05 by: James
Hi, I need to perform full text searches on a batch of PDF and Word files. What is the best way to go? After some research, I'm thinking of extracting the plain text from the files with "pdftotext" and "catdoc", hamonizing the various possible encodings to UTF-8, storing the text in a MySQL database, and then using the full text search...
3
1,328
thread by: C16 | last post Sep 21 '05 by: Default User
Hi All Very new to the world of php and still slightly struggling with concept that its running on the server side (slow learner :O) ). My question is this, is it possible to run an exe on the clients machine from a php script that is on a web site, say if I wanted to automatically start say a game exe that the visitor to my site had...
5
4,157
thread by: Damien | last post Sep 21 '05 by: Damien
Hi to all, I would like to get field values from a multi-line text. For instance : " Name: Mr Smith Address: Paris " I've tried to use (I'm a total regexp newbie, so I took it from the doc):
0
1,556
thread by: romain.jouin | last post Sep 21 '05 by: romain.jouin
hi ! I'm trying to simulate a "windows explorer-like" tree on my page. What I would like is when the user click one of the level, the data make themselves visible ( It's ok to recharge the page). I tried to use the xml/xslt following example : http://www.map.archi.fr/dpea/coursHtml/Exercices/exercice8/arbre/CalaRossaSurvey.xml...
1
1,670
thread by: romain.jouin | last post Sep 21 '05 by: romain.jouin
Hi everyone, I just wanted to propose this piece of code which is searching recursively a value in an array... and let you indicate me if there is an error... function in_array_recursive($array, $val) { $r = false; if(is_array($array))
4
1,480
thread by: Mazin07 | last post Sep 21 '05 by: Steve
I made a little PHP thingy where you can search for any string of numbers in the first 8 million digits of pi. However, they're currently stored in ASCII, which means it's 2bytes for a digit, and it's horribly inefficient. I used perl to pack it as 2 digits a byte, basically storing it as hex without A-F. My problem is, I need a fast way...
0
1,326
thread by: hotgazpacho | last post Sep 21 '05 by: hotgazpacho
I have a query where I need to join several tables, one of which is variable (otherwise I'd just hand-code the query). The main table is called media, and has fields common to all media in my application (like project_id, description, comments, etc). I have another couple of tables, one provides a listing of keywords, and another maps keywords...
3
412
thread by: Fran García | last post Sep 21 '05 by: Fran García
I´ve a big problem with the session variables. I load audio files into media player using as src a php script that check some session variables and then load the audio file, something like that <mediaplayer src="displayfile.php?filename=myaudiofile.mp3"> but in the script displayfile.php, I cannot access to the session variables. Is there...
0
3,731
thread by: ramas | last post Sep 21 '05 by: ramas
Hi, I am new to PHP scripting and i am trying to connect to a soap server (as mentioned below) using the SOAP extension comesup with PHP. Now my requirement is to add my HTTP header fields along with my SOAP request, so that the SOAP server will receive it and does some high level processing. Is it possible to add our own HTTP header fields...
5
2,739
thread by: Mike Novecento | last post Sep 21 '05 by: Manuel Lemos
Hi everybody, I am going to start a new company in a little while. The company will be founded when the first project will be in the alpha version. Several other projects will be done in future. My problem is determing what platform I should use. I know how to program in several languages but ignore this for the moment. I am going to...
2
1,930
thread by: Smitro | last post Sep 21 '05 by: Smitro
Hi, I'm in the middle of writing a script to import a csv file into mySQL (as apart of a bigger project) I need to know what are the best steps to go from $_FILES to file(). Once the file is read into an array I should be right. I don't want to keep a copy of the file uploaded either, as once it is imported I will have no use for it.
9
3,444
thread by: gleverett | last post Sep 21 '05 by: Gérard Talbot
I have been searching the 'Net, and I can't find the right solution here. I am writing some PHP pages that utilize some Javascript. The script works in Mozilla/Netscape, but fails in IE. I don't know if it's the Javascript or the PHP that is causing the problem. I started with an example in a book and added on. The script I'm using is:...
7
1,099
thread by: hougie40 | last post Sep 20 '05 by: badr
Im a vb guy trying to figure out some php. For some reason it wont let me append these together. $variable = "test"; echo "c:\websites\menu\" . $variable; dont understand...please help.
2
1,410
thread by: Joseph S. | last post Sep 20 '05 by: Joseph S.
(I am posting from a web interface- google groups, yet the message is not appearing on the group, so am posting again, if you get two of the same kindly ignore one) 1)I get startup error messages: "cannot load c:\php\php_curl.dll - the specified file cannot be found" although the file is very much there at exactly that location Not only...
2
1,972
thread by: vbMark | last post Sep 20 '05 by: vbMark
I need to check for sentences that have a space before the period and remove the space. I've tried: $sentence = str_replace(" .", ".", $sentence); but it does not work. I've tried other ways with no success. Why doesn't this work and how do I do this? Thanks!
4
1,331
thread by: derekmartin1 | last post Sep 20 '05 by: NC
Hi All, Hopefully my question can be easily resolved. I need to design an autoresponder script in PHP for a organization that I am leading. My issue is that the server where my page must reside on uses Lotus and I am completely unfamiliar with that system. Is it possible for me to execute a PHP script from another server? I could use server...
0
852
thread by: rgparkins | last post Sep 20 '05 by: rgparkins
HI I have 2 problems, 1 of which is tied to PHP and 1 loosely tied, so I'll put this out there. Got a problem that I have been working on for a while now which involves implementing the Paypal IPN. I am using PHP 4 to automatically post back to Paypal and I am using curl package. I am doing a Custom request and would like to know if...
0
2,909
thread by: rgparkins | last post Sep 20 '05 by: rgparkins
HI I have 2 problems, 1 of which is tied to PHP and 1 loosely tied, so I'll put this out there. Got a problem that I have been working on for a while now which involves implementing the Paypal IPN. I am using PHP 4 to automatically post back to Paypal and I am using curl package. I am doing a Custom request and would like to know if...
13
3,423
thread by: Markus Ernst | last post Sep 20 '05 by: Markus Ernst
Hello In a content administration tool I call classes from inside classes in order to separate the admin functions from the display-only functions: class book { var $title; var $author; var $adminfunctions;

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.