Re: [PHP] Trouble with Apache, PHP, pear

2004-07-24 Thread Marek Kilimajer
Ron King wrote: At 06:28 AM 7/23/2004, you wrote: You need php-cli rpm, it's not an extension, it's command line binary. And it won't hurt anything to have both cli and extension installed? -- Ron No -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Creation of MySQL Database Using PHP

2004-07-24 Thread Marek Kilimajer
Harlequin wrote: Hello. I have a friend who knows less than me about PHP and MySQL (which I know is hard to believe) but she needs a login facility for her site. I've passed over some script I use but she doesn't know how to create the database. I can write some commands that create the tables OK -

Re: [PHP] INSERT INTO using foreach

2004-07-25 Thread Marek Kilimajer
Alex Hogan wrote: Hi All, I have a form with several values to insert. I thought that I remember a thread that discussed using a loop to insert $_POSTed values. I am trying; foreach($_POST as $key => $value){ if($key == 'Submit'){ exit; i think you want break; or continue; here, exit; ends

Re: [PHP] URGENT: Space char in rewriterule

2004-07-25 Thread Marek Kilimajer
Robert Winter wrote: I have the following rewriterule: RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L] that transforms http://mysite.com/XXX to http://mysite.com/redirect.php?XXX and I need to also include to space char, for example that transforms http://mysite.com/AB XX to http://mysit

Re: [PHP] changed number_format function

2004-08-27 Thread Marek Kilimajer
Justin Patrin wrote: number_format($number, 2); Does not work. Desired results: 1000 should return 1,000 1000.5 should return 1,000.5 1000.25 should return 1,000.25 so on. Actual results: 1000=> 1,000.00 1000.5 => 1,000.50 1000.25 => 1,000.25 -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Variable variables

2004-08-28 Thread Marek Kilimajer
JanBro wrote: Hi List, I'm using PHP5 with global variables off. I've got around 20 dynamically generated forms with a total of 300 different variables sent thru these forms. I'd like to use variable variables, but according to the manual this is not possible. Now comes my Questoin, how do I rec

Re: [PHP] Running system command or exec as differnet Users

2004-08-28 Thread Marek Kilimajer
Paul Danko wrote: Is it possible to run a command on the system using the system() or exec() commands run as a specific user if I have the username and password? i.e. [EMAIL PROTECTED]>su userNo1 [EMAIL PROTECTED]>/home/server/executeScript all in a php system() or exec() call.. http://expe

Re: [PHP] Passing variable on include

2004-08-29 Thread Marek Kilimajer
Xongoo!com: Central unit wrote: Hi, I have to pass variable on include include("includes/include.php"); include("includes/include.php?name=$name"); wouldn't work. How do I do that? Cokies are not an option, btw. Code in includes/include.php is executed in the scope of the including file, so all va

Re: [PHP] Simultaneus execution

2004-08-29 Thread Marek Kilimajer
Andrew wrote: Now look - I want to make a test/debug engine, that will optimize the performance of each machine I make tests on - my idea is to run as many similar processes as possible in the tasklist of the OS. That would be the same as creating multiple child processes of a single script. The re

Re: [PHP] Binary refresher needed

2004-08-29 Thread Marek Kilimajer
John Holmes wrote: Okay, I need a reminder on this. A given variable can consist of two constants ORd together, say TEST1 and TEST2. If I'm looking to see if one of the constants was set in the variable, I use &, right? if(($value & TEST1) == TEST1) { echo 'TEST1 flag was set.'; } if(($value & T

Re: [PHP] Probably not a php question, but here goes..how do I convert pixels to page units?

2004-08-30 Thread Marek Kilimajer
Brent Clements wrote: I have a pdf class that has a function that allows you to add an image to the pdf your creating. The problem is that the function requires that the height and width of the image be specified in page units. Well I know what the pixel height and width are of my image, how do

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Marek Kilimajer
Brent Clements wrote: The problem with that request is that some employers require you to have a vacation message set. -Brent The problem is that the employers use vacation programs that do not respect "Precedence: bulk" header. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Storing image in database

2004-08-30 Thread Marek Kilimajer
Dre wrote: line 8 is just that .. and the code before it is the following //== Untitled Document //== That is the output I mentioned. And output either html OR image, you cannot output both. Try yo

Re: [PHP] Bitwise operations criticism needed

2004-08-31 Thread Marek Kilimajer
Gerard Samuel wrote: The situation. Im currently using a home brewed groups permission code in my site, but for limited users/groups its ok. Beyond that, the code will take the fast road to hell. I started to look in depth at bitwise operations today, and after much googling, and looking at other

Re: [PHP] Creating a zip and pumping it through the headers - ERROR

2004-08-31 Thread Marek Kilimajer
Thomas Hochstetter wrote: Hi again, After a clever question follows a dumb one: :-( I am trying to pack a few resources from off the server, zip them together (at this stage still storing in a tmp folder and afterwards deleting it again) and make the freshly created zip file available to the us

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Marek Kilimajer
Nick Wilson wrote: Hi everyone I've been asked to make a php script to automatically fill out and submit a form on a remote site. I know this is possible, but have no idea where to begin So, my question is: What functions/theories/etc should I start looking at in order to get started on this? M

Re: [PHP] Form Spoofing - How?

2004-08-31 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared So, my question is: What functions/theories/etc should I start looking at in order to get started on this? Check out the various HTTP classes, they have features for submiting forms. Great, where do I find them? thanks! google ... pear

Re: [PHP] Help with Strings Please

2004-08-31 Thread Marek Kilimajer
Nick Wilson wrote: Hi, I have a string like this, read from an html file: ' VALUE="16">' The value could be any number. I am trying to get that number. I have this so far, i was hoping someone might tell me how to get that number: $handle = fopen("page.php", "r"); while (!feof($handle)) {

Re: [PHP] Bitwise operations criticism needed

2004-08-31 Thread Marek Kilimajer
Gerard Samuel wrote: Marek Kilimajer wrote: Gerard Samuel wrote: The situation. Im currently using a home brewed groups permission code in my site, but for limited users/groups its ok. Beyond that, the code will take the fast road to hell. I started to look in depth at bitwise operations today

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-09-01 Thread Marek Kilimajer
Catalin Trifu wrote: Hi, Is this really a bug. I think not. There is no variable $o->a or $a->b in the class OO there is only the variable $elem and $a and $b is a member of that array So ... The fact that PHP5 provides __set and __get magic functions does not mean that the

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Marek Kilimajer
blackwater dev wrote: I need some help...I am helping a local business with a site which needs to connect to a mssql db, my webhost uses linux and compiled php with the freetds library and when I go to the info page..it does show Microsoft SQL Server under dbx yet I still get the errors "called to

Re: [PHP] Re: register global off

2004-09-01 Thread Marek Kilimajer
$_POST, not $POST Afan Pasalic wrote: I think I am a little bit "confused" about $HTTP_POST_VARS and $_POST. php.net manual: Note that $HTTP_POST_VARS and $_POST are different variables and that PHP handles them as such http://us4.php.net/reserved.variables ? And the example I wrote still

Re: [PHP] ftp functions not working

2004-09-02 Thread Marek Kilimajer
Cory D. Wiles wrote: I am writing some backup scripts that will ftp my *.gz files to my ftp server. Unfortunately I didn't originally install php with ftp support (oversight on my part). I reconfigured/installed PHP with --enable-ftp and restarted everything, but the functions still don't work.

Re: [PHP] Windows user authentication thru PHP and Apache

2004-09-02 Thread Marek Kilimajer
Merritt, David wrote: All, Wanting to build a login page which uses the same user information as the user's Windows account. Is there a way to validate a user's login information against the primary Windows domain controller using PHP and Apache? Searching the archives all I'm finding is how t

Re: [PHP] File Transfer

2004-09-03 Thread Marek Kilimajer
nd in plaintext. Executing scp from php is a better choise. Marek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using & before a variable

2004-09-03 Thread Marek Kilimajer
Shaun wrote: Hi, I have noticed that some of the functions in a tutorial I am studying have an & in the variable parameters i.e. function add(&$id) { /* function body */ } I would be most grateful if some can shed some light on this as i cant fnd any reference to this in the PHP manual... Thanks h

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Marek Kilimajer
Frédéric Hardy wrote: Hello - I think there is a bug or a paradox in the php 5 object model implementation. This is an example : class foo implements arrayAccess { private $array = array(); function __construct() {} function __get($key) { return $this->offsetGet($key); }

Re: [PHP] [PHP5] paradox ? Bug ?

2004-09-03 Thread Marek Kilimajer
Frédéric Hardy wrote: Marek Kilimajer wrote: > See recent discusion on this list about this behavior. You can find it in the archives if you look for __isset. I know, I am the author of this recent discussion. Current discussion is an "extension". isset($foo['bar']) test

Re: [PHP] PHP site ?

2004-09-04 Thread Marek Kilimajer
Jack Gates wrote: How is osCommerce doing this? Go here to see exactly what I am talking about: http://wiki.oscommerce.com/docs I am using the REMOTE_ADDR but it does not provide all the information that osCommerce is showing. When I use the variable it shows the numbers like 192.168.10.25 (I kno

Re: [PHP] Goosebump ? ? New feature / implementaion in PHP

2004-09-05 Thread Marek Kilimajer
Manoj Kumar wrote: hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will av

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I don't know why but session variables does not get posted .. is there any thing in the php.ini that I should configure as I can't find any thing wrong in the code I'm using !! Session variables are not posted, they are kept on the server. Only the session id is sent as a cookie, get or

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! That means you are loosing your session. Is the session id sent? Is the session file (usualy in /tmp) created? "Marek

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
n message news:[EMAIL PROTECTED] I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Dre wrote: I don

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Marek Kilimajer
Dre wrote: no I did this a long time ago (I did have this problem before :o) ) Try echo $_REQUEST[session_name()]; in members/main.php. It should print the session id. Then there should be a session file sess_[session id]. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in mes

Re: [PHP] arrow values in command line php

2004-09-06 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: A while back I decided I wanted a simple interactive interpreter for PHP. So I wrote a little PHP script that essentially did a read from stdin, and ran eval on that. Worked for most situations I was in. I'm trying to add some more features now, namely recalling a list of c

Re: [PHP] unable to use pear

2004-09-07 Thread Marek Kilimajer
zareef ahmed wrote: Hi, Make sure you have installed the pear and double check your included path in your php.ini . As per your message it seems that your pear should be in c:\php4\pear . Check for it and revert back. Also check if HTML_Template_IT package is installed, not all packages are inst

Re: [PHP] Underscores within echo statements

2004-09-07 Thread Marek Kilimajer
Neil Freeman wrote: Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look in the manual and archives but couldn't find any reference to it. see gettext extension Thanks, Neil Could you turn this of? This communication is

Re: [PHP] Byte size of text?

2004-09-08 Thread Marek Kilimajer
John Smith wrote: What's the most accurate way to get the byte count of some text? Is strlen() accurate with Unicode, ASCII, etc.? John strlen() is fine even for multibyte encodings, it does not know about encoding and returns the "raw" size. If you wanted the number of characters, you would need

Re: [PHP] Byte size of text?

2004-09-08 Thread Marek Kilimajer
Rasmus Lerdorf wrote: On Wed, 8 Sep 2004, Marek Kilimajer wrote: John Smith wrote: What's the most accurate way to get the byte count of some text? Is strlen() accurate with Unicode, ASCII, etc.? John strlen() is fine even for multibyte encodings, it does not know about encoding and return

Re: [PHP] Timing on an internal email

2004-09-08 Thread Marek Kilimajer
Alex Hogan wrote: Hi all, I want to set up a delivery date and time for emails to be sent. (I'm using phpmailer) I'm coming up blank on how to do this. I thought that I could put a timing condition on a page that I know will be accessed daily that would look for the date then call the function tha

Re: [PHP] A somewhat faster alternative to is_dir and is_file?

2004-09-09 Thread Marek Kilimajer
Wouter van Vliet wrote: Howdy, I've written some, kinda coolish, class that reads directories recursively with some simple calls. Yihaaa, .. (but I'm not the only one who has done that, I guess :P). Anyway, during the process of traversing a directory it checks to see if the "something" that was fo

Re: [PHP] why should $_SESSION be slower than other arrays?

2004-09-09 Thread Marek Kilimajer
John Holmes wrote: From: "Aaron Voisine" <[EMAIL PROTECTED]> I read in the docs several comments that $_SESSION is slower that other arrays. One comment even had benchmarking info indicating it was about half as fast. I don't understand why this should be. Isn't $_SESSION just a normal super global

Re: [PHP] why should $_SESSION be slower than other arrays?

2004-09-09 Thread Marek Kilimajer
Chris Dowell wrote: Entirely off the top of my head, I would imagine it has to do with the scope of the variables in question. When assigning a value to a variable, there must be some time spent resolving the scope in which that variable is valid, to see if the new value overwrites any existing

Re: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Marek Kilimajer
Lizet Peña de Sola wrote: Hi all, I need to use tidy for cleaning up html in my project, our hosting company has php 4.3.8, so we need to install tidy and make the installation again. After several times, the configure and make commands replied no error, however, the phpinfo() doesn't show the pack

Re: [PHP] Tidy installation problem in php 4.3.8

2004-09-09 Thread Marek Kilimajer
Lizet Peña de Sola wrote: Hello Marek, thanks for your reply. It was the hosting company support and I the ones installing, yes they have they have the loading extensions disabled. However in the package I downloaded from http://pecl.php.net/package/tidy/1.1 there's no .dll file in it... Lemm

Re: [PHP] stdin buffering

2004-09-09 Thread Marek Kilimajer
Martin Holm wrote: I'm currently working on some stuff with php-cli and got a few problem. I want to be able to read one single character from stdin via keyboard, ie. pressing a button. It works fine if I use enter as newline afterwards, but I would like to do it without pressing enter. Thus, I h

Re: [PHP] main(): open_basedir restriction in effect., help

2004-09-10 Thread Marek Kilimajer
Louie Miranda wrote: Warning: main(): open_basedir restriction in effect. File(/home/mainwww/www/sysfolder/pear/Pager/Pager.php) is not within the allowed path(s): (/home/axishift/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/axishift/public_html/pageApps/viewMessage.php on line 11 Hi, what is op

Re: [PHP] Weird numbers around HTTP response body

2004-09-13 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I noticed some numbers mixed with the response generated by my PHP code, and I can't figure out what's causing it. I've dumbed my PHP script down to just this (what could be simpler?): And I monitor the HTTP response coming from the server (apache), it looks like this: HT

Re: [PHP] ZIP

2004-09-14 Thread Marek Kilimajer
Juan Pablo Herrera wrote: HI! I need catch many files in my server and make a zip file. In pear i not see nothing. I think use exec for contruction a zip file. Any idea? Regards, JP There are some classes (not in pear) that can create zip files w/out any special extension. google for "php zip clas

Re: [PHP] replace accents

2004-09-14 Thread Marek Kilimajer
Diana Castillo wrote: Anyone know of any function to replace letters with accents with just the regular letter, for instance replace á with a, ç with c, ñ with n ? $string = str_replace(array('á', 'ç', 'ñ'), array('a', 'c', 'n'), $string); -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] something like an SID

2004-09-14 Thread Marek Kilimajer
Dennis Gearon wrote: I'd like a value to be passed back from every page, if that page was originally passed that value. The two ways that I can think of it, are: 1/ Javascript with some sort of 'onSubmit()' function which causes a minimal form to be submitted via POST or GET 2/ A hidden form val

Re: [PHP] File Download Problems

2004-09-15 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can help me out with this. I created a simple File Manager application, a lot of you already know about it as you helped me with coding at different stages. The problem is this: The Downloa

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Marek Kilimajer
Jeff Oien wrote: Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. Jeff $string = preg_replace('/[^a-z0-9]/i', '', $string); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] File Download Problems

2004-09-16 Thread Marek Kilimajer
John Holmes wrote: From: "PHP Junkie" <[EMAIL PROTECTED]> As my link to the download file, I changed it to And changed the code in the download file to How are you validating $F and ensuring it's not a path to any file on your server? imsafm_user_dl.php?F=/home/path/to/secret/file.txt It's a F

Re: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Marek Kilimajer
Gryffyn, Trevor wrote: On 09/16/2004 09:01 PM, Rubem Pechansky wrote: I have designed and successfully prototyped a native Windows binding for PHP. This binding is very lightweight and it is already capable of doing dialogs, controls, and a lot more with a few dozen lines of code. PHP can thus be

Re: [PHP] Can't maintain session across domains

2004-09-18 Thread Marek Kilimajer
Brian Dunning wrote: I'm hosting on PowWeb where you have a different domain for SSL pages. I'm trying to pass the user from the www.mydomain.com pages to the mydomain.secure.powweb.com pages to complete a credit card transaction, so I pass sid=xx as a GET param on the link that jumps them t

Re: [PHP] Dissappearing instance variables; Bug or Feature?

2004-09-18 Thread Marek Kilimajer
In PHP4 "$this->one = $one;" assigns a *copy* of $one to $this->one. You need to use "$this->one =& $one;" The code will work as expected in PHP5 (and zend.ze1_compatibility_mode set to off). Ryan Briones wrote: This is a scaled down example of something I'm doing in some code. The results are

Re: [PHP] PHP and extern link

2004-09-19 Thread Marek Kilimajer
Martin Justra wrote: Hi, Did you want to a) redirect the user to https://www.domain.com/... or b) display the contents of https://www.domain.com/...? I want to redirect the user. But as soon as I try with fopen (https://) I get the following error: Warning: fopen(https://tto.deutschepost.de

Re: [PHP] Recursion help?

2004-09-19 Thread Marek Kilimajer
your children function can return only one child, and one parent can have more children. You should create an array of all children and loop that. Gerard Samuel wrote: Im trying to dynamically construct a multidimensional array to be used with PEAR's HTML_Menu. http://pear.php.net/manual/en/pack

Re: [PHP] problem with header-dispotition in IE

2004-09-20 Thread Marek Kilimajer
adwinwijaya wrote: Hi all ... I have script that looks like : if(file_exists($filename)){ $len = filesize($filename); //header("Content-type: attachment/pdf"); header('Content-Type: application/pdf'); //header("Content-Type: application/octet-stream");

Re: [PHP] follow-up readdir behavior I cannot understand

2004-09-20 Thread Marek Kilimajer
Jason FB wrote: PHP General List, Regarding my the previous post -- the script had another bug in it which I felt silly for having posted since it's so obvious at the very top (a misisng "=" sign). However, I am still having a problem with this script practically copied and pasted from the PHP

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Marek Kilimajer
Daniel Guerrier wrote: I'm using this code to dynamically retrieve windows media files and send it to the browser. I thought the cache header would prevent the file from being cached. The only problems is the .wmv file still ends up in my IE temp files folder. How can I prevent this from happenin

Re: [PHP] Re: How can I re-code?

2004-09-20 Thread Marek Kilimajer
John Taylor-Johnston wrote: No one? Noone knows the structure of your table. Is the table properly normalized? From the original array it seems you need at least 2 tables to properly hold the information. I had an $array, with a list of authors and an entry number. Below is the code I used. No

Re: [PHP] Yet another Apache 2 question

2004-09-20 Thread Marek Kilimajer
Duncan Maitland wrote: I'm currently using a PHP/Apache 2.0 (prefork) combination which seems to be running reasonably well, however I've just become familiar with the potential issues with PHP/Apache 2.0 so I intend to roll back to Apache 1.3 some time soon. I have a question about a particula

Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread Marek Kilimajer
Living in the past? Harlequin wrote: Hi all. Hoping this might be relatively easy... I'm wondering if I can create a dropdown menu (ABCDE) by using a select statement and then populating this using PHP...? Yes, it is relatively easy, and it is answered in virtualy every PHP book. I recomend you

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Marek Kilimajer
Afan Pasalic wrote: also found this: "... Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME : mysql pgsql sqlite gd ... then do it: # urpmi php-gd -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
play around with popen() and stream_select() John Wards wrote: Hi, I have a bit of a cold today so I probably would have figured this out for myself eventually but hey ;-) Right I have a script that I need to run around 90 times thru a cron job but passing a different i.d. to it each time. I have e

Re: [PHP] Media file browser cache question --- second try

2004-09-20 Thread Marek Kilimajer
Daniel Guerrier wrote: And how would I do 1. Configure webserver to send the right headers for .wmv files. Depends on your webserver. For apache, place .htaccess file to the media directory with some Header directives, more here or on apache mailing list: http://httpd.apache.org/docs/mod/mod_hea

Re: [PHP] External Files (take 2)

2004-09-20 Thread Marek Kilimajer
GH wrote: Hi... Sorry about the last post... did not realize i hit the wrong button Here is my question. Sorry if it is a basic answer... new to php I have PHP/mySQL and would like to know how i can set use an external file to prevent myself for having to code everytime the "connection/login" to

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Marek Kilimajer
John Wards wrote: On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote: play around with popen() and stream_select() Oooh that looks handy. More night time reading I think! Any further ideas to save a man with a cold from using his brain would be great! Cheers John Wanted to do something

Re: [PHP] cookie saving problem

2004-09-20 Thread Marek Kilimajer
Jason FB wrote: PHP GENERAL LIST: I am trying to get the session cookie to stay active for 10 years I have at the top of EVERY page on my website an include statement which includes a file which contains only this code: If I quit my browser and re-launch, it seems to remember my session variabl

Re: [PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Marek Kilimajer
Jordi Canals wrote: I have a method in a class wich composes an URL from the database, this method sets some extra params in the url. In this case, the function returns: /myaccount/?opt=sys&id=3 Note the & in the URL Well, with this code, the url works perfect and the & is going as expected redirec

Re: [PHP] problem with header-dispotition in IE

2004-09-21 Thread Marek Kilimajer
adwinwijaya wrote: The error that I got just IE cannot download download.php from mysite.com .. IE was not able to open this site and bla bla bla. No hint in the error. I think the problem that I faced is with SSL. I try http://www.wazzup.co.nz/tutorials/protect_pdf/index.php and it didnt work on m

Re: [PHP] HTML Frames and PHP Sessions

2004-09-21 Thread Marek Kilimajer
Nick Patsaros wrote: Are PHP sessions compatible with frames in HTML? I'm trying to pass a user name through a session and my individual frames aren't receiving the variable. It worked prior to migrating to frames so I don't think it's my PHP that is the problem. Is there a target function someh

Re: [PHP] transfer coding

2004-09-21 Thread Marek Kilimajer
QT wrote: When I use this html with internet explorer, I have no problem to post data. But when I use following post method, I can not send data. I think I need to do something more for message transfer coding such as use some charecter between same data to let destination server understand. I try

Re: [PHP] Parsing a File

2004-09-21 Thread Marek Kilimajer
Harlequin wrote: Hi all. I've been through the PHP manual and wonder which file option will best suit my needs. I basically want to take a file that the user uploads and parse it into a variable or string so I can insert it into a field in my database. Do I use: File() creates an array file_get

Re: [PHP] Lock or critical section

2004-09-21 Thread Marek Kilimajer
Jean-Yves wrote: Hi, Is there a documented way to create in PHP a critical section: I want a piece of code to not be executed in the same time several times? www.php.net/flock -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: transfer coding

2004-09-21 Thread Marek Kilimajer
M. Sokolewicz wrote: $p = "POST /httppp/servlet/ppp HTTP/1.0\r\n"; actually, specifying the same name for all 3 just makes PHP overwrite the string each time it notices a new one. It's posted to jsp, not php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] RE: **[SPAM]** [PHP] file creation date

2004-09-21 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] is it possible, to get the creation date of a file? So even if it's modified, to get the date it was created the first time? [/snip] Reading http://www.php.net/stat I don't think so. Unix filesystems don't store file creation time. And there is no function to retrieve

Re: [PHP] unexpected $ error

2004-09-21 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi, i get the following error when trying to run this code (see below): Parse error: parse error, unexpected $ in /full path form.php on line 59 // if the submit buttons has been pressed if (isset($_POST['submit])) missing single quote if (isset($_POST['submit'])) // more c

Re: [PHP] php parses but no data inserted

2004-09-21 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi there, the following code runs but no message is displayed from the if then else statement at the end of the script. also, nothing is written to the database. i have checked the insert statement and the login credentials are correct.does anyone know what might be causing

Re: [PHP] inserting timestamp into mysql field

2004-09-21 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Subject: inserting timestamp into mysql field hi there, i need to insert a current timestamp into a mysql field when a form is posted. can anyone suggest a simple way of doing this? i would like to set a variable in my php script to add into the insert statement. it needs t

Re: [PHP] choose upload folder

2004-09-21 Thread Marek Kilimajer
Joerg P wrote: I have to be more specific: I dont want the file, I want the folder. This happens on the client side, it has nothing to do with php. You could possibly do it with signed java applets or activex scripts. Joerg Greg Donald wrote: On Tue, 21 Sep 2004 23:05:17 +0200, Joerg P <[EMAIL PROT

Re: [PHP] shuffling an array (array generated from records in a database)

2004-09-21 Thread Marek Kilimajer
Ongkiko, Richard M wrote: I am trying to implement some sort of a shuffle. What I am trying to do is a random shuffling of an array whose contents were records from a database. I am basically trying to shuffle/randomize, questions, so that different users will have different versions of questi

Re: [PHP] alternative to mysql_field_name()

2004-09-22 Thread Marek Kilimajer
Luke wrote: hi there, i am currently using the following code to loop through the results of a sql query and extract the field names ($export contains the query results from the database). the script goes on to place the results in an excel file. for ($i = 0; $i < $fields; $i++) { $header .= my

Re: [PHP] Re: Does PHP need another mailing list???

2004-09-22 Thread Marek Kilimajer
Gerard Samuel wrote: Niklas Lampén wrote: It's wrong to think people here don't know how to code object oriented. You can do that with PHP4 too - and you should in many cases. In some time PHP4 will be old school and PHP5 will be the general one. In my oppinion, it's good for not-OO ppl to see h

Re: [PHP] Appended [PHP] Solved [PHP] ASP guy needs help.

2004-09-22 Thread Marek Kilimajer
LW Ellis wrote: LW Ellis wrote: Never mind... As usual, about the time you ask for help, the brain gets unstuck and you find the solution. You should post back with a solution (append SOLVED to your subject) so that it becomes part of the thread (and archived). This way, next time someone else

Re: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: here is the whole query: $query = "INSERT INTO inmarsat_comp SET date_added=NOW(), prefix='$prefix', firstname='$firstname', lastname='$lastname', job_title='$jobtitle', company_name='$company', no_of_employees='$employees',address_1='$address1',address_2='$address2', addre

Re: [PHP] implode errors if array empty

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: resolved with if(empty()) - apologies. isset() is more apropriate as $enterprise is not defined at all, empty() will issue a notice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header("Location: ") problem

2004-09-22 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi, is there a way of setting a target property for header("Location: thanks.htm")? my form is in an iframe so when i hit submit, my php page redirects the user to thanks.htm but this is rendered within the iframe not in a fresh page. No, you have to use target in the form

Re: [PHP] Using '

2004-09-22 Thread Marek Kilimajer
Juan Pablo Herrera wrote: Hi! i have: $html = ' MY HTML '; Inside of my html i used ', this produced a parse error, how can i solved it?. Escape it: \' It must be somewhere in the manual, I think. -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Strange errors when PHP script called from CRON

2004-09-22 Thread Marek Kilimajer
Pablo Gosse wrote: Jay Blanchard wrote: [snip] Does anyone have any idea why I might be getting these errors? The code above, to me at least, doesn't look like it should be throwing parse errors. The script which is called by my crontab to start this process executes every minute, so I find it

Re: [PHP] menu mouseover using php and javascript

2004-09-22 Thread Marek Kilimajer
web_singer wrote: I am using an array to create a menu and the code to change an image on mouseover. I would also like to change some text on mouseover. While i can do it using a swtich in javascript it requires that I hard code all the different options in. My whole reason for using the php in t

Re: [PHP] Cannot write data in session file

2004-09-22 Thread Marek Kilimajer
Bo Deng wrote: I just move the web pages from windows to linux. But the session variable doesn't work. And I found that in the \tmp directoy, it has sess_(MD5) file,but with empty contents,just 0 byte. BTW, I run a linux virtual host under IBM s390. the code works well in windows and other linu

Re: [PHP] Differences between echoing the output gradually or returning it.

2004-09-22 Thread Marek Kilimajer
Eduard Duran i Rosich wrote: Hi, I just wanted to know what are the main pros and cons between echoing the output some PHP script as it process the data and returning the whole output to echo it at once. I find the second way to be useful when I want to add a header() line without concerning former

Re: [PHP] Using '

2004-09-23 Thread Marek Kilimajer
John Taylor-Johnston wrote: addslashes() It iscapes also double quotes, which might be not what you want. Juan Pablo Herrera wrote: Escape it: \' It must be somewhere in the manual, I think. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Lock or critical section

2004-09-23 Thread Marek Kilimajer
Jean-Yves wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Curt Zirzow) wrote: http://php.net/semma Hi Curst, It doesn't seem that the link is correct!? Thanks anyway! He meant semaphores: http://php.net/sem However, this extension is not usualy enabled on hosts and does not work on wi

Re: [PHP] FDF PDF and PHP

2004-09-23 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] Can fpdf create a new pdf based on a another pdf form and importing fdf data into it? [/snip] I am sure, if properly programmed, it could. no, it cannot. http://fpdf.org/en/FAQ.php#17 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] [php5] configure --with-xsl & getting error

2004-09-23 Thread Marek Kilimajer
Gerrit P. Haase wrote: Hello all, configure --with-xsl: Getting this error: /php/php-5.0.1/ext/xsl/xsltprocessor.c:275: undefined reference to `_dom_object_get_node' ext/xsl/.libs/xsltprocessor.o(.text+0x78a):/php/php-5.0.1/ext/xsl/xsltprocessor.c:187: undefined reference to `_php_dom_object_get_

Re: [PHP] Open a PDF in the mode https://....

2004-09-23 Thread Marek Kilimajer
Andre wrote: Hello When I try to open a PDF file in the https://localhost mode it opens a Save File window. When I am on the http://localhost mode the problem does not exist. How can I solve this? This is a browser issue. What browser are you using, what headers are you sendng, are you using ses

<    10   11   12   13   14   15   16   17   18   19   >