Re: [PHP] Re: image upload problems (diff. file size after upload)

2001-10-03 Thread AJDIN BRANDIC

I posted the same question and I have found an answer in the archive. I 
guess you are using php on RedHat.  The problem is (as Richard sugested) 
extra lines that need to be triped off. NOTE: I am not sure if this is 
the problem with image files only or this applies to .txt, .doc, etc.
this works for me

---
function fix_php_upload_bug($tmp) {

$infile=fopen($tmp,r); // Open the file for the copy

$outfile=fopen($tmp.new,w); // create a new temp file

$header=fgets($infile,255); //get the 1st line (netscape sometimes 
doesn't add a Content-type line)

//if its more than just a \r\n sequence 
then

if (strlen($header)2) 
$header=fgets($infile,255); //get next 
line also

while(!feof($infile)) { // Loop through 
the remaining file

$temp=fread($infile,128);

fwrite($outfile,$temp,strlen($temp)); 
//copying contents to new temp file

}

fclose($outfile);

fclose($infile);

copy($tmp.new,$tmp); //replace the 
original with our new bug fixed file

unlink($tmp.new); //and delete the 
new file

return filesize($tmp); //return a true 
file size

copy($tmp, 
/home/webdesigning/public_html/demo/.$myfile_name);

}
--
Hope this helps

REgards

Ajdin


On Tue, 2 Oct 2001, Richard Lynch wrote:

 #1  Upgrade PHP.
 
 #2  Try comparing the files in a text-editor.
 
 You may be able to strip out the extra stuff at the top as an interim
 measure.
 
 
 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm
 - Original Message -
 From: Boni Ion [EMAIL PROTECTED]
 Newsgroups: php.general
 To: [EMAIL PROTECTED]
 Sent: Saturday, September 29, 2001 6:35 PM
 Subject: image upload problems (diff. file size after upload)
 
 
  image for upload: admin_logo.gif size: 1665 bytes
 
  image after upload ON SERVER: admin_logo.gif size: 1692 bytes WHY ???
  and I can't see it in browser???!
 
  pls help ...
 
  php version:4.04pl1
  apache server:1.3.12
  so:red hat 7.0
 
  this is my code :
 
  /*upload.html */
 
   html
   head
   titleUpload a File/title
   /head
 
   body
 
   h1Upload a File/h1
 
   form enctype=multipart/form-data method=post
  action=do_upload.php
 
   pstrongFile to Upload:/strongbr
   input type=file name=img1 size=30/p
 
   Pinput type=submit name=submit value=Upload File/p
 
   /form
   /body
 
  /html
 
 
  /* do_upload.php
   ?
 
   if ($img1_name != ) {
 
   copy($img1, /tmp/$img1_name)
   or die(Couldn't copy the file!);
 
   } else {
 
   die(No input file specified);
   }
 
   ?
 
   html
   head
   titleSuccessful File Upload!/title
   body
 
   h1Success!/h1
 
   PYou sent: ? echo $img1_name; ?, a ? echo $img1_size; ?
   byte file with a mime type of ? echo $img1_type; ?./p
 
   /body
   /html
 
 
 
  --
   Boni Ion
   Intersat-Telecom / www.intersat-telecom.ro /
   Constanta, Romania, Europe
   Phone: +40 41 691230
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] New York Remembrance

2001-10-03 Thread AJDIN BRANDIC

It is very nice of you to have done so.  Thousands of children are being 
killed in the world by different groups and no one gives a s***. They are 
mainly killed by USA guns sold by USA guvernment who also 
deosn't give a s*** where those guns go or who uses them. All it is 
important is that guns are sold, US economy is OK and jobs are made.  so 
please post stuff related to PHP. We are all sorry for what happened and 
it shouldn't happen again, Anyware!

Regards

Ajdin

On Wed, 3 Oct 2001, Irmingard Anna Kotelev wrote:

  Dear friends,
 
 the madness incarnate of  September 11th, 2001 is one which will never 
 be
 forgotten. How could it be?
 This shook the entire world, and my heart was broken along with all of
 yours.
 
 I have created a slide show in respectful tribute to all who passed, as
 well as the heroics of the people. I know that America...the world... will
 not allow this attack to ruffle it's feathers, and I stand and applaude 
 for
 the strength and resolve of it's people.
 
 God bless America...God bless the world.
 
 Do sign my 'Response to this Tribute' if compelled and please pass this 
 on to at least one friend.
 
 http://www.aurumxxl.de/ny/ny.htm
 
 Irmingard Anna Kotelev
 Photographer
 
 25th of September 2001
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] image upload

2001-10-02 Thread AJDIN BRANDIC

Hi

I have a problem uploading images on my server. I  have foung#d similar 
question in the archive u no answer to it.

If a file is uploaded to the server through a form it stores it in the 
right place with the right name but the file size is incorrect and it is 
not visible (though a browser).  When copying, GetImageSize doesn't display 
anything. If I 
submit without attaching a file to the form it doesn't display 'none' 
(field value) but nothing ''.

Any idea what is the problem here.  Apache/Linux setup or PHP setup?
I guess it is not uploading as binary???

Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php java script

2001-09-14 Thread AJDIN BRANDIC

Hi

I am doing a scroll bar with javascript and info pulled from MySQL.
So I execute query and create an array with php called messages. Then 
when my page is loaded I guess this array should be available to 
JavaScript under the same name except the $. Am I right here or not?

The java script error is : messages not defined

the code is:
html
body
table
trtdScroll Text/td/tr
trtd
script language='JavaScript1.2'
?php
  include(mydbconnection.php3);
  if(gettype($messages) != array)
  {  $messages = array(); }
  
  $query=select * from text;
  $results=mysql_query($query);
  while($result = mysql_fetch_array($results)) {
$texttitle=$result['title'];
$body=$result['body'];
$mytext=$texttitle;
$mytext=$body;
array_push($messages, $mytext);
  }
  reset($messages);
?
if(messages.length1) {
  id=1
}
...
/script
/td/tr/table
/body
/html


Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php

2001-09-06 Thread AJDIN BRANDIC

Hi

I am trying to run a php script of the shell but am getting No Such File 
or Directory error.  I am executing it from cgi-bin but have tried from 
httpdocs.  chmod is 777. Path to php is /usr/local/lib/php.
Any idea why is this happening.
Part of my code:

#!/usr/local/lib/php
  if(gettype($arrayofsubjects) != array) {
$arrayofsubjects= array();
  }

global $pop_server
..
---

Regards
Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: php

2001-09-06 Thread AJDIN BRANDIC

Hi

Is it true that a script will not execute if it was uploaded/ftp-ed in a 
Binary mode rather that ASCII?

Ajdin

On Thu, 6 Sep 2001, _lallous wrote:

 Hmm? Are you trying to run it as a shell script? If so it doesn't matter
 where you put it as long as it have the Execute flag turned on and correct
 path to script handler.
 
 did you try this: ./scriptname.php ?
 
 Ajdin Brandic [EMAIL PROTECTED] wrote in message
 Pine.OSF.3.91.1010906100608.21325A-10@leofric">news:Pine.OSF.3.91.1010906100608.21325A-10@leofric...
  Hi
 
  I am trying to run a php script of the shell but am getting No Such File
  or Directory error.  I am executing it from cgi-bin but have tried from
  httpdocs.  chmod is 777. Path to php is /usr/local/lib/php.
  Any idea why is this happening.
  Part of my code:
  
  #!/usr/local/lib/php
if(gettype($arrayofsubjects) != array) {
  $arrayofsubjects= array();
}
 
  global $pop_server
  ..
  ---
 
  Regards
  Ajdin
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] apache,php,mysql,flash

2001-08-15 Thread AJDIN BRANDIC

Hi,

I have RH6.2, php4, MySQL and want to generate graphs with flash.  I have 
done a graph with Flash5 and Micromedia Generator.  This creates a .swt 
file which takes info from a text file and, i guess, generates a .swf 
with the graph. I want to allow users to type graph details through an 
admin area and then generate the text file with PHP.  Problem is my server 
doesn't recognise .swt file and it doesn't generate .swf.  I have checked 
Red Hat site and couldn't find a solution. It has to be that I haven't 
installed something but eaven after checking the Micromedia site I didn't 
find a solution. Has anyone got it to work?

Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] apache,php,mysql,flash

2001-08-15 Thread AJDIN BRANDIC

Hi, NO this is what i am trying to find out.  where can i download it 
from (for RD6.2 and Aache 1.3.12). I have tried RH site but no joy.

regards

Ajdin

On 15 Aug 2001, Tim wrote:

 Do you have Macromedia Generator installed on your server?  It's
 responsible for taking the .swt and generating the .swf output.
 
 - Tim
 
 On 15 Aug 2001 14:28:24 +0100, AJDIN BRANDIC wrote:
  Hi,
  
  I have RH6.2, php4, MySQL and want to generate graphs with flash.  I have 
  done a graph with Flash5 and Micromedia Generator.  This creates a .swt 
  file which takes info from a text file and, i guess, generates a .swf 
  with the graph. I want to allow users to type graph details through an 
  admin area and then generate the text file with PHP.  Problem is my server 
  doesn't recognise .swt file and it doesn't generate .swf.  I have checked 
  Red Hat site and couldn't find a solution. It has to be that I haven't 
  installed something but eaven after checking the Micromedia site I didn't 
  find a solution. Has anyone got it to work?
  
  Regards
  
  Ajdin
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Log off

2001-08-10 Thread AJDIN BRANDIC

Hi

I am using HTTP authorisation to allow users to log in to vew specific pages.
What can I use for log off?.

I tried using 
header (HTTP/1.0 401 Unauthorised);
header (Location: http://www.mysite.com/index.php3;);

OR

$PHP_AUTH_USER=0;

but it didn't work.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mysql_numrows

2001-08-06 Thread AJDIN BRANDIC

Hi

I'm trying to get number of rows from a query. All works fine until 
the result is 0.  Then query executes fine, returns 0 rows but mysql_numrows 
failes.

$query=select * from mytable;
$result=mysql_query($query) or die(select failed);
$num_rows=mysql_numrows($result) or die(select count failed);

Displays selec count failed but it should just return 0 so $numrows=0.

If or die bit is removed, then all works fine.

Any way around this problem?


Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] 2D array

2001-07-27 Thread AJDIN BRANDIC

Hi

I have been trying to do this for hours now.
I have a while loop (rows from mysql db) and on each pass I want to pussh 
a new element into a 2D array, bot always end up with the last element of 
the while loop.  So:

table mytable
myname myphone myemail
john   254688  [EMAIL PROTECTED]
tom789787  [EMAIL PROTECTED]

$myquery=select * from mytable;

while ($myrow = mysql_fetch_array($myrows)) {
  .. .. . .  .

  $my2darray = array ($myname = array ($myphone,$myemail));
  
}

$mycount=count(my2darray);  // returns 1

while (list($key,$value) = each ($my2darray)) {
  echo$key,;
  echo$value[0];
  echo$value[1]br;
  // retuns only one row with tom,798779,[EMAIL PROTECTED]
}

How do I push multiple entries into a 2d array?

I tried $my2darray[]=array(...

Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] 2D array

2001-07-27 Thread AJDIN BRANDIC

Wag,

I do not wish to push whole of the row into an array.
Also I need the id of the parent array to be $myname;

Ajdin

On Fri, 27 Jul 2001, Wagner Tomy wrote:

 $my2darray = Array();
 
 while($row = mysql_fetch_row($result)) {
   array_push($my2darray, $row);
 }
 
 OR:
 
 for($i = 0; $i  mysql_num_rows($result); $i++) {
   $row = mysql_fetch_row($result);
 $my2darray[$i] = $row;
 }
 
 Wagner Tomy
 Editus S.A.
 
 - Original Message -
 From: AJDIN BRANDIC [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, July 27, 2001 2:18 PM
 Subject: [PHP] 2D array
 
 
  Hi
 
  I have been trying to do this for hours now.
  I have a while loop (rows from mysql db) and on each pass I want to pussh
  a new element into a 2D array, bot always end up with the last element of
  the while loop.  So:
 
  table mytable
  myname myphone myemail
  john   254688  [EMAIL PROTECTED]
  tom789787  [EMAIL PROTECTED]
 
  $myquery=select * from mytable;
 
  while ($myrow = mysql_fetch_array($myrows)) {
.. .. . .  .
 
$my2darray = array ($myname = array ($myphone,$myemail));
 
  }
 
  $mycount=count(my2darray);  // returns 1
 
  while (list($key,$value) = each ($my2darray)) {
echo$key,;
echo$value[0];
echo$value[1]br;
// retuns only one row with tom,798779,[EMAIL PROTECTED]
  }
 
  How do I push multiple entries into a 2d array?
 
  I tried $my2darray[]=array(...
 
  Regards
 
  Ajdin
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] 2D array

2001-07-27 Thread AJDIN BRANDIC


That works OK

Thank you

Ajdin


On Fri, 27 Jul 2001, Wagner Tomy wrote:

 $my2darray = Array();
 
 while(list($myname, $myphone, $myemail) = mysql_fetch_row($result)) {
   $my2darray[$myname] = array($myphone, $myemail);
 }
 
 Wagner Tomy
 Editus S.A.
 - Original Message -
 From: AJDIN BRANDIC [EMAIL PROTECTED]
 To: Wagner Tomy [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, July 27, 2001 2:34 PM
 Subject: Re: [PHP] 2D array
 
 
  Wag,
 
  I do not wish to push whole of the row into an array.
  Also I need the id of the parent array to be $myname;
 
  Ajdin
 
  On Fri, 27 Jul 2001, Wagner Tomy wrote:
 
   $my2darray = Array();
  
   while($row = mysql_fetch_row($result)) {
 array_push($my2darray, $row);
   }
  
   OR:
  
   for($i = 0; $i  mysql_num_rows($result); $i++) {
 $row = mysql_fetch_row($result);
   $my2darray[$i] = $row;
   }
  
   Wagner Tomy
   Editus S.A.
  
   - Original Message -
   From: AJDIN BRANDIC [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, July 27, 2001 2:18 PM
   Subject: [PHP] 2D array
  
  
Hi
   
I have been trying to do this for hours now.
I have a while loop (rows from mysql db) and on each pass I want to
 pussh
a new element into a 2D array, bot always end up with the last element
 of
the while loop.  So:
   
table mytable
myname myphone myemail
john   254688  [EMAIL PROTECTED]
tom789787  [EMAIL PROTECTED]
   
$myquery=select * from mytable;
   
while ($myrow = mysql_fetch_array($myrows)) {
  .. .. . .  .
   
  $my2darray = array ($myname = array ($myphone,$myemail));
   
}
   
$mycount=count(my2darray);  // returns 1
   
while (list($key,$value) = each ($my2darray)) {
  echo$key,;
  echo$value[0];
  echo$value[1]br;
  // retuns only one row with tom,798779,[EMAIL PROTECTED]
}
   
How do I push multiple entries into a 2d array?
   
I tried $my2darray[]=array(...
   
Regards
   
Ajdin
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] rows not columns

2001-07-26 Thread AJDIN BRANDIC

I am trying to display result of a MySQL query using php.  
Say I get 4 rows from my query. I want to display them verticaly
in a table like this

title1  field one1field one2 field one3field one4
title2  field two1field two2 field two3field two4
title3  field three1  field three2   field three3  field three4
title4  field four1   field four2field four3   field four4

Any ideas how to contruct this inside a while loop without doing multyple 
selects.

REgards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Fw: [PHP] rows not columns

2001-07-26 Thread AJDIN BRANDIC

That will display data from each db row to a row on the screen which is 
oposite of what i am trying to do.

Ajdin

On Thu, 26 Jul 2001, Balaji Ankem wrote:



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] \ problem

2001-07-24 Thread AJDIN BRANDIC

I have a string that contains \' and I want to remove \ and have only 
'.  Tried $mynewstring=ereg_replace(\',',$mystring); but no luck.

What is the way around this.

Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] date

2001-07-19 Thread AJDIN BRANDIC

What is this On Mon, 4 Jan 1999, Duy B wrote:


On Mon, 4 Jan 1999, Duy B wrote:

 Hi all,
 I have a view containing a char value. I use select to_date(thoigian,'yy-mm-dd 
hh24:mi:ss') from this view. But i can't see the time, it's only appear as 
DD-MON-YY. Anybody could show me how to see the time.
 Thanks you in advance.
 Best regards,
 BaDu
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Executing after certain time

2001-07-06 Thread AJDIN BRANDIC

if you are going to use a cron job and you haven't got 'php as CGI' then 
use something like below and save it in your crod_daily or hourly

#! /bin/sh
wget -q -c http://my.domain/phpfile.php3  /dev/null

Ajdin

On Thu, 5 Jul 2001, Marty Landman wrote:

 At 08:41 am 7/5/01 -0700, Oliver Hotz wrote:
 Hey guys, I have a php script that generates files, and a www page that
 links to them.
 
 Is there a way to delete those files, based on a time variable ?..
 
 Why not have cron kick off a script every minute that checks all candidate 
 files and deletes the ones that need it. You can either embed the delete 
 criteria within the file name or alternatively have the program which 
 creates the candidate files post entries to a control file which the cron 
 pgm reads.
 
 What about updating the links on the webpage though? You'll have to handle 
 this too unless the page is written by a program which generates links on 
 the fly based on candidate file availability. Like generating the links 
 from a read of the candidate file directory.
 
 Of course you'll want a very appealing 404 handler (see .htaccess for 
 those) because the webpage could be invoked by a visitor to the site 
 displaying links that are clobbered some seconds/minutes later by the cron 
 job. Then the visitor clicks and it ain't there. :(
 
 Maybe there's a better way to accomplish what you're after??
 
 hth,
 
 Marty
 
 Face 2 Interface Web Solutions
 Website Creation Made SIMPL(tm)
 Online Demo Available
 http://face2interface.com/Home/Demo.shtml
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search

2001-07-03 Thread AJDIN BRANDIC

Hi all

I've got search facility (php-mysql) which is very simple. If i search 
for 'dog' it will find any records containing words 'dog' or 'dogs' or 
'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner' 
will not be found.  This is a classic case so there must be a solution to 
it but I cannot find one.  I tried to do something like
if word is 'dogs' then I do the search,
then break word 'dogs' into an array and check if the last element is an
's'. If it is remove it, reconstrust the string,which will give 'dog', 
and do search for that too.
Then display results.  Well I connot find a way of breaking a string into 
an array. How do I break 'mynameis' into an array of 8 elements?
This has got loopholes but still it is better than what I have now.

Thanks 

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] search

2001-07-03 Thread AJDIN BRANDIC

On Tue, 3 Jul 2001, Tom Carter wrote:

 Rather than trying to break it into an array, you can examine the rightmost
 character as follows
 
 $search=dogs;
 if(substr($search,-1)=='s') $search=substr($search,0,-1);
OK, thanks. I am already breaking input search string into an array using 
a ',' as the seperator.  Then I loop while there are elements in this new 
array and build the search query.

Thanks again!

Ajdin

 
 This checks if the last character is an s and if it is then set search to
 the same string but without the s.. note, does not handle multiple word
 queries.. for this you would need to break the string into words (something
 you would probably have to do anyway) and do this for each of those...
 
 For more info on substr seet http://php.net/substr
 - Original Message -
 From: AJDIN BRANDIC [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, July 03, 2001 11:10 AM
 Subject: [PHP] search
 
 
  Hi all
 
  I've got search facility (php-mysql) which is very simple. If i search
  for 'dog' it will find any records containing words 'dog' or 'dogs' or
  'dogowner' etc.  But if I search for 'dogs', words 'dog' and 'dogowner'
  will not be found.  This is a classic case so there must be a solution to
  it but I cannot find one.  I tried to do something like
  if word is 'dogs' then I do the search,
  then break word 'dogs' into an array and check if the last element is an
  's'. If it is remove it, reconstrust the string,which will give 'dog',
  and do search for that too.
  Then display results.  Well I connot find a way of breaking a string into
  an array. How do I break 'mynameis' into an array of 8 elements?
  This has got loopholes but still it is better than what I have now.
 
  Thanks
 
  Ajdin
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php as cron

2001-06-22 Thread AJDIN BRANDIC

Hi again,

this is what I have done, as adviced by you guys (thanks)

created a file called pop which contains
#! /bin/sh
lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3  /dev/null
clear

If I execute this from the shell ./pop it works OK.
But as a cron job I get an error message sent to my mail box
Your terminal lacks the ability to clear the screen or position the 
cursor.,
hence this 'clear' bit in my script to try to sort the problem but no joy.

Any ideas?

Ajdin



On Thu, 21 Jun 2001, Joseph Tate wrote:

 Have you tried 'php FILENAME'?  Now, I don't know how you would pass
 parameters to it...
 
  -Original Message-
  From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 21, 2001 8:09 AM
  To: AJDIN BRANDIC
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] php as cron
 
 
  try etc.
 
  00,30 * * * * lynx -dump http://path.to.php.script  /dev/null
 
  Regards
 
  Johan
 
  
   Hi
  
   I have PHP installed as Apache module but I want to run a cron job.  I
   have .php script that works OK when executed through browser
  but is there
   any way I could execute it through a cron job.
  
   Ajdin
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php as cron

2001-06-21 Thread AJDIN BRANDIC

Hi

I have PHP installed as Apache module but I want to run a cron job.  I 
have .php script that works OK when executed through browser but is there 
any way I could execute it through a cron job.

Ajdin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php as cron

2001-06-21 Thread AJDIN BRANDIC

Thanks all

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Hosting in The UK

2001-06-20 Thread AJDIN BRANDIC

try www.zenithtech.co.uk

On Wed, 20 Jun 2001, Martin Wright wrote:

 When do you need it Jamie we are in the process of setting something up?  It
 is actually focused on PHP business application software but we will be
 offering hosting as well.
 
 Martin
 
   Just a quickieDoes anyone know of any cheap but reliable (i.e. they
  know
  at least something about PHP) Hosting companies in the UK?
 
  By cheap i mean about £10 a month. Speed isn't an issue as long as were
 not
  talking a snails pace.
 
  Cheers
 
  Jamie Funkdaddy Thompson
 
 
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] installing php4

2001-05-24 Thread AJDIN BRANDIC

No luck,

I have compiled php4, made changes to httpd.conf 

LoadModule php4_module /usr/lib/apache/libphp4.so
AddModule mod_php4.c

and also

IfModule mod_php4.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
/IfModule

Apache starts OK but it doesn't recognise .php3 extensions.  It starts 
downloading a .php file is I try to execute it.

Ajdin.

On Tue, 22 May 2001, Julia A. Case wrote:

 ./configure --with-mysql --with-apxs=/usr/sbin/apxs 
 make
 make install
 check /etc/httpd/conf/httpd.conf to make sure php is setup right
 restart the web server
 
 Julia
 
 Quoting AJDIN BRANDIC ([EMAIL PROTECTED]):
  Hi
  
  I am building a web server.  I installed RH6.2 and Apache was installed
  with it (as binary I guess). I have also installed MySQL (server/client)
  from binary RPM.  I want to install PHP4 source now.  Is there any way I
  could install it without compiling Apache source version or do I need to 
  get Apache
  source and compile(make/make install) the two apps (Apache/PHP4)?  I 
  guess MySQL can stay as it is. 
  
  
  Regards
  
  Ajdin
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 -- 
 [  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
 [Programmer at large] [  but is that what ships are really for.]  
 [   Admining Linux  ] [   To thine own self be true.   ]
 [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
   
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] installing php4

2001-05-22 Thread AJDIN BRANDIC

Hi

I am building a web server.  I installed RH6.2 and Apache was installed
with it (as binary I guess). I have also installed MySQL (server/client)
from binary RPM.  I want to install PHP4 source now.  Is there any way I
could install it without compiling Apache source version or do I need to 
get Apache
source and compile(make/make install) the two apps (Apache/PHP4)?  I 
guess MySQL can stay as it is. 


Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] how to get var value

2001-04-26 Thread AJDIN BRANDIC

Thanks

Ajdin

On Thu, 26 Apr 2001, PHPBeginner.com wrote:

 try 
 
 $newvar = ${$var1};
 
 
 
 Sincerely,
 
  Maxim Maletsky
  Founder, Chief Developer
 
  PHPBeginner.com (Where PHP Begins)
  [EMAIL PROTECTED]
  www.phpbeginner.com
 
 
 
 
 -Original Message-
 From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 26, 2001 7:53 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] how to get var value
 
 
 Hi,
 
 (this is just an example)
 I have on one page
 
 $test=1;
 $var1='test';
 
 on another page I want to be able to construct variable from the value in 
 $var1 (test in this case)  and print its value.   So,
 
 $newvar=$;
 $newvar.=echo$var1;
 
 now $newvar contains string '$test' but not the value of $test (1 in this 
 case).  
 
 There has to be way aroud this but I am just cannot find it :(.
 
 Regards
 
 Ajdin
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] how to get var value

2001-04-26 Thread AJDIN BRANDIC

Hi,

(this is just an example)
I have on one page

$test=1;
$var1='test';

on another page I want to be able to construct variable from the value in 
$var1 (test in this case)  and print its value.   So,

$newvar=$;
$newvar.=echo$var1;

now $newvar contains string '$test' but not the value of $test (1 in this 
case).  

There has to be way aroud this but I am just cannot find it :(.

Regards

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Active-X

2001-03-28 Thread AJDIN BRANDIC

Off topic but does anyone know how to detect if user/visitor has ActiveX 
OFF and if so then load a designated page.

I had a few complaints that they cannot view my menu (done in flash) so 
I want to display a simple version of my menu for people with ActiveX OFF.

Thanks

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Active-X

2001-03-28 Thread AJDIN BRANDIC

Thanks Elias but have you got a url that I could look at.
I have tried www.javascript.com and www.javascripts.com but could not 
find anything.

Ajdin

On Wed, 28 Mar 2001, elias wrote:

 I think JavaScript can, / document.plugins property check it out.
 
 "AJDIN BRANDIC" [EMAIL PROTECTED] wrote in message
 Pine.OSF.3.91.1010328135544.29822A-10@leofric">news:Pine.OSF.3.91.1010328135544.29822A-10@leofric...
  Off topic but does anyone know how to detect if user/visitor has ActiveX
  OFF and if so then load a designated page.
 
  I had a few complaints that they cannot view my menu (done in flash) so
  I want to display a simple version of my menu for people with ActiveX OFF.
 
  Thanks
 
  Ajdin
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Response.Write [OK]

2001-03-21 Thread AJDIN BRANDIC

Hi,

I have built a shopping cart and have made connection to an Internet 
payment company.  Now once transaction is processed they want from my 
confirmation page to receive an "[OK]".  How can I do this with php3/4?

Response.Write"[OK]" is what ASP uses, I think???


Thanks

Ajdin 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Response.Write [OK]

2001-03-21 Thread AJDIN BRANDIC

You think I need to do something like

echo'Response.Write[OK]';

This will print Response.Write [OK] on he screen or

Ajdin


On Wed, 21 Mar 2001, Jon Haworth wrote:

 You could investigate www.php.net/echo, I think it's what you're after.
 
 Cheers
 Jon
 
 
 -Original Message-
 From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]]
 Sent: 21 March 2001 12:05
 To: [EMAIL PROTECTED]
 Subject: [PHP] Response.Write [OK]
 
 
 Hi,
 
 I have built a shopping cart and have made connection to an Internet 
 payment company.  Now once transaction is processed they want from my 
 confirmation page to receive an "[OK]".  How can I do this with php3/4?
 
 Response.Write"[OK]" is what ASP uses, I think???
 
 
 Thanks
 
 Ajdin 
 
 
 **
 'The information included in this Email is of a confidential nature and is 
 intended only for the addressee. If you are not the intended addressee, 
 any disclosure, copying or distribution by you is prohibited and may be 
 unlawful. Disclosure to any party other than the addressee, whether 
 inadvertent or otherwise is not intended to waive privilege or confidentiality'
 
 **
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Response.Write [OK]

2001-03-21 Thread AJDIN BRANDIC

OK

I have done this.  

Thanks guys

Ajdin

On Wed, 21 Mar 2001 [EMAIL PROTECTED] wrote:

 no.
 
 Imagine Response.write as echo.
 
 so it will be
 
 echo "OK";
 
 PHP doesn't parse ASP tags
 
 - Original Message -
 From: "AJDIN BRANDIC" [EMAIL PROTECTED]
 To: "Jon Haworth" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Wednesday, March 21, 2001 8:24 PM
 Subject: RE: [PHP] Response.Write [OK]
 
 
  You think I need to do something like
 
  echo'Response.Write[OK]';
 
  This will print Response.Write [OK] on he screen or
 
  Ajdin
 
 
  On Wed, 21 Mar 2001, Jon Haworth wrote:
 
   You could investigate www.php.net/echo, I think it's what you're after.
  
   Cheers
   Jon
  
  
   -Original Message-
   From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]]
   Sent: 21 March 2001 12:05
   To: [EMAIL PROTECTED]
   Subject: [PHP] Response.Write [OK]
  
  
   Hi,
  
   I have built a shopping cart and have made connection to an Internet
   payment company.  Now once transaction is processed they want from my
   confirmation page to receive an "[OK]".  How can I do this with php3/4?
  
   Response.Write"[OK]" is what ASP uses, I think???
  
  
   Thanks
  
   Ajdin
  
  
   **
   'The information included in this Email is of a confidential nature and
 is
   intended only for the addressee. If you are not the intended addressee,
   any disclosure, copying or distribution by you is prohibited and may be
   unlawful. Disclosure to any party other than the addressee, whether
   inadvertent or otherwise is not intended to waive privilege or
 confidentiality'
  
   **
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] search

2001-03-07 Thread AJDIN BRANDIC

Hi,

I have a simple text file search. I do not want users to search on words 
such as 'is', 'and', 'or','the',etc. or single letters or numbers.  Has 
anyone got a 
dictionary with all of these in so I could do a search through it before 
starting the main search?

Thanks,

Ajdin 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Credit Cards

2001-02-10 Thread AJDIN BRANDIC

hi jerry

try www.bibit.com.  they wil give you some example code too.  easy to use 
and you can link to their test server until you are happy with your scripts.

ajdin

On Fri, 9 Feb 2001, Jerry Lake wrote:

 I have a basic shopping cart setup
 and I am curious as to how I go about
 being able to handle real-time credit 
 card transactions. I realize there are
 card services like cybercash and such,
 but how do I go about hooking cybercash
 up to the existing cart? (the host already
 has a merchant connection kit)
 
 Jerry Lake- [EMAIL PROTECTED]
 Web Designer
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] round

2001-01-31 Thread AJDIN BRANDIC

Hi

Lets say $foo=20.12345

In php4 you can use : $foo=$round($foo,2);  to get $foo=20.12

What can I use in php3 to get the same result.  $foo=$round($foo); gives 
me $foo=20 Not what I realy want???

Thanks 

Ajdin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] whois

2001-01-25 Thread AJDIN BRANDIC

Perhaps not 100% php but still!

Is there any way I could ping all whois servers that exist.  Something 
like whois.* ???  I am trying to ind a whois server that holds .ba domain 
names information.  I found some research and found that it should be 
held at whois.ripe.net but I have tried and nothing found.  I have tried 
whois.nic.ba and no luck.  .ba is for Bosnia and Herzegovina?  Is there a 
european server/db that holds all euro domain info??

Thanks

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] whois

2001-01-25 Thread AJDIN BRANDIC

On Thu, 25 Jan 2001, Andy Woolley wrote:

 Ajdin,
 
 I know this is a little off topic but for your information 'whois.ripe.net'
 provide information for the .ba TLD

Ripe has only 10 .ba domains registred in their db :(.  It is not up to date.

Ajdin

 
 I too am looking for a database of Top Level Domains around the world so if
 anyone knows of one I would be very much obliged If I could have a copy.
 
 Kind Regards
 
 Andy Woolley
 www.databasewatch.com
 
 - Original Message -
 From: "AJDIN BRANDIC" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 2:08 PM
 Subject: [PHP] whois
 
 
  Perhaps not 100% php but still!
 
  Is there any way I could ping all whois servers that exist.  Something
  like whois.* ???  I am trying to ind a whois server that holds .ba domain
  names information.  I found some research and found that it should be
  held at whois.ripe.net but I have tried and nothing found.  I have tried
  whois.nic.ba and no luck.  .ba is for Bosnia and Herzegovina?  Is there a
  european server/db that holds all euro domain info??
 
  Thanks
 
  Ajdin
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] url hide

2001-01-22 Thread AJDIN BRANDIC

Perhaps not related to php but I was wandering, is it possible to hide 
site's real url and replace it with something else (some other URL).  ie. 
someone clicks on a link on www.blah.co.uk which takes the user to an 
designated area (ie. /house-search/) on www.foo.co.uk.  I want 
the user still to see www.blah.co.uk. This is just for aesthetic reasons 
since ones the user finishes the search for houses (on 
www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk. 

I have tried www.javascripts.com but no success??

Thanks

Ajdin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] url hide

2001-01-22 Thread AJDIN BRANDIC

OK, I don't have access to the server (except ftp).  All I can use is PHP 
or JavaScript.  I just thought that I could use some thing that will just 
hide it.  Like that NoRightClick javascript script where if you try to 
view the source code of a page it stops you but you can still use 
View/Source Code option on your main menu to view the code.

Thanks

Ajdin


On Mon, 22 Jan 2001, bard wrote:

 If you're using apache, try mod_rewrite. I'm pretty sure you have to run something 
on the server side to do this. JavaScript runs client-side and will therefore be 
useless.
 
 Cheers,
 
 Brad
 
 On Mon, 22 Jan 2001, AJDIN BRANDIC wrote:
 
  Perhaps not related to php but I was wandering, is it possible to hide 
  site's real url and replace it with something else (some other URL).  ie. 
  someone clicks on a link on www.blah.co.uk which takes the user to an 
  designated area (ie. /house-search/) on www.foo.co.uk.  I want 
  the user still to see www.blah.co.uk. This is just for aesthetic reasons 
  since ones the user finishes the search for houses (on 
  www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk. 
  
  I have tried www.javascripts.com but no success??
  
  Thanks
  
  Ajdin
  
  
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: AW: [PHP] url hide

2001-01-22 Thread AJDIN BRANDIC

On Mon, 22 Jan 2001, Sebastian Stadtlich wrote:

 you can do that by using a frames site that just has 1 frame(=the 'hidden'
 url).
 this is very weak , because the user just has to take a look at page
 properties
 to see the real URL.

This I do not mind since most users are not very knowledgable about internet.
The problem here is that web users will be comming from any site to my 
client's designated page.  Not all sites have frames.

 another aproach would be to wrap all access to your server through apache
 404 to
 a php that opens the desired url with fopen and then parses the html for a
 href, etc
 and fixes them to links to your desird address. i doubt that this is a good
 idea
 for a heavy-traffic site or in case you try to steal some content that the
 admin
 of the other server will not notice that there are a lot of requests from
 your servers ip.
 

Not really, since they will be coming to my client's site with permission.  
I want others who are using features on my client's site to feel they are 
still on their site of origin (what ever that might be).

Thanks


Ajdin

 sebastian
 
  -Ursprungliche Nachricht-
  Von: Eric Dahnke [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 22. Januar 2001 12:24
  An: [EMAIL PROTECTED]
  Betreff: Re: [PHP] url hide
  
  
  
  I just asked a similar question two hours ago, and would like 
  to express 
  my interest in this same question.
  
  Sorry it for a no answer response.
  
  
  AJDIN BRANDIC wrote:
  
   Perhaps not related to php but I was wandering, is it 
  possible to hide 
   site's real url and replace it with something else (some 
  other URL).  ie. 
   someone clicks on a link on www.blah.co.uk which takes the 
  user to an 
   designated area (ie. /house-search/) on www.foo.co.uk.  I want 
   the user still to see www.blah.co.uk. This is just for 
  aesthetic reasons 
   since ones the user finishes the search for houses (on 
   www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk. 
   
   I have tried www.javascripts.com but no success??
   
   Thanks
   
   Ajdin
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: 
  [EMAIL PROTECTED]
  
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]