Search found 42 matches

by AMpos
Thu Apr 08, 2021 10:30 pm
Forum: Coding Questions
Topic: How do I limit an user?
Replies: 2
Views: 1251

Re: How do I limit an user?

Thx, I will take a look at it
by AMpos
Wed Apr 07, 2021 10:23 pm
Forum: Coding Questions
Topic: How do I limit an user?
Replies: 2
Views: 1251

How do I limit an user?

I am making a program, where users can upload photos to my server: https://www.photocallevents.com/demo/index.htm And I want to limit the photos an user can upload (5 photos, per example) How can I do it? I dont care if the user delete his cache to upload more photos, it is not a big problem. But I ...
by AMpos
Tue Mar 23, 2021 8:58 pm
Forum: Coding Questions
Topic: Strange string variable...
Replies: 2
Views: 1218

Re: Strange string variable...

Thanks!
by AMpos
Mon Mar 22, 2021 11:10 pm
Forum: Coding Questions
Topic: Strange string variable...
Replies: 2
Views: 1218

Strange string variable...

Code: Select all

Global myweb.s
! v_myweb = window.location

Debug myweb.s
Debug Len(myweb.s)
debug left(myweb,len(myweb)-4)
Why len() return a "undefined" error?

I want to cut "myweb" string, but I cant not
by AMpos
Mon Mar 22, 2021 9:34 am
Forum: Coding Questions
Topic: how to bind a .php to a button?
Replies: 2
Views: 1072

Re: how to bind a .php to a button?

Thank you, I'll take a look
by AMpos
Mon Mar 22, 2021 12:08 am
Forum: Coding Questions
Topic: how to bind a .php to a button?
Replies: 2
Views: 1072

how to bind a .php to a button?

How do I bind a simple .php script to a button?

I dont have to pass parameters to it, or receive any responde, just execute when the button is pressed.

Thank you.
by AMpos
Mon Mar 15, 2021 6:48 pm
Forum: Coding Questions
Topic: how to save an image?
Replies: 1
Views: 898

Re: how to save an image?

Just this:

Code: Select all

loadimage (1,"image.jpg")
resizeimage(1,128,128)
saveimage(1,"resized.jpg")
so, another part of the program can load/upload this "resized.jpg" image
by AMpos
Sun Mar 14, 2021 7:40 pm
Forum: Coding Questions
Topic: how to save an image?
Replies: 1
Views: 898

how to save an image?

Hi! I have a program: the user selects an image from his device and it is uploaded to my server. Currently, my upload routine uploads files fine. But I want to reescale images before uploading them. Anyone knows how to do it? (I was planning loading-reescaling-saving-upload_saved_image but it dows n...
by AMpos
Sun Mar 14, 2021 5:42 pm
Forum: Coding Questions
Topic: How to delete a file on the server?
Replies: 3
Views: 1381

Re: How to delete a file on the server?

You are right, I'm going to change to limit it a bit.
by AMpos
Thu Mar 11, 2021 12:08 am
Forum: Coding Questions
Topic: How to delete a file on the server?
Replies: 3
Views: 1381

Re: How to delete a file on the server?

Solved! Procedure deleteFileCallback(Success, Filename.s, Result.s) If success=1 Debug "OK:"+filename Else Debug "Sucess:"+Success EndIf EndProcedure Procedure deleteFile(File.s) Define url.s="deletefile.php" Define callback=@deleteFileCallback() Protected filename.s=fi...