Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Miguel Cruz
On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = select * from news WHERE id = $_get['id']; A lot of people have answered this already, but just for a

Re: [PHP] Problem with if statement and while loops

2002-05-27 Thread Jason Wong
On Saturday 25 May 2002 04:26, Miguel Cruz wrote: On Sat, 25 May 2002, Jason Wong wrote: Your biggest problem is that you're trying to nest mysql_query() but you're only using 1 link identifier. You need to establish another connection using another mysql_connect(). The same link

Re: [PHP] using array to declare globals in function?

2002-05-27 Thread Jason Wong
On Saturday 25 May 2002 05:21, Jeff Field wrote: Anyone know how to declare globals in a function from an array? The following doesn't seem to work: foreach($_POST as $key = $value) global $form_var[$key]; Not sure what you're trying to do. If you're trying to extract all the values

Re: [PHP] Ora_Fetch_Into function problem

2002-05-27 Thread Miguel Cruz
Check the return values from your ora_logon, ora_open, ora_parse, and ora_exec calls to see whether they worked. That way you can know at which stage it stopped working. miguel On Mon, 27 May 2002, Michael P. Carel wrote: Finally i've set-up my AIX server with PHP and oracle support. Thanks

[PHP] Re: how to display a file's last updated time using php?

2002-05-27 Thread Michael Virnstein
look here: http://www.php.net/manual/en/ref.filesystem.php and especially here: http://www.php.net/manual/en/function.filemtime.php Michael Rui Huang [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... Hi, friends, I want to display the last updated time of a file using php,

Re: [PHP] Ora_Fetch_Into function problem

2002-05-27 Thread Michael P. Carel
thanks miguel but i've already checked it, i've included return values checking where it stop. Here's my full source test script. There where no Ora_Error_Code returned. ? PutEnv(ORACLE_SID=PROD); PutEnv(ORACLE_HOME=/u01/app/oracle/product/7.3.3_prod); $connection = Ora_Logon(apps,apps);

[PHP] Re: Ora_Fetch_Into function problem

2002-05-27 Thread Michael Virnstein
have you tried compiling php with oci again, by installing the Oracle8i Client libraries? Should work as far as i have read. The oci interface is much better than the ora interface. And I am not familiar with the ora functions, only used to oci. Michael Michael P. Carel [EMAIL PROTECTED]

Re: [PHP] Ora_Fetch_Into function problem

2002-05-27 Thread Michael P. Carel
I've recently found out that the Ora_Fetch_Into function cannot get a small value of the tables data. We've tried to fetch other tables which have a large amount data ,and it succeeds. The queried values echoed successfully. Is there any idea why? im using PHP4.2.1 oracle7.3.3 Regards, Mike

php-general Digest 27 May 2002 08:50:33 -0000 Issue 1369

2002-05-27 Thread php-general-digest-help
php-general Digest 27 May 2002 08:50:33 - Issue 1369 Topics (messages 99318 through 99344): Re: Simulating a FORM POST thing (HELP!) 99318 by: Peter 99319 by: Georgie Casey Problem with Includes and Variables 99320 by: Pete Rippe --NEWBIE-- T_String parse error ??

Re: [PHP] Ora_Fetch_Into function problem

2002-05-27 Thread Michael P. Carel
ooopp...sorry just found out why. I just need to have Ora_Commit() function after all the queries to totally set the data to the database. Im querying a data which is not commited yet to the oracle database. Sorry for that I'm just a newbie in oracle. Thanks to all.. mike I've

[PHP] Re: Program execution stops at exec()

2002-05-27 Thread Tom Mikulecky
I read in php manual that set_time_limit() affects in fact max_execution_time. You can see in my example code I wrote in my initial post that I set it to 100k secs. Php don't run in safe mode so it should go fine. What I don't understand is why my php script dies while executing the shell

Re: [PHP] Ora_Fetch_Into function problem

2002-05-27 Thread Michael Virnstein
if you are a newbie to oracle, don't forget to use bind variables in your queries, if this is possible in your Oracle Version. bindvars are placeholders for values in an oracle query, to which you bind your value on runtime. the advantage in using bind variables is, that oracle doesn't have to

[PHP] user password

2002-05-27 Thread Wayne
Hi Guys, Does anybody know how I can set a users password with php? I tried using a system call with sudo but I get the error cannot lock password file. I need to use php to change a users account password. Any ideas? Thanks, Wayne -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Simulating a FORM POST thing (HELP!)

2002-05-27 Thread Peter
Have a look in the manual. It's something like createfrombmp(). Might be imagecreatefrombmp(). It's in the images section of functions. You might need to have the gd library installed for it to work. You could always use fopen() and fread() to open and read the file. Use it in binary mode for

[PHP] simple array question

2002-05-27 Thread Jose Jeria
in javascript i can build an array doing like this: for(i=0; i whatEver.length; i++){ myArray[myArray.length] = // } What is the equivalent to this in PHP? Is this the only way: $myArray[count($myArray)] = //.. /J -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] simple array question

2002-05-27 Thread Billy S Halsey
Jose, Try this: for ($i = 0; $i $whatever; $i++) { $myArray[] = // ... } /bsh/ Jose Jeria wrote: in javascript i can build an array doing like this: for(i=0; i whatEver.length; i++){ myArray[myArray.length] = // } What is the equivalent to this in PHP? Is this the only

[PHP] get the filename of an include'd/require'd file?

2002-05-27 Thread John Ericson
Anyone knows how I can get the name of an include'd/require'd file and not getting the name of the main file. My scenario is like this: a.php: require b.php; b.php: echo $_SERVER['PHP_SELF']; echo $_SERVER['SCRIPT_NAME']; I get a.php when I want to have b.php. (Please CC me since Im not a

[PHP] problems with storing image data to the db

2002-05-27 Thread andy
Hi there, I would like to save images into a blob column. Works good if I use the tmp file php has created after submitting the form. But if I do some gd stuff like changing some colors with inside the image and then save this immage, it does not work. I used to save the image to a file with:

RE: [PHP] gmtime?

2002-05-27 Thread Ford, Mike [LSS]
-Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 20:31 time() returns the number of seconds since the Unix Epoch to the current local time gmtime() should return the number of seconds since the Unix Epoch to the current GM-time Do you

Re: [PHP] ini_set('register_globals',0) doesn't work

2002-05-27 Thread Jens Lehmann
Thank you for answer. I didn't expect ini_set('register_globals','Off') to work, that's why I had a look at the documentation. There should be PHP_INI_PERDIR, PHP_INI_SYSTEM but not PHP_INI_ALL in the table (so it's a mistake in the documentation). Anyway it may be possible to use this, if the

RE: [PHP] Re: Program execution stops at exec()

2002-05-27 Thread David Freeman
What I don't understand is why my php script dies while executing the shell script. Set_limit_time should make it wait. The build.sh script completes well. Not the exact solution here but perhaps a work-around. How dynamic is the data you're generating with your shell script? Perhaps

Re: [PHP] gmtime?

2002-05-27 Thread Jens Lehmann
-Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 20:31 time() returns the number of seconds since the Unix Epoch to the current local time gmtime() should return the number of seconds since the Unix Epoch to the current GM-time

RE: [PHP] gmtime?

2002-05-27 Thread Matt Friedman
Unix epoch is the number of secs since the start date in GMT regardless of where your server is. The timestamp is a GMT value. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: Monday May 27, 2002 7:48

Re: [PHP] Re: Program execution stops at exec()

2002-05-27 Thread Tom Mikulecky
David Freeman wrote: What I don't understand is why my php script dies while executing the shell script. Set_limit_time should make it wait. The build.sh script completes well. Not the exact solution here but perhaps a work-around. How dynamic is the data you're generating with your

[PHP] random HTML pages from PHP calls

2002-05-27 Thread r
Hey all, I'm calling a PHP GimmeRandom.php?id=35557 and what this page does is take the id and update the number in the database by +1 (till here no problem) then what its supposed to do is give me ANY ONE of 10 prewritten html pages in a random order. I know this is pretty easy but my brain

RE: [PHP] gmtime?

2002-05-27 Thread Ford, Mike [LSS]
-Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: 27 May 2002 12:48 -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 20:31 time() returns the number of seconds since the Unix Epoch to the current

[PHP] time

2002-05-27 Thread Chris Grigor
howdi all anyone know how to get a simple time print ? all the functions I have looked at gmtime() time() dont give the right thing ... all I want is a simple time print e.g 17:51 I know that there is an easy way, Im just missing it somewhere ... Chris -- PHP General Mailing List

Re: [PHP] random HTML pages from PHP calls

2002-05-27 Thread Justin French
What's the connection between the id and the random pages? if you had 10 html page file names in a MySQL table, or an array, you'd be able to pick one of them at random and include it. eg SELECT file_name FROM files ORDER BY RAND() LIMIT 1 never had to do it with an array, but i'm guessing

Re: [PHP] time

2002-05-27 Thread Jason Wong
On Monday 27 May 2002 20:42, Chris Grigor wrote: howdi all anyone know how to get a simple time print ? all the functions I have looked at gmtime() time() dont give the right thing ... all I want is a simple time print e.g 17:51 I know that there is an easy way, Im just missing it

RE: [PHP] Parse Error(Newbie)

2002-05-27 Thread John Holmes
Also note that variables are case sensitive in PHP. So $_get and $_GET are not the same. If you're using the new super-global variables on PHP, then you need to use $_GET['id']... ---John Holmes... -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27,

RE: [PHP] time

2002-05-27 Thread Roman Duriancik
try echo Date(H:i:s); roman -Original Message- From: Chris Grigor [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 2:43 PM To: [EMAIL PROTECTED] Subject: [PHP] time howdi all anyone know how to get a simple time print ? all the functions I have looked at gmtime() time() dont

Re: [PHP] gmtime?

2002-05-27 Thread Jens Lehmann
-Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: 27 May 2002 12:48 -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 20:31 time() returns the number of seconds since the Unix Epoch to the

RE: [PHP] user password

2002-05-27 Thread John Holmes
When you get this working, can you post the IP address or web address of your server? Thanks... ---John Holmes... -Original Message- From: Wayne [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 5:55 AM To: [EMAIL PROTECTED] Subject: [PHP] user password Hi Guys, Does

[PHP] fread and session vars

2002-05-27 Thread Zac Hillier
Hi all, I'm using the fread function to read one of my php scripts and then produce a static page, within this script I'm using session variables. If I browse to the script normally then all appears to work correctly, however when I use the fread function the session variables are not being

RE: [PHP] Need some advice concerning forms (multi select pulldown) and arrays

2002-05-27 Thread John Holmes
Shouldn't it be count($_REQUEST['animals']) and count($_REQUEST['animals'][2]), etc... ?? ---John Holmes... -Original Message- From: Victor Spång Arthursson [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 26, 2002 1:29 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] pdf_get_info

2002-05-27 Thread Dietmar Thamm
hi, is there still an equivalent function to pdf_set_info() - pdf_get_info(); or another possibility to get the title, subject and author information out of an exsiting .pdf-file? thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pdf_get_info

2002-05-27 Thread Henrik Hansen
[EMAIL PROTECTED] (Dietmar Thamm) wrote: hi, is there still an equivalent function to pdf_set_info() - pdf_get_info(); or another possibility to get the title, subject and author information out of an exsiting .pdf-file? pdflib dont support getting information AFAIK. -- Henrik

[PHP] Xdebug 0.8.0 announcement

2002-05-27 Thread Derick Rethans
Hello! I'm happy to announce the latest version of the Xdebug extension for PHP 4.2.1 and 4.3.0-dev. This new version has a lot of new and improved functionality. This includes: - improved support for arguments to user defined functions - trace functions to trace function calls during the

RE: [PHP] fread and session vars

2002-05-27 Thread John Holmes
Post some code. I don't understand completely what you're trying to do or how you're trying to do it. ---John Holmes... -Original Message- From: Zac Hillier [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 9:20 AM To: [EMAIL PROTECTED] Subject: [PHP] fread and session vars

Re: [PHP] fread and session vars

2002-05-27 Thread Zac Hillier
Code: generate page script: $pge = create-page.php $pd = $HTTP_GET_VARS['pd']; # Set the files $crtPge = /. $pge .?pd=. $pd; # the url of the dynamic page to write the output page $targetfilename = $SITE_ DOCUMENT_ROOT . $outPge; # the output page # delete previous version of temp file if it

[PHP] Re: pdf_get_info

2002-05-27 Thread Dietmar Thamm
hmmhh, in the PDFlib feature-list there is written ...process existing PDF documents with the PDF import library PDI... any ideas what this pdi thing is about?? thanx Henrik Hansen [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... [EMAIL PROTECTED] (Dietmar Thamm) wrote:

[PHP] Thread safe

2002-05-27 Thread r
Hi, In java servlets I used to use a synchronised block of code to make sure it was thread safe...how do i do this in PHP? Heres what should be thread safe { $r=select max(cno)+1 from MyTable; (then i insert into the table the new cno plus my name) insert into mytable ($r,'myname'); } How to do

[PHP] Re: pdf_get_info

2002-05-27 Thread Henrik Hansen
Dietmar Thamm [EMAIL PROTECTED] wrote: hmmhh, in the PDFlib feature-list there is written ...process existing PDF documents with the PDF import library PDI... any ideas what this pdi thing is about?? yeah it's not about getting pdf information :( -- Henrik Hansen -- PHP General

[PHP] request object

2002-05-27 Thread Jose Jeria
I have a page that creates form elements dynamically. Every time the amount of form elements is different. So to the page that I submit to I need to see how the whole request object. Is that possible? /Jose -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Session's is slowing the page ??

2002-05-27 Thread Dima Dubin
Hello, I have very wierd problem : I use session to manage users and I have this structure of the page : - include(db.php); include(header.php); bla bla include(footer.php); - in the db.php I have : session_start(); #some mysql connect stuff I use session with the $_SESSION

[PHP] Re: request object

2002-05-27 Thread Jose Jeria
if I am not mistaken the equivalent in asp is Request.Form(); /j Jose Jeria [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a page that creates form elements dynamically. Every time the amount of form elements is different. So to the page that I submit

[PHP] Is there a function getSize() of ming or libswf?

2002-05-27 Thread Augusto Cesar Castoldi
Hi... Is there a function getSize() of ming or libswf? I want to send Flash imagens to server to put them into HTML, but I need the width and height of the image, and I don`t want to ask this for the user!! thanks, Augusto

[PHP] Re: Session's is slowing the page ??

2002-05-27 Thread J Smith
It might have something to do with the way the session extension in PHP performs garbage collection. There's a setting in php.ini that basically controls how often garbage collection is performed. The value is a percentage, and determines how often the GC should be done over a random number

[PHP] Re: Thread safe

2002-05-27 Thread J Smith
You could use a transaction block if your database supports it, or just use some sort of auto-numbering field, such as SERIAL in Postgres, auto_increment in MySQL, etc. Then you wouldn't have to worry about retrieving the next cno before inserting a new row. J R wrote: Hi, In java

[PHP] PHP script and external C program

2002-05-27 Thread ing.Martin Prek
Problem. I have a php 4.0.6. on linux as Apache module. I need to do folowing: I have in my script some value, for example $value and in /bin on my linux box c language program called something. (I need speed) . I need to parse $value thru stdin /bin/something program to get from its stdout

RE: [PHP] fread and session vars

2002-05-27 Thread John Holmes
Hi. Code: generate page script: $pge = create-page.php $pd = $HTTP_GET_VARS['pd']; # Set the files $crtPge = /. $pge .?pd=. $pd; # the url of the dynamic page to write the output page $targetfilename = $SITE_ DOCUMENT_ROOT . $outPge; # the output page # delete previous version

RE: [PHP] request object

2002-05-27 Thread John Holmes
It's called $HTTP_POST_VARS or $HTTP_GET_VARS, depending on the method of your form. It's an array that holds all of the data that was send through the form. In PHP 4.1+ you can use $_POST and $_GET. Use print_r($HTTP_POST_VARS) to see the contents of it in one of your scripts. ---John

RE: [PHP] PHP script and external C program

2002-05-27 Thread John Holmes
I don't have example code, but what you want is the exec() function. Be careful passing user variables to a command line program. www.php.net/exec ---John Holmes... -Original Message- From: ing.Martin Prek [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 1:21 PM To: [EMAIL

[PHP] Entering password on a command line

2002-05-27 Thread Darren Gamble
Good day, I have a command-line PHP script that connects to an LDAP database and does some queries. To increase security, I would like to not put the bind password into the program, and instead have the user type it in. But, I'd like to have this done so that the password is not echo'd to the

[PHP] PhP, mysql and pictures

2002-05-27 Thread Ragnar
Is it possible to display images in a browser that are stored as a blob column in a mysql table? Or is it better to store images in a direcotory and display them from there? -Ragnar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PhP, mysql and pictures

2002-05-27 Thread John S. Huggins
On Mon, 27 May 2002, Ragnar wrote: -Is it possible to display images in a browser that are stored as a blob -column in a mysql table? Or is it better to store images in a direcotory and -display them from there? IMHO it is better to let a file system store the image files and let MySQL

[PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread DevilKin
Hello, As stated in the topic: PHP 4.1.2 balantly ignores max_upload_filesize paramter. I've been trying - without solution - to get php 4.1.2 (compiled as module for apache 1.3.xx) to accept a file upload (via post) of more than 2 mb. Files = 2mb work great, but when I go above this php

[PHP] mail() function

2002-05-27 Thread Jochem Kempe
Dear fellars at php.net It appears to me that there is something wrong with the mail() function, I've got an Apache 2.0.36 webserver in an Windows XP environment, now everythin seems to work just fine until I try to execute this: mail([EMAIL PROTECTED], My Subject, Line 1\r\nLine 2\r\nLine3);

Re: [PHP] mail() function

2002-05-27 Thread Pushkar Pradhan
There is also a user note at the bottom of the documentation: I tried to put \r\n at the end of each header line and Netscape 4.7 didn't work properly. I changed to \n and it worked well. So, I tried it on Outlook Express 5.5 and Eudora 5.1 and it worked too with \n only. I hope it helps... If

Re: [PHP] mail() function

2002-05-27 Thread Pushkar Pradhan
I think you meant changing \r\n doesn't work? Did you make necessary changes to the php.ini file: [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path

[PHP] IMAP quota support

2002-05-27 Thread Luiz Lima
I managed to be somewhat succesfull while trying to get PHP4 and IMP to get quota information from my IMAP server (Vircom's VOPMail for Windows NT/2000 - available from www.vircom.com). I changed the script a little bit to talk right to Vircom's IMAP server but its response differs a little from

Re: [PHP] PHP 4.1.2 ignores ini-set on max_upload_filesize

2002-05-27 Thread Rasmus Lerdorf
You cannot change the upload limit in your script because the file upload happens before your script is executed. You need to set it in your php.ini, httpd.conf or .htaccess -Rasmus On Mon, 27 May 2002, DevilKin wrote: Hello, As stated in the topic: PHP 4.1.2 balantly ignores

php-general Digest 27 May 2002 21:01:57 -0000 Issue 1370

2002-05-27 Thread php-general-digest-help
php-general Digest 27 May 2002 21:01:57 - Issue 1370 Topics (messages 99345 through 99398): Re: Ora_Fetch_Into function problem 99345 by: Michael P. Carel 99347 by: Michael Virnstein Re: Program execution stops at exec() 99346 by: Tom Mikulecky 99356 by:

[PHP] Logout

2002-05-27 Thread Jonas Hörnblad
Hi there, I've only been PHPing for some week and ofcours I've ran into my first two problems. 1. I'm building this community thing and I have a text file with the users that is currently logged in. When they press logout there name is deleted from the textfile, but if they just close there

Re: [PHP] Logout

2002-05-27 Thread Sagie Maoz
Jonas ? wrote: 1. I'm building this community thing and I have a text file with the users that is currently logged in. When they press logout there name is deleted from the textfile, but if they just close there browser or surf to another site there name is still in the text-file until

Re: [PHP] Logout

2002-05-27 Thread Thalis A. Kalfigopoulos
On Mon, 27 May 2002, Jonas Hörnblad wrote: Hi there, I've only been PHPing for some week and ofcours I've ran into my first two problems. 1. I'm building this community thing and I have a text file with the users that is currently logged in. When they press logout there name is deleted

[PHP] php's variables javascript

2002-05-27 Thread burak delice
hi everyone, I want to make a php that include javascript that use a php variable. Code is below: ? $size = GetImageSize (images/$resim); echo script language=\JavaScript\ wdth=;$size;echo;; echo /script; ? (I am calling that php file as below)

[PHP] javascript and php

2002-05-27 Thread burak delice
hi everyone, I want to make a php that include javascript that use a php variable. Code is below: ? $size = GetImageSize (images/$resim); echo script language=\JavaScript\ wdth=;$size;echo;; echo /script; ? (I am calling that php file as below)

[PHP] PHP Include directory

2002-05-27 Thread Tim Thorburn
Hi, I'm trying to setup an include directory for my site using .htaccess but I'm having some difficulties. The command I'm typing is as follows: php_value include_dir .:/path/to/my/site/includes When I try this, I get an error 500 with Apache. Have I typed something wrong? Here's my setup:

[PHP] Newbie question about PHP and Oracle

2002-05-27 Thread Michael Sweeney
a VERY newbie question, just how do I get data into a listbox? In mysql it was pretty easy with mysql_fetch_row, but for oracle I am totally lost. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fread and session vars

2002-05-27 Thread Zac Hillier
John, Thanks, the code does actually read this but I'm afraid I removed it so the servers ip is not exposed to the mail list. The script runs correctly and opens and creates the page, however it cannot find the include files I have in the page as the variable $SITE_DOCUMENT_ROOT requires a

Re: [PHP] php's variables javascript

2002-05-27 Thread Sagie Maoz
burak delice wrote: hi everyone, I want to make a php that include javascript that use a php variable. Code is below: ? $size = GetImageSize (images/$resim); echo script language=\JavaScript\ wdth=;$size;echo;; echo /script; ? I didn't get the third line.. That's no JavaScript.. Isn't

Re: [PHP] php's variables javascript

2002-05-27 Thread Jason Wong
On Tuesday 28 May 2002 05:59, burak delice wrote: I want to make a php that include javascript that use a php variable. Code is below: No need to post twice. ? $size = GetImageSize (images/$resim); echo script language=\JavaScript\ wdth=;$size;echo;; echo /script; ? That code looks

[PHP] OT - 1u linux web servers...

2002-05-27 Thread Kelly Meeks
Hi folks, sorry for the off topic post. I'm a semi frustrated cobalt xtr user, and I'm thinking about another 1u rack mount server. Does anyone have any experience building them? Any good vendors for parts? Any how-to websites/books? Any other brands you'd recommend? The cobalts seem to

RE: [PHP] php's variables javascript

2002-05-27 Thread Boyan Nedkov
Try something like that: ? //$size = GetImageSize (images/$resim); $size = 222; echo script language=\JavaScript\; echo width=; echo $size; echo ;; echo /script; ? Cheers, boyan -- Boyan Nedkov [EMAIL PROTECTED] -Original Message- From: burak delice [mailto:[EMAIL PROTECTED]]

[PHP] Re: php's variables javascript

2002-05-27 Thread burak delice
Thanyou very much guys, I is working boyan, but your suggestion seems like a long way? he? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] at least right code is here :)

2002-05-27 Thread burak delice
thanks again echo script language=\JavaScript\ width=; echo $size[0]; echo ;/script; I mean, problem's solution is echo :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] A bit confused

2002-05-27 Thread r
Hey guys, I just got this code (from PHP BlackBook pg:213) to make a table in MySql via a PHP script, I though I knew SQL till I saw this CREATE TABLE sh_indexPages ( ID int(11) NOT NULL auto_increment, Page varchar(255) NOT NULL default '', PRIMARY KEY (ID) ) TYPE=MyISAM; What the

RE: [PHP] A bit confused

2002-05-27 Thread Peter
have a look on the mysql list for this :).. -Original Message- From: r [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 28 May 2002 10:22 PM To: [EMAIL PROTECTED] Subject: [PHP] A bit confused Hey guys, I just got this code (from PHP BlackBook pg:213) to make a table in MySql via a PHP

[PHP] A bit confused PART 2

2002-05-27 Thread r
Greetings All, Thank you for guiding me in the last doubt and special thanks to Juan Pablo for the link. Just one question, since I have taken out that MyISAM bit when i made the table/s, so will it be missing anything? Com on guys, just on this list I get a load of emails I cant join the MySql

[PHP] Include load question (newbie)

2002-05-27 Thread r
Hey all, I have a file that is totally filled with PHP functions, its around 15 k. (func.php) I have two files (f1.php,f2.php) that each take about 90% and 90% of differient functions from the first file(func.php), would my files (f1.php,f2.php) load faster if I defined the functions in each

RE: [PHP] Include load question (newbie)

2002-05-27 Thread David Freeman
I have two files (f1.php,f2.php) that each take about 90% and 90% of differient functions from the first file(func.php), would my files (f1.php,f2.php) load faster if I defined the functions in each file instead of including it or is this helping? It might, but the difference

Re: [PHP] A bit confused

2002-05-27 Thread Justin French
Okay, You REALLY need to read the manual(s) before posting. A quick search for MyISAM on the MySQL site would have told you what you need to know. a) it's mysql b) it's easy to find the answer yourself So don't ask here. Justin on 28/05/02 10:22 PM, r ([EMAIL PROTECTED]) wrote: Hey guys,

Re: [PHP] newbie bigtime

2002-05-27 Thread Justin French
on 16/05/02 12:24 PM, k spellman ([EMAIL PROTECTED]) wrote: The code for form.html is snip and the code for the HandleForm.php is HTML HEAD TITLEForm Results/TITLE /HEAD BODY ?php /* This page receives and handles the data generated by form.html. */ print Your first name is

[PHP] Regex Assistance

2002-05-27 Thread Scott Reismanis
Hey All, I am just begining to learn regex functions in PHP. Anyhow I am trying to code a preg_replace function which basically cleans a URL. What I mean is say a url is index.php?page=hellolist=10start=4 you pass that URL and say 'list' to the function (shown below) Anyhow I want that to

RE: [PHP] Regex Assistance

2002-05-27 Thread Martin Towell
this is what I use to get rid of line from the url $qs = ereg_replace($, , ereg_replace(line=[^]*?, , $QUERY_STRING)); HTH MArtin -Original Message- From: Scott Reismanis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 12:00 PM To: [EMAIL PROTECTED] Subject: [PHP] Regex

[PHP] Is this a bug?

2002-05-27 Thread zhaoxd
Hello all: Not long ago I wrote some php code in my computer which had a apache server,and my php version is 4.0.5.The code as followed: $num = 2886732778; settype($num, integer); echo $num; And I found the num is

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't bigint support higher numbers than that? i'm not sure but i think that's why your number gor cut down. Jule On Monday 27 May 2002 22:36, zhaoxd wrote: Hello all: Not long ago I wrote some php code in

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
ps: sorry for all the typos... Jule On Monday 27 May 2002 22:51, Jule wrote: Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't bigint support higher numbers than that? i'm not sure but i think that's why your number gor cut down. Jule On Monday 27 May 2002 22:36,

Re: [PHP] PhP, mysql and pictures

2002-05-27 Thread Greg Wright
*** REPLY SEPARATOR *** On 27/05/2002 at 9:00 PM Ragnar [EMAIL PROTECTED] [gregausit/phplist] wrote: Is it possible to display images in a browser that are stored as a blob column in a mysql table? Or is it better to store images in a direcotory and display them from there?

Re: [PHP] Is this a bug?

2002-05-27 Thread Jule
see this page: http://www.php.net/manual/en/language.types.integer.php Jule On Monday 27 May 2002 22:52, Jule wrote: ps: sorry for all the typos... Jule On Monday 27 May 2002 22:51, Jule wrote: Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't bigint support

Re: [PHP] PHP script and external C program

2002-05-27 Thread Evan Nemerson
exec wont work if you need to use stdin and read from stdout. You can try php.net/pcntl but that is disabled by default, and probably wont be enabled oun your host. I don't even know if it existed in 4.0.6... -- If there is no higher reason--and there is none--then my own reason must be the

[PHP] Re: Session's is slowing the page ??

2002-05-27 Thread Dima Dubin
Hello J, I try to change the gc probability in the .htaccess (php_value session.gc_probability = 10) but it didnt work :-( Is there any other ideas ? maybe it a bug in PHP ? THANKS, Dima. J Smith [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It might have

Re: [PHP] A bit confused PART 2

2002-05-27 Thread Evan Nemerson
No, you should be fine with leaving off the MyISAM. It is the default in 3.23 anyways. On Tuesday 28 May 2002 06:04 am, r wrote: Greetings All, Thank you for guiding me in the last doubt and special thanks to Juan Pablo for the link. Just one question, since I have taken out that MyISAM

Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Matt Giddings
try this: $query = select * from news WHERE id = '$_get['id']'; the double quote right before the $ is ending the string, from that point on everything is an error. Matt On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: I know it is probably something obvious but the following gives me a parse

Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Matt Giddings
Another thing you may want to try is the following line: $query = select * from news WHERE id = ' . $_get['id'] . '; Matt On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble

[PHP] Setting PHP Authentication manually?

2002-05-27 Thread Laura Harley
I am trying to build a login page for client project review site. I DO NOT want to prompt the user for username and password with header calls to the browser. I don't want the authenticate dialog box to pop up on the client browser; I want to collect the username and password on a PHP or

RE: [PHP] Setting PHP Authentication manually?

2002-05-27 Thread Martin Towell
Two way's I can see 1. Use session variables 2. Use client side cookies Martin -Original Message- From: Laura Harley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 2:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Setting PHP Authentication manually? I am trying to build a login

[PHP] Variable vs Constant

2002-05-27 Thread Billy
what harm will it make if i declear a value as VARIABLE where i should make it as CONSTANT actually?? how about if i declear 100 values as VARIABLEs where all are CONSTANTs actually? thx HPS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Setting PHP Authentication manually?

2002-05-27 Thread Rasmus Lerdorf
I DO NOT want to prompt the user for username and password with header calls to the browser. I don't want the authenticate dialog box to pop up on the client browser; I want to collect the username and password on a PHP or HTML page--I need to collect more data than just username and

  1   2   >