Search found 554 matches

by owen
Aug 18, 2019 0:33
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

ps this dosen't work on the server

Code: Select all

<?php
$output = shell_exec("ldd hello");
echo "<pre>$output</pre>";
?>
by owen
Aug 18, 2019 0:28
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

maybe it's a 32 bit vs 64 bit issue
by owen
Aug 18, 2019 0:27
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

owen@owen-Latitude-E6420:~/test$ ldd hello linux-gate.so.1 (0xf7fa7000) libtinfo.so.5 => /lib32/libtinfo.so.5 (0xf7f67000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7e65000) libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7e60000) libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7e41...
by owen
Aug 18, 2019 0:12
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

Look at pipes, maybe. when you say pipes i think that the same as dos MORE or > ie dir *.* > myfilelist.txt i did try this and it does produce a file but only with the same results when not using ./ ie the output was same as shown in the browser hello! <?php # works, but output is lost shell_exec(&...
by owen
Aug 18, 2019 0:02
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

note:
$output = shell_exec('ls -lart');
doesn't require ./
ie.
$output = shell_exec('./ls -lart');

i wonder what language ls was written / compiled in
by owen
Aug 17, 2019 23:58
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

i wonder is there a way when compiling hello world ie. Print "hello world" to specify the most common linux resources (libraries)
by owen
Aug 17, 2019 23:45
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

Not knowing how to redirect the output from my hello program thru http i figured well until then i might as well use php shell exec https://www.php.net/manual/en/function.shell-exec.php to handle that. this works on my bluehost server no problem <?php $output = shell_exec('ls -lart'); echo "<pr...
by owen
Aug 17, 2019 23:17
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

Without the ./ php echos
Hello!
With the ./
I get the error
Error while loading shared libraries unsupported version 256 of Verneed record
by owen
Aug 17, 2019 10:21
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

Maybe the compiled hello program (compiled in ubuntu) won't run in other linux flavors
by owen
Aug 17, 2019 2:49
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Re: Is it possible to Hello world on a server

Oops sorry the second thing I tried to do was to print to a file

Hello.bas
Open "test.txt" for output as #1
Print #1, "hello"
Close #1

Works fine and ubuntu
But I don't think it's running on the server when I call using PHP shell
by owen
Aug 17, 2019 2:46
Forum: Linux
Topic: Is it possible to Hello world on a server
Replies: 55
Views: 16946

Is it possible to Hello world on a server

Got this harebrained idea to compile hello world and call it using PHP shell exec. It didn't work. I changed permissions to 777 that's about all I can think to do. I tried two different things first to just simply echo "hello world" Hello.bas Print "hello world" Compiled and test...
by owen
Aug 17, 2019 0:21
Forum: Linux
Topic: Error 26
Replies: 4
Views: 4906

Re: Error 26

Sweet that worked.
It's a permissions thing.
by owen
Aug 16, 2019 20:01
Forum: Linux
Topic: Error 26
Replies: 4
Views: 4906

Error 26

Trying to compile the example hello.bas I get
error 26: File access error, hello asm

I'm using ubuntu 18.04.2 LTS
by owen
Jun 16, 2019 10:24
Forum: Libraries
Topic: FBTrueType static Win/Lin 32/64-bit
Replies: 65
Views: 41307

Re: FBTrueType static Win/Lin 32/64-bit

this is really a great contribution to fb.

i never knew what was involved in ttf and now we have otf to look forward to.

fonts are all about kerning and white space and a whole lot more so i'm finding out.
by owen
Jun 15, 2019 8:09
Forum: Libraries
Topic: FBTrueType static Win/Lin 32/64-bit
Replies: 65
Views: 41307

Re: FBTrueType static Win/Lin 32/64-bit

#include once "FBTrueType.bi" screenres 1000,400,32 Dim As String fontfile,fontfiles() Dim As Integer font_c Dim As Long font fontfile=Dir("c:\windows\fonts\*.ttf") Do If fontfile="" Then Exit Do Else font = FontLoad("c:\windows\fonts\" & fontfile) If fon...

Go to advanced search