[PHP] Re: XML validation with XML Schema

2004-08-05 Thread Ace
Matias Bagini netlabs.com.ar> writes: > > Is there any way to validate an XML with XML Schema using PHP4... I need > something like the > > bool DOMDocument->schemaValidate ( string filename) > > that exists on PHP5 > > Thanks, > > Matias. > I use an external validator called XSV. It's t

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
The files that are evaled work perfectly without being evaled. I dont think eval was meant for large files etc. Whats on that like: a preg_match that looks for \$variable = something; and thats the like it messes up on. Also, if the file which is evaled includes another file, the variables from

[PHP] Barcode info anyone...

2004-08-05 Thread Dave Carrera
Hi List, I know I can generate & print barcodes in php for my app :-) But can I read the generated barcode into my php application and select the associated item and if so what do you have to do to get it working. I think that maybe the mouse cursor would be in a form field, scan the barcode and

[PHP] References and array indexes

2004-08-05 Thread Gabriel Birke
Hello! The following PHP code: "First Element", "2"=>"Second Element"); $v = &$a['3']; print_r($a); ?> has this result: Array( 1 => First Element, 2 => Second Element, 3 => ) Can anyone give me an explanation for this? What is happening in the guts of the PHP interpreter wh

Re: [PHP] POST superglobal is empty

2004-08-05 Thread Christophe Chisogne
Andy Loftus a écrit : Does anyone have any ideas as to why $_POST would be empty when submitting a form to php? I remember a post in this list about IE 6 not sending POST datas some times (when reloading an html form). If you use Mozilla or Firefox, the Livehttpheaders[1] extension can help seeing

[PHP] need help with $HTTP_RAW_POST_DATA

2004-08-05 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi all, I am using a Debian server with all stable packages so PHP is version 4.1.2 I was developing a SyncML server and was using $HTTP_RAW_POST_DATA as a receiving container for incoming SyncML communication from my Sony Ericsson T-616. Recently finished writing the WBXML convertor and are wo

Re: [PHP] Barcode info anyone...

2004-08-05 Thread Torsten Rosenberger
hello > I think that maybe the mouse cursor would be in a form field, scan the > barcode and the data from the barcode reader would go into the form field of > which I can issue a OnChange instruction, but I might be completely wrong. the input field should have the focus (cursor must in the fi

[PHP] Re: References and array indexes

2004-08-05 Thread Ace
Gabriel Birke kontor4.de> writes: > > Hello! > > The following PHP code: > $a = array("1"=>"First Element", "2"=>"Second Element"); > $v = &$a['3']; > print_r($a); > ?> > has this result: > > Array( > 1 => First Element, > 2 => Second Element, > 3 => > ) > > Can anyone give

Re: [PHP] need help with $HTTP_RAW_POST_DATA

2004-08-05 Thread raditha dissanayake
Everything was working fine until i wanted to try to update to PHP5, but there aren't any officially unstable/experiment PHP5 from Debian. So i got mine from DotDeb.org. You could always copmpile from source. Everything worked but then $HTTP_RAW_POST_DATA suddenly is not receiving any data. I

Re: [PHP] File Uploading Issue

2004-08-05 Thread raditha dissanayake
PHP E-Mail List wrote: Ok, I figured I'd tackle this since I've been coding php for about 6 months now. And wouldn't ya know, I'm having problems with, what I thought would be the easiest thing to code ever. Yeah well I get the file to upload, and heck I can even take the file and display what tex

[PHP] "problem solved" (?)

2004-08-05 Thread Mark
Thanks very much, Curt. I assumed (stupid me) that I needed to configure PHP 5 for mysqli but this was nonsense since I am using version 4.0 of MySQL. Now I use php_mysql.dll in C:\PHP and only remove the ; from ;extension=php_mysql.dll in php.ini. Sorry to have bothered you all with this. ! Sti

Re: [PHP] Barcode info anyone...

2004-08-05 Thread Fernando Gutierrez
use JPGRAPH barcode class On Thu, 5 Aug 2004 08:57:30 +0100, Dave Carrera <[EMAIL PROTECTED]> wrote: > Hi List, > > I know I can generate & print barcodes in php for my app :-) > > But can I read the generated barcode into my php application and select the > associated item and if so what do you

[PHP] Getting data from table as a tree

2004-08-05 Thread pt2002
Hi I have a table like this id, pid, name. When a item has no parent, pid = 0. There is no limit in depth. 1, 0, Test 1 2, 1, Test 1.1 3, 1, Test 1.2 4, 2, Test 1.1.1 5, 1, Test 1.3 6, 3, Test 1.2.1 I need to read this table and return an array that represents the tree. Maybe using a recursive fu

Re: [PHP] Passing user entered data to DB

2004-08-05 Thread Jordi Canals
John Holmes wrote: $uservar = htmlspecialchars(strip_tags($uservar)); You don't need to use strip_tags _and_ htmlspecialchars()... unless you want strip_tags to get rid of such malicious and deadly content such as and . Just use htmlspecialchars(). Well, my idea was to apply both: I do not want

[PHP] Optimizing Tips

2004-08-05 Thread Vinayakam Murugan
Hello I am a fresh PHP programmer and am part of a team developing a LAMP based website. The problem we are facing is that when the site was hosted on a local server, it was quite fast. Now that we have to use the internet to get to it, it has become very slow even keeping in mind consideration

[PHP] using headers to download a file takes too long

2004-08-05 Thread Mark Cooke
Hi, I'm writing a few scripts that allows users to download files, some around 45MB+. The files are stored outside the webroot, for security reasons, so when the user clicks on the link, this called my downloadFile.php script, this script accesses the requested files, using the path relative to t

RE: [PHP] "problem solved" (?)

2004-08-05 Thread Jay Blanchard
[snip] ! Still the problem remains that there is no mysqli equivalent for mysql_field_name [/snip] As I had suggested earlier you could do a DESCRIBE `table` query and loop through the column names returned. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

RE: [PHP] Optimizing Tips

2004-08-05 Thread Jay Blanchard
[snip] I am a fresh PHP programmer and am part of a team developing a LAMP based website. The problem we are facing is that when the site was hosted on a local server, it was quite fast. Now that we have to use the internet to get to it, it has become very slow even keeping in mind consideration

RE: [PHP] Optimizing Tips

2004-08-05 Thread Nicklas Bondesson
There are many things you can do to optimize speed on a website. First of all you need to determine how many concurrent users you can handle on the server you are hosting the website on. You have to take the following into consideration: CPU, Memory, Disks, Network etc. You can gain relatively much

[PHP] Re: Getting data from table as a tree

2004-08-05 Thread Torsten Roehr
"Pt2002" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I have a table like this > id, pid, name. When a item has no parent, pid = 0. There is no limit in > depth. > 1, 0, Test 1 > 2, 1, Test 1.1 > 3, 1, Test 1.2 > 4, 2, Test 1.1.1 > 5, 1, Test 1.3 > 6, 3, Test 1.2.1 > > I nee

Re: [PHP] Optimizing Tips

2004-08-05 Thread Alister Bulman
On Thu, 5 Aug 2004 16:17:34 +0530, Vinayakam Murugan <[EMAIL PROTECTED]> wrote: > I am a fresh PHP programmer and am part of a team developing a LAMP based > website. The problem we are facing is that when the site was hosted on a > local server, it was quite fast. Now that we have to use the inter

Re: [PHP] Optimizing Tips

2004-08-05 Thread Umesh Deshmukh
Hi, Please check if 1) you have used recordsets, you have closed it at proper places. 2) connection objects are closed or not. These are some of the things in case of PHP. While coding , pls. follow. to open only one connection with the database. Regards, Umesh. - Original Message

Re: [PHP] Getting data from table as a tree

2004-08-05 Thread Burhan Khalid
pt2002 wrote: Hi I have a table like this id, pid, name. When a item has no parent, pid = 0. There is no limit in depth. 1, 0, Test 1 2, 1, Test 1.1 3, 1, Test 1.2 4, 2, Test 1.1.1 5, 1, Test 1.3 6, 3, Test 1.2.1 I need to read this table and return an array that represents the tree. Maybe using a

[PHP] What does \\0 means?

2004-08-05 Thread Jay
Hi! Found the following code in the PHP manual: $text = "http://www.somelink.com";; echo(ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text)); What does \\0 means, i have seen this before with \\1 and \\2 what does they mean? Thanx In Advance Jay -- PHP Gene

Re: [PHP] MySql Tables

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 08:51, DIFF FanneHH offered up the following tid-bit of information : > How many records can be in a MyIsam table? > Thanks I'm sure they could tell you on the MySQL mailing list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General

Re: [PHP] Optimizing Tips

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 06:47, Vinayakam Murugan offered up the following tid-bit of information : > Hello > > I am a fresh PHP programmer and am part of a team developing a LAMP based > website. The problem we are facing is that when the site was hosted on a > local server, it was quite fast.

Re: [PHP] What does \\0 means?

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 10:03, John W. Holmes offered up the following tid-bit of information : > oo.ooo... can I do it?? ;) > > \\0 is actually the entire string that was matches. \\1 would be the > first parenthesized substring, \\2 the second, etc. > > Don't worry, I had to look in the manua

[PHP] Re: str_replace() problem in PHP5 - RESOLVED

2004-08-05 Thread Jon Bertsch
Curt and Justin, Thanks for the ideas. I resolved this by removing the str_replace() call from within a function that I was calling and running it in-line in the code. Since the html string was less than 500 char it seems unlikely that it was memory but that's also about the only thing that woul

[PHP] Browsers on terminal server

2004-08-05 Thread Lester Caine
I am using $_SERVER["REMOTE_ADDR"] to get address of the browser accessing the system and then using gethostbyaddr() to get the machine name. This worked great until I came to a site using M$ Terminal Server to provide the terminals. We still need to know what machine we are talking to, so we can

RE: [PHP] Branching blunder

2004-08-05 Thread Alex Hogan
[snip] > Because $answers = 5; is the last check of $answers unless > the else statement is invoked. Try this... [/snip] That was it.., I don't know why I didn't see that. Thanks Jay. alex * The contents of

[PHP] Need Some Direction

2004-08-05 Thread Aaron Todd
Hello, I am trying to build up a members only site, but I need some direction. So far I have written a page that will let a user register for access. That script emails me their info so I can validate it, sends them a "thankyou" email and then sends the data to a temporary MySQL database table.

[PHP] Re: JavaScript Enabled?

2004-08-05 Thread Kim Steinhaug
Indeed an old thread this one, but I still would like to know if someone have some input on some ways of solving this dilemma. Surely it is easy to detect javascript when its enabled, but what to do when it's not enabled is a much more interesting approach. I have several systems online which (mab

Re: [PHP] Browsers on terminal server

2004-08-05 Thread John W. Holmes
From: "Lester Caine" <[EMAIL PROTECTED]> > I am using > $_SERVER["REMOTE_ADDR"] > to get address of the browser accessing the system and then using > gethostbyaddr() to get the machine name. > > This worked great until I came to a site using M$ Terminal Server to > provide the terminals. We still n

Re: [PHP] What does \\0 means?

2004-08-05 Thread John W. Holmes
From: "John Nichel" <[EMAIL PROTECTED]> >>On Thursday 05 August 2004 07:39, Jay offered up the following tid-bit of >>information : >> Found the following code in the PHP manual: >> $text = "http://www.somelink.com";; >> echo(ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", >>

Re: [PHP] Need Some Direction

2004-08-05 Thread Jason Davidson
I created a simpleAuth script that handles authentication, then sets up a session, there is a method that i called requireAuth(); i call this method on any page i want restricted to the members, it checks the for the valid sessoin, and also checks the time of login, and calls my destoy method if u

[PHP] reading filesize on remote server

2004-08-05 Thread Tobias Grønlund
Im having a problem reading filesizes on a remote server, hven only having the domainname, and not the exact filename. (i want to use it to read the filesize and thereby the downloadtime of the html-file, and it all schould happen automaticly when someone writes the domainname at my webpage) )

RE: [PHP] Optimizing Tips

2004-08-05 Thread Nicklas Bondesson
The Zend Optimizer only caches the compiled PHP output (HTML content) that should be sent to your client. You can always try it but I don't think you will gain that much on using it. It's worth trying though. Nicke -Original Message- From: Vinayakam Murugan [mailto:[EMAIL PROTECTED] Sen

Re: [PHP] Optimizing Tips

2004-08-05 Thread Brent Baisley
All things being equal as your test environment (i.e. hardware, load), the big difference is latency on the network. You may have designed your application to "echo" code to the client as you create it. This may cause lots of small network packets which will slow things down considerably. You s

Re: [PHP] Re: POST superglobal is empty

2004-08-05 Thread AJL
Not a dumb idea, I have tried that with no success. Thanks for the ideas. Keep 'em coming. I recall seeing a conversation somewhere (php bugs, I think) that there is a function to call that will return the raw input from stdin. Anyone know what that function is? -- Andy On Thu, Aug 05, 2004 a

Re: [PHP] Passing user entered data to DB

2004-08-05 Thread John W. Holmes
From: "Jordi Canals" <[EMAIL PROTECTED]> > John Holmes wrote: > > >> $uservar = htmlspecialchars(strip_tags($uservar)); > > > > You don't need to use strip_tags _and_ htmlspecialchars()... unless you > > want strip_tags to get rid of such malicious and deadly content such as > > and . Just use htm

Re: [PHP] Outputting Data

2004-08-05 Thread Harlequin
Jay. Strange behaviour. My ISP seems to allow me to download messages intermittently but can reply to all anytime I like. However, If I can't download I can bloody well reply. Guess who the ISP is...? NTL...! I'm talking to my ISP about directory access, seems the problem with outputting that f

[PHP] How pass form variable to window.open()

2004-08-05 Thread CHAN YICK WAI
Hi, Anyone can tell if, inside php script, I can pass form variable to the javascript window.open() call? That is, in the form, for example, i have and http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Need Some Direction

2004-08-05 Thread Bogdan Ribic
> I have been reading up on sessions, which I think will be a cool addition to this site, but I still havent found much on restrictin access without a username and password. Sounds like you need to use cookies, check php manual if you don't know what they are. Boban -- Please answer to the list

Re: [PHP] How pass form variable to window.open()

2004-08-05 Thread John W. Holmes
From: "CHAN YICK WAI" <[EMAIL PROTECTED]> > in the form, for example, i have > > and > It seems to me not working. Define "not working" because that's how you do it. Well, actually, you need to echo $student, unless this whole thing is already in an echo ---John Holmes... -- PHP General

[PHP] Re: Need Some Direction

2004-08-05 Thread Torsten Roehr
"Aaron Todd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I am trying to build up a members only site, but I need some direction. So > far I have written a page that will let a user register for access. That > script emails me their info so I can validate it, sends them

RE: [PHP] How pass form variable to window.open()

2004-08-05 Thread Jay Blanchard
[snip] Anyone can tell if, inside php script, I can pass form variable to the javascript window.open() call? That is, in the form, for example, i have and http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Some Direction

2004-08-05 Thread Miles Thompson
Aaron, The way to do it is to have an authentication page where users log in. A successful login starts the session, on each subsequent page test for the session and if it is not present, redirect to the login page. This test is just one line at the top of each page you want to protect. This w

Re: [PHP] MySql Tables

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 08:58, Jay Blanchard offered up the following tid-bit of information : > [snip] > How many records can be in a MyIsam table? > [/snip] > > Bazillions. Only limited by your storage capacity and ability to manage > large sets of records. Now wait a minute, my table hit a

Re: [PHP] Need Some Direction

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 10:42, Aaron Todd offered up the following tid-bit of information : > The direction I need is how do I go about restricting access to the > members only pages? I have been reading up on sessions, which I think > will be a cool addition to this site, but I still havent

RE: [PHP] Branching blunder

2004-08-05 Thread Ford, Mike [LSS]
On 05 August 2004 15:15, Jay Blanchard wrote: > [snip] > if($ans_three[$qzid] === 'None of the above' || $ans_three[$qzid] === >'All of the above'){ if($ans_four[$qzid] === 'None of the above' > || $ans_four[$qzid] === 'All of the above'){ > $answers = rand(6,8); > >} >

RE: [PHP] How pass form variable to window.open()

2004-08-05 Thread Jason Davidson
Unless student is set somewhere else that wont work.. you need the form to submit before the text field 'student' sets a var named student. One way to do such, without all the window formating is to just submit the form to the page you want. and target=_new in the form tag. other than that, you

[PHP] dynamic RAM file for real media

2004-08-05 Thread Daniel Guerrier
I am using PHP to dynamically create real audio links. The question is I was creating one .ram file for each real media file that I wanted to stream. The .ram files need to have absolute urls (which I do not like). I saw a few sites that use one .ram file but pass it a variable http://url.ram?id=

Re: [PHP] How pass form variable to window.open()

2004-08-05 Thread CHAN YICK WAI
How about if this $student is actually a text field, when this html generated by php script, it has no value, so the onClick line is ...url?student=<$student without value>, when I click, it reads nothing, how should I do? thanks again, Yw - Original Message - From: "John W. Holmes" <[E

Re: [PHP] Location header does not work?

2004-08-05 Thread Bing Du
I really appreciate everyone who responded taking your valuable time looking into my problem. Now back to my problem. Changing the condition to "if($_SERVER['HTTPS'] != 'on')" did not make any difference unfortunately. So the result was still the URL in the Address box of the browser changed to h

[PHP] Log transaction for audit

2004-08-05 Thread CHAN YICK WAI
Hi, I'm writing an application that requires log every transactions users done, e.g. update which record, delete which record, something like that. I guess one way is whenever I issue a mysql_query(), I also insert this query in whole into another table together with the user name, so I can log a

[PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Brian Dunning
Developing on a Windows server to be deployed on Linux. I get "SMTP server response: 501 Bad address syntax." Here's my code: $mail_from = 'My Name <[EMAIL PROTECTED]>'; $mail_server = 'mail.servername.com'; // This is hosted externally ini_set("SMTP", $mail_server); ini_set("sendmail_from",

[PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Ergin Aytac
We made a test for only 20 min. and got our website online. The result was 200.000.000 (!!) lines in apache error log with the following: httpd in free(): warning: chunk is already free. httpd in free(): warning: page is already free. httpd in free(): warning: recursive call. the requests were on

RE: [PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Jay Blanchard
[snip] We made a test for only 20 min. and got our website online. The result was 200.000.000 (!!) lines in apache error log with the following: Any hints or links? [/snip] Here's a hint...send this to the Apache list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] How pass form variable to window.open()

2004-08-05 Thread Brian Dunning
Actually, I just did this last night with great success. Here is my code, I'm sure you can adapt it to your own. PHP was not needed, this was all done as part of the client-side validation JavaScript. Use JavaScript in the submit button's onClick to set the JavaScript variable with the valu

[PHP] Re: Log transaction for audit

2004-08-05 Thread Bogdan Ribic
Will you have that kind of experience? How can I do it comprehensively, e.g. no too big additional coding effort, easy to manage, reliable, etc. Do you want to hire me or did you just mistakingly press "Reply" instead of "compose new mail" :) Anyway, what you suggest is OK while testing & d

RE: [PHP] Location header does not work?

2004-08-05 Thread Ford, Mike [LSS]
On 05 August 2004 16:36, Bing Du wrote: > I really appreciate everyone who responded taking your valuable time > looking into my problem. > > Now back to my problem. Changing the condition to > "if($_SERVER['HTTPS'] > != 'on')" did not make any difference unfortunately. So the result was > stil

[PHP] $HTTP_REFERER

2004-08-05 Thread Shaun
Hi, I seem to have problems redirecting pages when I view my site using my laptop, the only difference is that my laptop has Norton Firewall installed, can this interfere with the $HTTP_REFERER variable and if so is there a more reliable alternative? Thanks for your help -- PHP General Mailing

Re: [PHP] dynamic RAM file for real media

2004-08-05 Thread raditha dissanayake
Daniel Guerrier wrote: I am using PHP to dynamically create real audio links. The question is I was creating one .ram file for each real media file that I wanted to stream. The .ram files need to have absolute urls (which I do not like). I saw a few sites that use one .ram file but pass it a vari

Re: [PHP] $HTTP_REFERER

2004-08-05 Thread Jason Davidson
Its possible norton firewall OR your browser is altering the headers. how are you redirecting, norton may not allow for some kind of redirects either. Try turning norton off, and visiting the page :) Jason "Shaun" <[EMAIL PROTECTED]> wrote: > > Hi, > > I seem to have problems redirecting p

Re: [PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Ergin Aytac
had no success on the apache list. apache logs also errors with sister-projects like php. I think this is not an apache issue but php. if you have errors like this it is always very difficult to locate the real source of the problem. Any other hints? Jay Blanchard schrieb: [snip] We made a test

Re: [PHP] $HTTP_REFERER

2004-08-05 Thread raditha dissanayake
Shaun wrote: Hi, I seem to have problems redirecting pages when I view my site using my laptop, the only difference is that my laptop has Norton Firewall installed, can this interfere with the $HTTP_REFERER variable and if so is there a more reliable alternative? Many firewalls and proxies can f

Re: [PHP] need help with $HTTP_RAW_POST_DATA

2004-08-05 Thread Curt Zirzow
* Thus wrote PHPDiscuss - PHP Newsgroups and mailing lists: > I noticed php://input but that's going to be changed to php://filter, but > i have never tried using that before either. So i have no idea how it > works. The only time php://input will have the data sent from the client is if php does

Re: [PHP] $HTTP_REFERER

2004-08-05 Thread Shaun
Hi Jason, Thanks for your reply, but really I need a solution that will allow me to let users view the site without having to worry about any firewalls they might have installed!!! "Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Its possible norton firewall OR your

Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with

2004-08-05 Thread ADFH
> Why would Apache log an error on a db dump? Or are you talking about > the execution of the scripts after you import the data? If the latter Execution of scripts, post import. > For .htaccess : > php_value error_reporting "E_ALL" Tried it.. no difference. Not sure whether or not this affe

[PHP] filling out HTML forms

2004-08-05 Thread Amanda Hemmerich
So, we are trying to design an account management page that allows users to manage all of their computer accounts in one place. We want to allow them to change their passwords for all of their accounts in one place, unfortunately, we don't have access to one of the machines to change their passwor

RE: [PHP] Location header does not work?

2004-08-05 Thread Ford, Mike [LSS]
On 05 August 2004 17:12, Ford, Mike [LSS] wrote: > (1) Your browser requests > https://computing.eng.iastate.edu/mambo/index.php?option=conte > nt&task=view&i d=159&Itemid=162 Bother! Sorry, that should, of course, be http:// in step (1)! Cheers! Mike --

RE: [PHP] $HTTP_REFERER

2004-08-05 Thread Ford, Mike [LSS]
On 05 August 2004 17:18, Shaun wrote: > Hi, > > I seem to have problems redirecting pages when I view my site using my > laptop, the only difference is that my laptop has Norton > Firewall installed, > can this interfere with the $HTTP_REFERER variable Not only can, does! Other firewalls or pro

RE: [PHP] Location header does not work?

2004-08-05 Thread Ed Lazor
I sent Bing specific code that will work: If (!IsSet($_SERVER["HTTPS"])) Header("Location: https://"; . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); Manually go to the URL specified. https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&i d=159&Itemid=162 I

RE: [PHP] $HTTP_REFERER

2004-08-05 Thread Ed Lazor
Shaun, Jason is suggesting that you turn Norton off to help troubleshoot the problem. In other words, verify that Norton is the problem. Also, people are suggesting that the display of your web pages not depend so significantly on the HTTP_REFERRER variable. Perhaps we can help you come up with

RE: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Ed Lazor
Why are you specifying the To field twice? I'd try removing the extra formatting around the email addresses for troubleshooting. > -Original Message- > From: Brian Dunning [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 05, 2004 8:43 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Why do I

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 09:51:10 -0700, Josh Acecool M <[EMAIL PROTECTED]> wrote: > The files that are evaled work perfectly without being evaled. > > I dont think eval was meant for large files etc. > > Whats on that like: a preg_match that looks for \$variable = something; > > and thats the like it

[PHP] Re: Getting data from table as a tree

2004-08-05 Thread pt2002
Thank you for your suggestion. I've had already browse pear classes but didn't want to use them. I've found some tips and now I can show the tree but I also need to have all the data in an array and that's the problem now. Greetings pt2002 "Pt2002" <[EMAIL PROTECTED]> escreveu na mensagem news:[E

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Jason Wong
On Friday 06 August 2004 01:05, Ed Lazor wrote: > Why are you specifying the To field twice? I'd try removing the extra > formatting around the email addresses for troubleshooting. I would say strip the whole thing down to the bare minimum that illustrates the problem. -- Jason Wong -> Gremlin

Re: [PHP] dynamic RAM file for real media

2004-08-05 Thread John W. Holmes
From: "Daniel Guerrier" <[EMAIL PROTECTED]> > I am using PHP to dynamically create real audio links. > The question is I was creating one .ram file for each > real media file that I wanted to stream. The .ram > files need to have absolute urls (which I do not > like). I saw a few sites that use

Re: [PHP] filling out HTML forms

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 12:39, Amanda Hemmerich offered up the following tid-bit of information : > So, we are trying to design an account management page that allows users > to manage all of their computer accounts in one place. We want to allow > them to change their passwords for all of the

[PHP] Re: Browsers on terminal server

2004-08-05 Thread Lester Caine
Lester Caine wrote: I am using $_SERVER["REMOTE_ADDR"] to get address of the browser accessing the system and then using gethostbyaddr() to get the machine name. This worked great until I came to a site using M$ Terminal Server to provide the terminals. We still need to know what machine we are ta

Re: [PHP] How pass form variable to window.open()

2004-08-05 Thread John W. Holmes
From: "CHAN YICK WAI" <[EMAIL PROTECTED]> > How about if this $student is actually a text field, when this html > generated by php script, it has no value, so the onClick line is > ...url?student=<$student without value>, when I click, it reads nothing, how > should I do? Javascript. ---John Hol

Re: [PHP] filling out HTML forms

2004-08-05 Thread John W. Holmes
- Original Message - From: "Amanda Hemmerich" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 05, 2004 12:39 PM Subject: [PHP] filling out HTML forms > So, we are trying to design an account management page that allows users > to manage all of their computer accounts

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread John W. Holmes
From: "Brian Dunning" <[EMAIL PROTECTED]> > Developing on a Windows server to be deployed on Linux. I get "SMTP > server response: 501 Bad address syntax." Here's my code: > > $mail_from = 'My Name <[EMAIL PROTECTED]>'; > $mail_server = 'mail.servername.com'; // This is hosted externally > ini

Re: [PHP] Log transaction for audit

2004-08-05 Thread John W. Holmes
From: "CHAN YICK WAI" <[EMAIL PROTECTED]> > I'm writing an application that requires log every transactions users done, > e.g. update which record, delete which record, something like that. > > I guess one way is whenever I issue a mysql_query(), I also insert this > query in whole into another ta

[PHP] periodic file writing error (fputs)

2004-08-05 Thread Sarah Gray
Hello, I am having a periodic problem that I cannot duplicate and wonder if anyone has suggestions. Once a sale is completed a record is written to a log file on the server. $filename = $dir. "/". $logType."_".$today.".txt"; $fp = fopen("$filename", "a+"); fputs($fp, $logEntryStr); fclose($fp);

Re: [PHP] filling out HTML forms

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 13:43, John W. Holmes offered up the following tid-bit of information : > You can use cURL or one of the PEAR classes to have your PHP script fill > out the form on the remote computer... will take some work, but it's > possible. > > Actually, you could just simulate a

RE: [PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Jay Blanchard
[snip] had no success on the apache list. apache logs also errors with sister-projects like php. I think this is not an apache issue but php. if you have errors like this it is always very difficult to locate the real source of the problem. Any other hints? [/snip] Why do you think that this i

Re: [PHP] Log transaction for audit

2004-08-05 Thread Jason Wong
On Friday 06 August 2004 01:47, John W. Holmes wrote: > Sounds like you just need to write a wrapper for mysql_query() that logs > what's going on. > > function my_mysql_query($query) > { > log_query($query); > return mysql_query($query); > } > > and use my_mysql_query() everywhere instead

RE: [PHP] periodic file writing error (fputs)

2004-08-05 Thread Jay Blanchard
[snip] I am having a periodic problem that I cannot duplicate and wonder if anyone has suggestions. Once a sale is completed a record is written to a log file on the server. $filename = $dir. "/". $logType."_".$today.".txt"; $fp = fopen("$filename", "a+"); fputs($fp, $logEntryStr); fclose($fp);

Re: [PHP] filling out HTML forms

2004-08-05 Thread John W. Holmes
From: "John Nichel" <[EMAIL PROTECTED]>: > > You can use cURL or one of the PEAR classes to have your PHP script fill > > out the form on the remote computer... will take some work, but it's > > possible. > > > > Actually, you could just simulate a POST / GET request to the file that > > handles th

Re: [PHP] Log transaction for audit

2004-08-05 Thread John W. Holmes
From: "Jason Wong" <[EMAIL PROTECTED]> > On Friday 06 August 2004 01:47, John W. Holmes wrote: > > > Sounds like you just need to write a wrapper for mysql_query() that logs > > what's going on. > > > > function my_mysql_query($query) > > { > > log_query($query); > > return mysql_query($que

Re: [PHP] periodic file writing error (fputs)

2004-08-05 Thread John W. Holmes
From: "Sarah Gray" <[EMAIL PROTECTED]> > Once a sale is completed a record is written to a log file on the > server. > > $filename = $dir. "/". $logType."_".$today.".txt"; > $fp = fopen("$filename", "a+"); > fputs($fp, $logEntryStr); > fclose($fp); Consider this: 1. User A completes a transactio

Re: [PHP] periodic file writing error (fputs)

2004-08-05 Thread Jason Wong
On Friday 06 August 2004 02:50, Sarah Gray wrote: > I am having a periodic problem that I cannot duplicate and wonder if > anyone has suggestions. > > Once a sale is completed a record is written to a log file on the > server. > > $filename = $dir. "/". $logType."_".$today.".txt"; > $fp = fopen("$

Re: [PHP] filling out HTML forms

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 14:03, John W. Holmes offered up the following tid-bit of information : > You'd have to know what elements are in the form. You wouldn't actually > fill out the form, just create the appropriate request to the page that > does the form processing. As simple as a URL if i

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Josh Acecool M
5.0.0 Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text you want to replace gets deleted and the INCLUDE includes on the top of the page... "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 5 Aug 2004 09:51:10 -0700, Josh Acecool M > <[

Re: [PHP] Re: str_replace() problem in PHP5 - RESOLVED

2004-08-05 Thread Justin Patrin
On Thu, 05 Aug 2004 07:21:35 -0700, Jon Bertsch <[EMAIL PROTECTED]> wrote: > Curt and Justin, > > Thanks for the ideas. I resolved this by removing the str_replace() call > from within a function that I was calling and running it in-line in the > code. Since the html string was less than 500 char

Re: [PHP] Optimizing Tips

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 14:27:56 +0200, Nicklas Bondesson <[EMAIL PROTECTED]> wrote: > The Zend Optimizer only caches the compiled PHP output (HTML content) that > should be sent to your client. You can always try it but I don't think you > will gain that much on using it. It's worth trying though. Act

[PHP] Regular Expressions

2004-08-05 Thread Arik Raffael Funke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi together, I have a question about regular expressions. I want to get from following text... test: abc def ghi ...following... abc def ghi Can anybody tell me why preg_match("/test([.\n]*)/",...) does not work? And who is it done properly? Thank

[PHP] Advise on parsing XML

2004-08-05 Thread Gerard Samuel
Im writing an xml parser. Most of the documents Im parsing, is written by someone else, so have no control over the validity of the xml file. Im running into problems with parsing a few documents where the author uses "exotic" characters such as "é". Characters like this kill the parser. Ok. Im

  1   2   >