I am not sure of what you mean mate. The php section above is the full script as far as I am aware, well that's all I have been using. sorry I am not much help!
Hi Eric
I am not sure of what you mean mate. The php section above is the full script as far as I am aware, well that's all I have been using. sorry I am not much help!
I am not sure of what you mean mate. The php section above is the full script as far as I am aware, well that's all I have been using. sorry I am not much help!
KISS is the key!
Ok, let me take a look as I missed that one post some how.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Eric Rohloff wrote:
Ok, let me take a look as I missed that one post some how.
Ok, let me take a look as I missed that one post some how.
Sorry for taking so long to get back and say thx mate, have some connections issue typical Australian, 5th world internet!
Thanks for looking mate!
KISS is the key!
Ok I just tested it and it worked fine.I see what the issue is.
Change this line to your actual email address.
The $_FILES part is not being used in the script.
Change this line to your actual email address.
$mailto = 'myemail@hotmail.com';
The $_FILES part is not being used in the script.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Eric Rohloff wrote:
Ok I just tested it and it worked fine.I see what the issue is.
Change this line to your actual email address.
The $_FILES part is not being used in the script.
Ok I just tested it and it worked fine.I see what the issue is.
Change this line to your actual email address.
$mailto = 'myemail@hotmail.com';
The $_FILES part is not being used in the script.
Hey Eric I replaced the forum post with "myemail" so it was not public
So its working for you, ok I will go look on the server side!
Thanks mate!! cheers
KISS is the key!
I am running wammp and php on win10 and using coffeecup html editor
If I put this file in htdocs
<?php
echo "something";
?>
and run it as - localhost/test.php
it produces - something
but if I put this file in htdocs
<?php
echo "Hello<br>";
$file2 = fopen("../resources/sheppeard.ged","r");
while(! feof($file2))
{
$pn = fgets($file2);
$pos = strpos($pn,"0 @I");
if ($pos !== false)
{
$name = fgets($file2);
$pos1 = strpos($name,"1 NAME");
if ($pos1 !== false)
{
$sex = fgets($file2);
$sex1 = substr($sex,6,1);
$poss = strripos($pn,"@");
$pn = substr($pn,4,$poss-4);
echo "Person number: ". $pn. " ";
switch ($sex1) {
case "M":
echo "Male<br>";
break;
case "F":
echo "Female<br>";
break;
default:
echo "<br>";
}
echo str_replace("/","",substr($name,7)). "<br><br><br>";
}
}
}
fclose($file2);
?>
and run it as - localhost/test.php
it produces nothing
and yet if I load it another server it runs as expected
I would appreciate any suggestion
If I put this file in htdocs
<?php
echo "something";
?>
and run it as - localhost/test.php
it produces - something
but if I put this file in htdocs
<?php
echo "Hello<br>";
$file2 = fopen("../resources/sheppeard.ged","r");
while(! feof($file2))
{
$pn = fgets($file2);
$pos = strpos($pn,"0 @I");
if ($pos !== false)
{
$name = fgets($file2);
$pos1 = strpos($name,"1 NAME");
if ($pos1 !== false)
{
$sex = fgets($file2);
$sex1 = substr($sex,6,1);
$poss = strripos($pn,"@");
$pn = substr($pn,4,$poss-4);
echo "Person number: ". $pn. " ";
switch ($sex1) {
case "M":
echo "Male<br>";
break;
case "F":
echo "Female<br>";
break;
default:
echo "<br>";
}
echo str_replace("/","",substr($name,7)). "<br><br><br>";
}
}
}
fclose($file2);
?>
and run it as - localhost/test.php
it produces nothing
and yet if I load it another server it runs as expected
I would appreciate any suggestion
Hi Gregory,
You should be able to check the error.log for any issues.
C:\wamp\logs folder or C:\wamp64\logs
Are you sure this file is in the correct location?
$file2 = fopen("../resources/sheppeard.ged","r");
Try placing the file in the same location as the php file your making and changing the link to
$file2 = fopen("sheppeard.ged","r");
You should be able to check the error.log for any issues.
C:\wamp\logs folder or C:\wamp64\logs
Are you sure this file is in the correct location?
$file2 = fopen("../resources/sheppeard.ged","r");
Try placing the file in the same location as the php file your making and changing the link to
$file2 = fopen("sheppeard.ged","r");
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Hi Eric,
I wrote the wrong thing in my last post; it didn't produce 'nothing', but rather it printed the script from the last two characters of the second line.
<?php
echo "Hello<br>";
$file2 = fopen("../resources/sheppeard.ged","r");
ie.
";
$file2 = fopen("../resources/sheppeard.ged","r"); etc. etc.
I thought it might be some sort of formatting or hidden character problem, but I am unable to find either
I wrote the wrong thing in my last post; it didn't produce 'nothing', but rather it printed the script from the last two characters of the second line.
<?php
echo "Hello<br>";
$file2 = fopen("../resources/sheppeard.ged","r");
ie.
";
$file2 = fopen("../resources/sheppeard.ged","r"); etc. etc.
I thought it might be some sort of formatting or hidden character problem, but I am unable to find either
What about that file location?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.